Ben Graville commited on
Commit
1563877
·
verified ·
1 Parent(s): b1b5044

Add w4a8/gemma4_e2b_qat_decode_int4lin_a8_tbl_pf64

Browse files
.gitattributes CHANGED
@@ -46,3 +46,5 @@ ios-frontend/gemma4_qat_gather_raw/embed_per_layer.scale.f32 filter=lfs diff=lfs
46
  ios-frontend/gemma4_qat_gather_raw/embed_tokens.i8 filter=lfs diff=lfs merge=lfs -text
47
  ios-frontend/gemma4_qat_gather_raw/embed_tokens.scale.f32 filter=lfs diff=lfs merge=lfs -text
48
  ios-frontend/gemma4_qat_gather_raw/proj.f32 filter=lfs diff=lfs merge=lfs -text
 
 
 
46
  ios-frontend/gemma4_qat_gather_raw/embed_tokens.i8 filter=lfs diff=lfs merge=lfs -text
47
  ios-frontend/gemma4_qat_gather_raw/embed_tokens.scale.f32 filter=lfs diff=lfs merge=lfs -text
48
  ios-frontend/gemma4_qat_gather_raw/proj.f32 filter=lfs diff=lfs merge=lfs -text
49
+ w4a8/gemma4_e2b_qat_decode_int4lin_a8_tbl_pf64/gemma4_e2b_qat_decode_int4lin_a8_tbl_pf64.aimodel/main.mlirb filter=lfs diff=lfs merge=lfs -text
50
+ w4a8/gemma4_e2b_qat_decode_int4lin_a8_tbl_pf64/tokenizer/tokenizer.json filter=lfs diff=lfs merge=lfs -text
w4a8/gemma4_e2b_qat_decode_int4lin_a8_tbl_pf64/calibration_corpus.jsonl ADDED
@@ -0,0 +1,128 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"kind": "post", "chat": true, "text": "Still thinking about weeknight cooking. Batch roasting on sunday buys back about four hours."}
2
+ {"kind": "post", "chat": false, "text": "Changed my mind on language learning apps. The streak mechanic teaches you to open an app, not to speak. Ending this post before it becomes an essay."}
3
+ {"kind": "post", "chat": false, "text": "Small update on the film adaptation. They cut the middle act and wondered why the ending lands flat. Not a complaint exactly, more an observation."}
4
+ {"kind": "post", "chat": false, "text": "Quietly impressed by air quality sensors. The readings near the school are worse on dry days."}
5
+ {"kind": "post", "chat": true, "text": "Small update on secondhand clothes. Vintage sizing is a genre of fiction at this point."}
6
+ {"kind": "post", "chat": true, "text": "Nobody warned me about the film adaptation. They cut the middle act and wondered why the ending lands flat. Anyway, curious whether anyone else has seen this. #pacing"}
7
+ {"kind": "post", "chat": true, "text": "Unpopular opinion about the housing market. The arithmetic simply does not work for anyone under thirty. Anyway, curious whether anyone else has seen this."}
8
+ {"kind": "post", "chat": true, "text": "Reading the fine print on the science funding cuts. You cannot restart a lab after an 18 month gap. Anyway, curious whether anyone else has seen this."}
9
+ {"kind": "post", "chat": false, "text": "Still thinking about the housing market. The arithmetic simply does not work for anyone under thirty. Ending this post before it becomes an essay."}
10
+ {"kind": "post", "chat": true, "text": "Nobody warned me about open source funding. One unpaid person holding up half the ecosystem is not resilience."}
11
+ {"kind": "post", "chat": true, "text": "Still thinking about the local bakery. They changed the starter and everyone noticed within a week."}
12
+ {"kind": "post", "chat": true, "text": "Mildly annoyed by the science funding cuts. You cannot restart a lab after an 18 month gap."}
13
+ {"kind": "post", "chat": false, "text": "Mildly annoyed by the local bakery. They changed the starter and everyone noticed within a week. Ending this post before it becomes an essay."}
14
+ {"kind": "post", "chat": true, "text": "Second attempt at the new transit line. The timetable still has a 20 minute gap at rush hour. Will report back in a month. #commute"}
15
+ {"kind": "post", "chat": true, "text": "Reading the fine print on the football transfer window. Spending that much on a 31 year old is a strategy, not a plan. Not a complaint exactly, more an observation."}
16
+ {"kind": "post", "chat": false, "text": "Two weeks in on running a small shop. The percentage is small until you look at the annual total. Will report back in a month. #card fees"}
17
+ {"kind": "post", "chat": true, "text": "Finally got round to weeknight cooking. Batch roasting on sunday buys back about four hours. Happy to be told I am wrong here."}
18
+ {"kind": "post", "chat": false, "text": "Changed my mind on the housing market. The arithmetic simply does not work for anyone under thirty. Anyway, curious whether anyone else has seen this."}
19
+ {"kind": "post", "chat": true, "text": "Nobody warned me about running a small shop. The percentage is small until you look at the annual total. Anyway, curious whether anyone else has seen this."}
20
+ {"kind": "post", "chat": false, "text": "Second attempt at language learning apps. The streak mechanic teaches you to open an app, not to speak. If you have a workaround I am all ears. #streaks"}
21
+ {"kind": "post", "chat": false, "text": "Changed my mind on electricity tariffs. The unit rate fell and the bill went up, explain that. #standing charge"}
22
+ {"kind": "post", "chat": true, "text": "Second attempt at language learning apps. The streak mechanic teaches you to open an app, not to speak. Happy to be told I am wrong here."}
23
+ {"kind": "post", "chat": true, "text": "Second attempt at open source funding. One unpaid person holding up half the ecosystem is not resilience. Anyway, curious whether anyone else has seen this."}
24
+ {"kind": "post", "chat": true, "text": "Genuinely surprised by air quality sensors. The readings near the school are worse on dry days. Anyway, curious whether anyone else has seen this."}
25
+ {"kind": "post", "chat": true, "text": "Two weeks in on the housing market. The arithmetic simply does not work for anyone under thirty. Not a complaint exactly, more an observation."}
26
+ {"kind": "post", "chat": true, "text": "Quietly impressed by the local bakery. They changed the starter and everyone noticed within a week. Reply if this matches your experience."}
27
+ {"kind": "post", "chat": true, "text": "Nobody warned me about the council budget. Closing the branch saves less than the consultation cost. #libraries"}
28
+ {"kind": "post", "chat": true, "text": "Nobody warned me about the new album. It is mixed for headphones and it shows on a car stereo. #production"}
29
+ {"kind": "post", "chat": true, "text": "Reading the fine print on electricity tariffs. The unit rate fell and the bill went up, explain that. Not a complaint exactly, more an observation. #standing charge"}
30
+ {"kind": "post", "chat": true, "text": "Unpopular opinion about secondhand clothes. Vintage sizing is a genre of fiction at this point. Reply if this matches your experience. #sizing"}
31
+ {"kind": "post", "chat": true, "text": "Reading the fine print on remote work policy. Three days in is not hybrid, it is a commute with extra steps. If you have a workaround I am all ears. #office"}
32
+ {"kind": "post", "chat": true, "text": "Second attempt at air quality sensors. The readings near the school are worse on dry days. Anyway, curious whether anyone else has seen this."}
33
+ {"kind": "post", "chat": false, "text": "Second attempt at the science funding cuts. You cannot restart a lab after an 18 month gap. If you have a workaround I am all ears."}
34
+ {"kind": "post", "chat": false, "text": "Small update on the local bakery. They changed the starter and everyone noticed within a week. Happy to be told I am wrong here. #sourdough"}
35
+ {"kind": "post", "chat": true, "text": "Unpopular opinion about the film adaptation. They cut the middle act and wondered why the ending lands flat. Anyway, curious whether anyone else has seen this. #pacing"}
36
+ {"kind": "post", "chat": true, "text": "Genuinely surprised by the science funding cuts. You cannot restart a lab after an 18 month gap. Ending this post before it becomes an essay. #grants"}
37
+ {"kind": "post", "chat": true, "text": "Nobody warned me about the football transfer window. Spending that much on a 31 year old is a strategy, not a plan. Anyway, curious whether anyone else has seen this."}
38
+ {"kind": "post", "chat": true, "text": "Mildly annoyed by electricity tariffs. The unit rate fell and the bill went up, explain that. If you have a workaround I am all ears."}
39
+ {"kind": "post", "chat": true, "text": "Unpopular opinion about electricity tariffs. The unit rate fell and the bill went up, explain that. #standing charge"}
40
+ {"kind": "post", "chat": true, "text": "Finally got round to cycling infrastructure. Painted lanes that vanish at the dangerous bit are theatre."}
41
+ {"kind": "thread", "chat": true, "text": "OP: Still thinking about the science funding cuts. You cannot restart a lab after an 18 month gap.\nreply 1: hard disagree but i respect the effort you put into the post\nreply 2: ok but who is actually paying for it, that is the bit nobody says out loud\nreply 3: have you tried the other route? adds ten minutes but far less stress\nreply 4: counterpoint: it was worse before and everyone forgets that part"}
42
+ {"kind": "thread", "chat": false, "text": "OP: Still thinking about the housing market. The arithmetic simply does not work for anyone under thirty.\nreply 1: the second paragraph is the whole argument, the rest is scaffolding\nreply 2: the second paragraph is the whole argument, the rest is scaffolding\nreply 3: the second paragraph is the whole argument, the rest is scaffolding"}
43
+ {"kind": "thread", "chat": false, "text": "OP: Genuinely surprised by secondhand clothes. Vintage sizing is a genre of fiction at this point.\nreply 1: have you tried the other route? adds ten minutes but far less stress\nreply 2: source? not doubting you, i just want to read it myself"}
44
+ {"kind": "thread", "chat": true, "text": "OP: Genuinely surprised by electricity tariffs. The unit rate fell and the bill went up, explain that.\nreply 1: saving this, my situation is nearly identical\nreply 2: this is exactly it, the numbers never survive contact with a real week\nreply 3: the second paragraph is the whole argument, the rest is scaffolding"}
45
+ {"kind": "thread", "chat": true, "text": "OP: Quietly impressed by open source funding. One unpaid person holding up half the ecosystem is not resilience.\nreply 1: have you tried the other route? adds ten minutes but far less stress\nreply 2: counterpoint: it was worse before and everyone forgets that part"}
46
+ {"kind": "thread", "chat": true, "text": "OP: Finally got round to weeknight cooking. Batch roasting on sunday buys back about four hours.\nreply 1: counterpoint: it was worse before and everyone forgets that part\nreply 2: the second paragraph is the whole argument, the rest is scaffolding\nreply 3: saving this, my situation is nearly identical\nreply 4: counterpoint: it was worse before and everyone forgets that part"}
47
+ {"kind": "thread", "chat": false, "text": "OP: Unpopular opinion about open source funding. One unpaid person holding up half the ecosystem is not resilience.\nreply 1: source? not doubting you, i just want to read it myself\nreply 2: hard disagree but i respect the effort you put into the post\nreply 3: ok but who is actually paying for it, that is the bit nobody says out loud"}
48
+ {"kind": "thread", "chat": true, "text": "OP: Nobody warned me about train ticket pricing. A system you have to outsmart is a badly designed system.\nreply 1: ok but who is actually paying for it, that is the bit nobody says out loud\nreply 2: ok but who is actually paying for it, that is the bit nobody says out loud\nreply 3: source? not doubting you, i just want to read it myself\nreply 4: we ran into the same thing last year and never got a straight answer"}
49
+ {"kind": "thread", "chat": true, "text": "OP: Nobody warned me about secondhand clothes. Vintage sizing is a genre of fiction at this point.\nreply 1: counterpoint: it was worse before and everyone forgets that part\nreply 2: the second paragraph is the whole argument, the rest is scaffolding"}
50
+ {"kind": "thread", "chat": true, "text": "OP: Still thinking about air quality sensors. The readings near the school are worse on dry days.\nreply 1: counterpoint: it was worse before and everyone forgets that part\nreply 2: the second paragraph is the whole argument, the rest is scaffolding\nreply 3: we ran into the same thing last year and never got a straight answer\nreply 4: we ran into the same thing last year and never got a straight answer"}
51
+ {"kind": "thread", "chat": false, "text": "OP: Still thinking about open source funding. One unpaid person holding up half the ecosystem is not resilience.\nreply 1: ok but who is actually paying for it, that is the bit nobody says out loud\nreply 2: honestly the fact that this needs explaining at all is the problem\nreply 3: ok but who is actually paying for it, that is the bit nobody says out loud"}
52
+ {"kind": "thread", "chat": true, "text": "OP: Genuinely surprised by air quality sensors. The readings near the school are worse on dry days.\nreply 1: counterpoint: it was worse before and everyone forgets that part\nreply 2: ok but who is actually paying for it, that is the bit nobody says out loud\nreply 3: the second paragraph is the whole argument, the rest is scaffolding"}
53
+ {"kind": "thread", "chat": true, "text": "OP: Quietly impressed by train ticket pricing. A system you have to outsmart is a badly designed system.\nreply 1: have you tried the other route? adds ten minutes but far less stress\nreply 2: the second paragraph is the whole argument, the rest is scaffolding"}
54
+ {"kind": "thread", "chat": true, "text": "OP: Genuinely surprised by secondhand clothes. Vintage sizing is a genre of fiction at this point.\nreply 1: have you tried the other route? adds ten minutes but far less stress\nreply 2: counterpoint: it was worse before and everyone forgets that part\nreply 3: honestly the fact that this needs explaining at all is the problem"}
55
+ {"kind": "thread", "chat": false, "text": "OP: Two weeks in on train ticket pricing. A system you have to outsmart is a badly designed system.\nreply 1: honestly the fact that this needs explaining at all is the problem\nreply 2: hard disagree but i respect the effort you put into the post"}
56
+ {"kind": "thread", "chat": true, "text": "OP: Unpopular opinion about train ticket pricing. A system you have to outsmart is a badly designed system.\nreply 1: have you tried the other route? adds ten minutes but far less stress\nreply 2: this is exactly it, the numbers never survive contact with a real week"}
57
+ {"kind": "thread", "chat": true, "text": "OP: Nobody warned me about the science funding cuts. You cannot restart a lab after an 18 month gap.\nreply 1: we ran into the same thing last year and never got a straight answer\nreply 2: the second paragraph is the whole argument, the rest is scaffolding\nreply 3: hard disagree but i respect the effort you put into the post\nreply 4: the second paragraph is the whole argument, the rest is scaffolding"}
58
+ {"kind": "thread", "chat": false, "text": "OP: Finally got round to secondhand clothes. Vintage sizing is a genre of fiction at this point.\nreply 1: have you tried the other route? adds ten minutes but far less stress\nreply 2: source? not doubting you, i just want to read it myself\nreply 3: this is exactly it, the numbers never survive contact with a real week"}
59
+ {"kind": "thread", "chat": true, "text": "OP: Finally got round to the football transfer window. Spending that much on a 31 year old is a strategy, not a plan.\nreply 1: this is exactly it, the numbers never survive contact with a real week\nreply 2: ok but who is actually paying for it, that is the bit nobody says out loud\nreply 3: counterpoint: it was worse before and everyone forgets that part"}
60
+ {"kind": "thread", "chat": false, "text": "OP: Finally got round to remote work policy. Three days in is not hybrid, it is a commute with extra steps.\nreply 1: counterpoint: it was worse before and everyone forgets that part\nreply 2: this is exactly it, the numbers never survive contact with a real week\nreply 3: counterpoint: it was worse before and everyone forgets that part"}
61
+ {"kind": "thread", "chat": true, "text": "OP: Quietly impressed by the new transit line. The timetable still has a 20 minute gap at rush hour.\nreply 1: counterpoint: it was worse before and everyone forgets that part\nreply 2: this is exactly it, the numbers never survive contact with a real week\nreply 3: counterpoint: it was worse before and everyone forgets that part"}
62
+ {"kind": "thread", "chat": true, "text": "OP: Finally got round to cycling infrastructure. Painted lanes that vanish at the dangerous bit are theatre.\nreply 1: honestly the fact that this needs explaining at all is the problem\nreply 2: source? not doubting you, i just want to read it myself\nreply 3: source? not doubting you, i just want to read it myself"}
63
+ {"kind": "thread", "chat": false, "text": "OP: Changed my mind on train ticket pricing. A system you have to outsmart is a badly designed system.\nreply 1: source? not doubting you, i just want to read it myself\nreply 2: honestly the fact that this needs explaining at all is the problem"}
64
+ {"kind": "thread", "chat": true, "text": "OP: Changed my mind on the science funding cuts. You cannot restart a lab after an 18 month gap.\nreply 1: have you tried the other route? adds ten minutes but far less stress\nreply 2: source? not doubting you, i just want to read it myself\nreply 3: ok but who is actually paying for it, that is the bit nobody says out loud"}
65
+ {"kind": "thread", "chat": false, "text": "OP: Nobody warned me about running a small shop. The percentage is small until you look at the annual total.\nreply 1: have you tried the other route? adds ten minutes but far less stress\nreply 2: the second paragraph is the whole argument, the rest is scaffolding\nreply 3: we ran into the same thing last year and never got a straight answer\nreply 4: this is exactly it, the numbers never survive contact with a real week"}
66
+ {"kind": "analysis", "chat": false, "text": "List the assumptions the author makes but does not state.\n\n---\nFinally got round to the science funding cuts. You cannot restart a lab after an 18 month gap. #grants"}
67
+ {"kind": "analysis", "chat": true, "text": "Give a one-line headline that does not overstate what the post says.\n\n---\nUnpopular opinion about the new album. It is mixed for headphones and it shows on a car stereo. #production"}
68
+ {"kind": "analysis", "chat": true, "text": "Draft a short, non-inflammatory reply that disagrees with the main point.\n\n---\nChanged my mind on secondhand clothes. Vintage sizing is a genre of fiction at this point. #sizing"}
69
+ {"kind": "analysis", "chat": true, "text": "What single question would most usefully be asked of this author?\n\n---\nNobody warned me about running a small shop. The percentage is small until you look at the annual total. Ending this post before it becomes an essay."}
70
+ {"kind": "analysis", "chat": false, "text": "Extract every concrete number mentioned and say what each one measures.\n\n---\nGenuinely surprised by open source funding. One unpaid person holding up half the ecosystem is not resilience. Will report back in a month."}
71
+ {"kind": "analysis", "chat": false, "text": "Give a one-line headline that does not overstate what the post says.\n\n---\nSecond attempt at the film adaptation. They cut the middle act and wondered why the ending lands flat. Ending this post before it becomes an essay."}
72
+ {"kind": "analysis", "chat": true, "text": "Give a one-line headline that does not overstate what the post says.\n\n---\nSmall update on the council budget. Closing the branch saves less than the consultation cost."}
73
+ {"kind": "analysis", "chat": true, "text": "Summarise the post below in two sentences and name the author's main claim.\n\n---\nGenuinely surprised by allotment season. Beer traps work, they are just grim to empty. Not a complaint exactly, more an observation. #slugs"}
74
+ {"kind": "analysis", "chat": false, "text": "Draft a short, non-inflammatory reply that disagrees with the main point.\n\n---\nSecond attempt at secondhand clothes. Vintage sizing is a genre of fiction at this point."}
75
+ {"kind": "analysis", "chat": false, "text": "Give a one-line headline that does not overstate what the post says.\n\n---\nNobody warned me about the local bakery. They changed the starter and everyone noticed within a week. Not a complaint exactly, more an observation."}
76
+ {"kind": "analysis", "chat": false, "text": "Is the tone of this closer to complaint, analysis, or humour? Justify briefly.\n\n---\nUnpopular opinion about the housing market. The arithmetic simply does not work for anyone under thirty. Ending this post before it becomes an essay. #deposits"}
77
+ {"kind": "analysis", "chat": false, "text": "List the assumptions the author makes but does not state.\n\n---\nSecond attempt at the football transfer window. Spending that much on a 31 year old is a strategy, not a plan."}
78
+ {"kind": "analysis", "chat": false, "text": "Draft a short, non-inflammatory reply that disagrees with the main point.\n\n---\nTwo weeks in on the new transit line. The timetable still has a 20 minute gap at rush hour."}
79
+ {"kind": "analysis", "chat": false, "text": "List the assumptions the author makes but does not state.\n\n---\nTwo weeks in on the local bakery. They changed the starter and everyone noticed within a week."}
80
+ {"kind": "analysis", "chat": true, "text": "Rewrite this for someone who has no background in the topic.\n\n---\nReading the fine print on the film adaptation. They cut the middle act and wondered why the ending lands flat."}
81
+ {"kind": "analysis", "chat": true, "text": "Is the tone of this closer to complaint, analysis, or humour? Justify briefly.\n\n---\nStill thinking about the new album. It is mixed for headphones and it shows on a car stereo. Will report back in a month."}
82
+ {"kind": "analysis", "chat": true, "text": "Rewrite this for someone who has no background in the topic.\n\n---\nChanged my mind on air quality sensors. The readings near the school are worse on dry days. Will report back in a month."}
83
+ {"kind": "analysis", "chat": true, "text": "Is the tone of this closer to complaint, analysis, or humour? Justify briefly.\n\n---\nStill thinking about the housing market. The arithmetic simply does not work for anyone under thirty. If you have a workaround I am all ears."}
84
+ {"kind": "analysis", "chat": true, "text": "Summarise the post below in two sentences and name the author's main claim.\n\n---\nSmall update on the new album. It is mixed for headphones and it shows on a car stereo. If you have a workaround I am all ears."}
85
+ {"kind": "analysis", "chat": true, "text": "List the assumptions the author makes but does not state.\n\n---\nUnpopular opinion about the film adaptation. They cut the middle act and wondered why the ending lands flat. Reply if this matches your experience. #pacing"}
86
+ {"kind": "analysis", "chat": true, "text": "Is the tone of this closer to complaint, analysis, or humour? Justify briefly.\n\n---\nUnpopular opinion about the new album. It is mixed for headphones and it shows on a car stereo. Happy to be told I am wrong here."}
87
+ {"kind": "analysis", "chat": true, "text": "Rewrite this for someone who has no background in the topic.\n\n---\nSecond attempt at air quality sensors. The readings near the school are worse on dry days. Anyway, curious whether anyone else has seen this. #particulates"}
88
+ {"kind": "analysis", "chat": true, "text": "Draft a short, non-inflammatory reply that disagrees with the main point.\n\n---\nReading the fine print on the new transit line. The timetable still has a 20 minute gap at rush hour. Will report back in a month. #commute"}
89
+ {"kind": "analysis", "chat": true, "text": "What single question would most usefully be asked of this author?\n\n---\nFinally got round to the local bakery. They changed the starter and everyone noticed within a week. Anyway, curious whether anyone else has seen this."}
90
+ {"kind": "analysis", "chat": false, "text": "What single question would most usefully be asked of this author?\n\n---\nGenuinely surprised by train ticket pricing. A system you have to outsmart is a badly designed system. Anyway, curious whether anyone else has seen this."}
91
+ {"kind": "long", "chat": true, "text": "Mildly annoyed by the science funding cuts. You cannot restart a lab after an 18 month gap.\n\nWhat changed my mind was not a study. It was watching the same failure happen three times in a row with three different sets of people, which is either a pattern or a very determined coincidence.\n\nI spent a while assuming the problem was technical, and it took an embarrassing amount of time to notice that every technical fix on the table had been proposed, costed, and quietly shelved for reasons that were entirely about who would own it afterwards.\n\nThere is a version of this argument that is about efficiency and a version that is about who gets to decide, and people keep switching between them mid-paragraph, usually right at the point where the first version stops being convincing.\n\nIf you have a workaround I am all ears."}
92
+ {"kind": "long", "chat": true, "text": "Quietly impressed by the new album. It is mixed for headphones and it shows on a car stereo.\n\nI spent a while assuming the problem was technical, and it took an embarrassing amount of time to notice that every technical fix on the table had been proposed, costed, and quietly shelved for reasons that were entirely about who would own it afterwards.\n\nThere is a version of this argument that is about efficiency and a version that is about who gets to decide, and people keep switching between them mid-paragraph, usually right at the point where the first version stops being convincing.\n\nWhat changed my mind was not a study. It was watching the same failure happen three times in a row with three different sets of people, which is either a pattern or a very determined coincidence.\n\nHappy to be told I am wrong here."}
93
+ {"kind": "long", "chat": true, "text": "Unpopular opinion about allotment season. Beer traps work, they are just grim to empty.\n\nThe thing that keeps getting lost in these conversations is the difference between a cost that shows up on a spreadsheet and a cost that shows up in somebody's week. Both are real. Only one of them gets counted.\n\nThere is a version of this argument that is about efficiency and a version that is about who gets to decide, and people keep switching between them mid-paragraph, usually right at the point where the first version stops being convincing.\n\nI spent a while assuming the problem was technical, and it took an embarrassing amount of time to notice that every technical fix on the table had been proposed, costed, and quietly shelved for reasons that were entirely about who would own it afterwards.\n\nWill report back in a month."}
94
+ {"kind": "long", "chat": true, "text": "Nobody warned me about the local bakery. They changed the starter and everyone noticed within a week.\n\nThe thing that keeps getting lost in these conversations is the difference between a cost that shows up on a spreadsheet and a cost that shows up in somebody's week. Both are real. Only one of them gets counted.\n\nI spent a while assuming the problem was technical, and it took an embarrassing amount of time to notice that every technical fix on the table had been proposed, costed, and quietly shelved for reasons that were entirely about who would own it afterwards.\n\nHappy to be told I am wrong here."}
95
+ {"kind": "long", "chat": false, "text": "Small update on air quality sensors. The readings near the school are worse on dry days.\n\nI spent a while assuming the problem was technical, and it took an embarrassing amount of time to notice that every technical fix on the table had been proposed, costed, and quietly shelved for reasons that were entirely about who would own it afterwards.\n\nThere is a version of this argument that is about efficiency and a version that is about who gets to decide, and people keep switching between them mid-paragraph, usually right at the point where the first version stops being convincing.\n\nNot a complaint exactly, more an observation."}
96
+ {"kind": "long", "chat": true, "text": "Unpopular opinion about air quality sensors. The readings near the school are worse on dry days.\n\nI spent a while assuming the problem was technical, and it took an embarrassing amount of time to notice that every technical fix on the table had been proposed, costed, and quietly shelved for reasons that were entirely about who would own it afterwards.\n\nThe thing that keeps getting lost in these conversations is the difference between a cost that shows up on a spreadsheet and a cost that shows up in somebody's week. Both are real. Only one of them gets counted.\n\nNot a complaint exactly, more an observation."}
97
+ {"kind": "long", "chat": false, "text": "Finally got round to the new album. It is mixed for headphones and it shows on a car stereo.\n\nWhat changed my mind was not a study. It was watching the same failure happen three times in a row with three different sets of people, which is either a pattern or a very determined coincidence.\n\nI spent a while assuming the problem was technical, and it took an embarrassing amount of time to notice that every technical fix on the table had been proposed, costed, and quietly shelved for reasons that were entirely about who would own it afterwards.\n\nThe thing that keeps getting lost in these conversations is the difference between a cost that shows up on a spreadsheet and a cost that shows up in somebody's week. Both are real. Only one of them gets counted.\n\nFiling this under things I did not expect to care about."}
98
+ {"kind": "long", "chat": true, "text": "Genuinely surprised by air quality sensors. The readings near the school are worse on dry days.\n\nThere is a version of this argument that is about efficiency and a version that is about who gets to decide, and people keep switching between them mid-paragraph, usually right at the point where the first version stops being convincing.\n\nI spent a while assuming the problem was technical, and it took an embarrassing amount of time to notice that every technical fix on the table had been proposed, costed, and quietly shelved for reasons that were entirely about who would own it afterwards.\n\nReply if this matches your experience."}
99
+ {"kind": "long", "chat": true, "text": "Quietly impressed by the new transit line. The timetable still has a 20 minute gap at rush hour.\n\nWhat changed my mind was not a study. It was watching the same failure happen three times in a row with three different sets of people, which is either a pattern or a very determined coincidence.\n\nThere is a version of this argument that is about efficiency and a version that is about who gets to decide, and people keep switching between them mid-paragraph, usually right at the point where the first version stops being convincing.\n\nWill report back in a month."}
100
+ {"kind": "long", "chat": true, "text": "Reading the fine print on air quality sensors. The readings near the school are worse on dry days.\n\nWhat changed my mind was not a study. It was watching the same failure happen three times in a row with three different sets of people, which is either a pattern or a very determined coincidence.\n\nThere is a version of this argument that is about efficiency and a version that is about who gets to decide, and people keep switching between them mid-paragraph, usually right at the point where the first version stops being convincing.\n\nWill report back in a month."}
101
+ {"kind": "post", "chat": true, "text": "Quietly impressed by cycling infrastructure. Painted lanes that vanish at the dangerous bit are theatre. Happy to be told I am wrong here."}
102
+ {"kind": "post", "chat": true, "text": "Mildly annoyed by remote work policy. Three days in is not hybrid, it is a commute with extra steps. Anyway, curious whether anyone else has seen this."}
103
+ {"kind": "post", "chat": true, "text": "Unpopular opinion about the football transfer window. Spending that much on a 31 year old is a strategy, not a plan. Not a complaint exactly, more an observation. #midfield"}
104
+ {"kind": "post", "chat": true, "text": "Genuinely surprised by secondhand clothes. Vintage sizing is a genre of fiction at this point."}
105
+ {"kind": "post", "chat": true, "text": "Unpopular opinion about cycling infrastructure. Painted lanes that vanish at the dangerous bit are theatre. Will report back in a month."}
106
+ {"kind": "post", "chat": false, "text": "Small update on the new album. It is mixed for headphones and it shows on a car stereo. #production"}
107
+ {"kind": "post", "chat": true, "text": "Finally got round to secondhand clothes. Vintage sizing is a genre of fiction at this point. If you have a workaround I am all ears. #sizing"}
108
+ {"kind": "post", "chat": true, "text": "Second attempt at electricity tariffs. The unit rate fell and the bill went up, explain that. Ending this post before it becomes an essay. #standing charge"}
109
+ {"kind": "post", "chat": true, "text": "Still thinking about the housing market. The arithmetic simply does not work for anyone under thirty. Happy to be told I am wrong here. #deposits"}
110
+ {"kind": "post", "chat": true, "text": "Two weeks in on the football transfer window. Spending that much on a 31 year old is a strategy, not a plan. #midfield"}
111
+ {"kind": "post", "chat": false, "text": "Second attempt at the new transit line. The timetable still has a 20 minute gap at rush hour. Not a complaint exactly, more an observation. #commute"}
112
+ {"kind": "post", "chat": true, "text": "Reading the fine print on the football transfer window. Spending that much on a 31 year old is a strategy, not a plan. Ending this post before it becomes an essay."}
113
+ {"kind": "post", "chat": true, "text": "Still thinking about cycling infrastructure. Painted lanes that vanish at the dangerous bit are theatre. Filing this under things I did not expect to care about."}
114
+ {"kind": "post", "chat": false, "text": "Two weeks in on the science funding cuts. You cannot restart a lab after an 18 month gap. Not a complaint exactly, more an observation."}
115
+ {"kind": "post", "chat": true, "text": "Nobody warned me about the new album. It is mixed for headphones and it shows on a car stereo."}
116
+ {"kind": "post", "chat": false, "text": "Quietly impressed by the football transfer window. Spending that much on a 31 year old is a strategy, not a plan. #midfield"}
117
+ {"kind": "post", "chat": false, "text": "Mildly annoyed by the council budget. Closing the branch saves less than the consultation cost. Anyway, curious whether anyone else has seen this."}
118
+ {"kind": "post", "chat": true, "text": "Finally got round to allotment season. Beer traps work, they are just grim to empty. Not a complaint exactly, more an observation."}
119
+ {"kind": "post", "chat": true, "text": "Genuinely surprised by running a small shop. The percentage is small until you look at the annual total."}
120
+ {"kind": "post", "chat": true, "text": "Finally got round to train ticket pricing. A system you have to outsmart is a badly designed system. #split fares"}
121
+ {"kind": "post", "chat": true, "text": "Mildly annoyed by electricity tariffs. The unit rate fell and the bill went up, explain that. Happy to be told I am wrong here."}
122
+ {"kind": "post", "chat": true, "text": "Finally got round to language learning apps. The streak mechanic teaches you to open an app, not to speak. Filing this under things I did not expect to care about. #streaks"}
123
+ {"kind": "post", "chat": false, "text": "Nobody warned me about the science funding cuts. You cannot restart a lab after an 18 month gap. Happy to be told I am wrong here."}
124
+ {"kind": "post", "chat": false, "text": "Still thinking about open source funding. One unpaid person holding up half the ecosystem is not resilience."}
125
+ {"kind": "post", "chat": true, "text": "Genuinely surprised by the film adaptation. They cut the middle act and wondered why the ending lands flat. Happy to be told I am wrong here. #pacing"}
126
+ {"kind": "post", "chat": false, "text": "Finally got round to allotment season. Beer traps work, they are just grim to empty. Happy to be told I am wrong here."}
127
+ {"kind": "post", "chat": false, "text": "Two weeks in on train ticket pricing. A system you have to outsmart is a badly designed system. #split fares"}
128
+ {"kind": "post", "chat": true, "text": "Mildly annoyed by allotment season. Beer traps work, they are just grim to empty. #slugs"}
w4a8/gemma4_e2b_qat_decode_int4lin_a8_tbl_pf64/gemma4_e2b_qat_decode_int4lin_a8_tbl_pf64.aimodel/main.hash ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ ���DȺ�c��
2
+ ��7Kr����gI��p
w4a8/gemma4_e2b_qat_decode_int4lin_a8_tbl_pf64/gemma4_e2b_qat_decode_int4lin_a8_tbl_pf64.aimodel/main.mlirb ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:84df1b18ab44c8baec96639dfe0a83cc374b728f9c979113670e154980af700f
3
+ size 2090451618
w4a8/gemma4_e2b_qat_decode_int4lin_a8_tbl_pf64/gemma4_e2b_qat_decode_int4lin_a8_tbl_pf64.aimodel/metadata.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "creationDate" : "20260817T222458Z",
3
+ "assetVersion" : "2.0",
4
+ "producer" : "coreai-core 1.0.0b2"
5
+ }
w4a8/gemma4_e2b_qat_decode_int4lin_a8_tbl_pf64/metadata.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "metadata_version": "0.2",
3
+ "kind": "llm",
4
+ "name": "gemma4_e2b_qat_decode_int4lin_a8_tbl_pf64",
5
+ "assets": {
6
+ "main": "gemma4_e2b_qat_decode_int4lin_a8_tbl_pf64.aimodel"
7
+ },
8
+ "language": {
9
+ "tokenizer": "google/gemma-4-E2B-it-qat-q4_0-unquantized",
10
+ "vocab_size": 262144,
11
+ "max_context_length": 16384,
12
+ "embedded_tokenizer": true,
13
+ "function_map": {
14
+ "main": [
15
+ "main",
16
+ "prefill"
17
+ ]
18
+ }
19
+ },
20
+ "source": {
21
+ "model_definition": "torch",
22
+ "hf_model_id": "google/gemma-4-E2B-it-qat-q4_0-unquantized"
23
+ },
24
+ "compression": null,
25
+ "compilation": {
26
+ "date": "2026-08-17T22:25:00.144664+00:00",
27
+ "targets": []
28
+ }
29
+ }
w4a8/gemma4_e2b_qat_decode_int4lin_a8_tbl_pf64/tokenizer/chat_template.jinja ADDED
@@ -0,0 +1,386 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {#
2
+ Template: Google Gemma 4 Canonical Chat Template
3
+ Author: Google Gemma Engineering Team
4
+ Published: 2026-07-09
5
+ Context: Fixed tool-calling loops, turn closures, and thinking content-ordering.
6
+ #}
7
+ {%- macro format_parameters(properties, required, filter_keys=false) -%}
8
+ {%- set standard_keys = ['description', 'type', 'properties', 'required', 'nullable'] -%}
9
+ {%- set ns = namespace(found_first=false) -%}
10
+ {%- for key, value in properties | dictsort -%}
11
+ {%- set add_comma = false -%}
12
+ {%- if not filter_keys or key not in standard_keys -%}
13
+ {%- if ns.found_first %},{% endif -%}
14
+ {%- set ns.found_first = true -%}
15
+ {{ key }}:{
16
+ {%- if value['description'] -%}
17
+ description:<|"|>{{ value['description'] }}<|"|>
18
+ {%- set add_comma = true -%}
19
+ {%- endif -%}
20
+ {%- if value['type'] | upper == 'STRING' -%}
21
+ {%- if value['enum'] -%}
22
+ {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}
23
+ enum:{{ format_argument(value['enum']) }}
24
+ {%- endif -%}
25
+ {%- elif value['type'] | upper == 'ARRAY' -%}
26
+ {%- if value['items'] is mapping and value['items'] -%}
27
+ {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}
28
+ items:{
29
+ {%- set ns_items = namespace(found_first=false) -%}
30
+ {%- for item_key, item_value in value['items'] | dictsort -%}
31
+ {%- if item_value is not none -%}
32
+ {%- if ns_items.found_first %},{% endif -%}
33
+ {%- set ns_items.found_first = true -%}
34
+ {%- if item_key == 'properties' -%}
35
+ properties:{
36
+ {%- if item_value is mapping -%}
37
+ {{- format_parameters(item_value, value['items']['required'] | default([])) -}}
38
+ {%- endif -%}
39
+ }
40
+ {%- elif item_key == 'required' -%}
41
+ required:[
42
+ {%- for req_item in item_value -%}
43
+ <|"|>{{- req_item -}}<|"|>
44
+ {%- if not loop.last %},{% endif -%}
45
+ {%- endfor -%}
46
+ ]
47
+ {%- elif item_key == 'type' -%}
48
+ {%- if item_value is string -%}
49
+ type:{{ format_argument(item_value | upper) }}
50
+ {%- else -%}
51
+ type:{{ format_argument(item_value | map('upper') | list) }}
52
+ {%- endif -%}
53
+ {%- else -%}
54
+ {{ item_key }}:{{ format_argument(item_value) }}
55
+ {%- endif -%}
56
+ {%- endif -%}
57
+ {%- endfor -%}
58
+ }
59
+ {%- endif -%}
60
+ {%- endif -%}
61
+ {%- if value['nullable'] %}
62
+ {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}
63
+ nullable:true
64
+ {%- endif -%}
65
+ {%- if value['type'] | upper == 'OBJECT' -%}
66
+ {%- if value['properties'] is defined and value['properties'] is mapping -%}
67
+ {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}
68
+ properties:{
69
+ {{- format_parameters(value['properties'], value['required'] | default([])) -}}
70
+ }
71
+ {%- elif value is mapping -%}
72
+ {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}
73
+ properties:{
74
+ {{- format_parameters(value, value['required'] | default([]), filter_keys=true) -}}
75
+ }
76
+ {%- endif -%}
77
+ {%- if value['required'] -%}
78
+ {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}
79
+ required:[
80
+ {%- for item in value['required'] | default([]) -%}
81
+ <|"|>{{- item -}}<|"|>
82
+ {%- if not loop.last %},{% endif -%}
83
+ {%- endfor -%}
84
+ ]
85
+ {%- endif -%}
86
+ {%- endif -%}
87
+ {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}
88
+ type:<|"|>{{ value['type'] | upper }}<|"|>}
89
+ {%- endif -%}
90
+ {%- endfor -%}
91
+ {%- endmacro -%}
92
+ {%- macro format_function_declaration(tool_data) -%}
93
+ declaration:{{- tool_data['function']['name'] -}}{description:<|"|>{{- tool_data['function']['description'] -}}<|"|>
94
+ {%- set params = tool_data['function']['parameters'] -%}
95
+ {%- if params -%}
96
+ ,parameters:{
97
+ {%- if params['properties'] -%}
98
+ properties:{ {{- format_parameters(params['properties'], params['required']) -}} },
99
+ {%- endif -%}
100
+ {%- if params['required'] -%}
101
+ required:[
102
+ {%- for item in params['required'] -%}
103
+ <|"|>{{- item -}}<|"|>
104
+ {{- ',' if not loop.last -}}
105
+ {%- endfor -%}
106
+ ],
107
+ {%- endif -%}
108
+ {%- if params['type'] -%}
109
+ type:<|"|>{{- params['type'] | upper -}}<|"|>}
110
+ {%- endif -%}
111
+ {%- endif -%}
112
+ {%- if 'response' in tool_data['function'] -%}
113
+ {%- set response_declaration = tool_data['function']['response'] -%}
114
+ ,response:{
115
+ {%- if response_declaration['description'] -%}
116
+ description:<|"|>{{- response_declaration['description'] -}}<|"|>,
117
+ {%- endif -%}
118
+ {%- if response_declaration['type'] | upper == 'OBJECT' -%}
119
+ type:<|"|>{{- response_declaration['type'] | upper -}}<|"|>}
120
+ {%- endif -%}
121
+ {%- endif -%}
122
+ }
123
+ {%- endmacro -%}
124
+ {%- macro format_argument(argument, escape_keys=True) -%}
125
+ {%- if argument is none -%}
126
+ {{- 'null' -}}
127
+ {%- elif argument is string -%}
128
+ {{- '<|"|>' + argument + '<|"|>' -}}
129
+ {%- elif argument is boolean -%}
130
+ {{- 'true' if argument else 'false' -}}
131
+ {%- elif argument is mapping -%}
132
+ {{- '{' -}}
133
+ {%- set ns = namespace(found_first=false) -%}
134
+ {%- for key, value in argument | dictsort -%}
135
+ {%- if ns.found_first %},{% endif -%}
136
+ {%- set ns.found_first = true -%}
137
+ {%- if escape_keys -%}
138
+ {{- '<|"|>' + key + '<|"|>' -}}
139
+ {%- else -%}
140
+ {{- key -}}
141
+ {%- endif -%}
142
+ :{{- format_argument(value, escape_keys=escape_keys) -}}
143
+ {%- endfor -%}
144
+ {{- '}' -}}
145
+ {%- elif argument is sequence -%}
146
+ {{- '[' -}}
147
+ {%- for item in argument -%}
148
+ {{- format_argument(item, escape_keys=escape_keys) -}}
149
+ {%- if not loop.last %},{% endif -%}
150
+ {%- endfor -%}
151
+ {{- ']' -}}
152
+ {%- else -%}
153
+ {{- argument -}}
154
+ {%- endif -%}
155
+ {%- endmacro -%}
156
+ {%- macro strip_thinking(text) -%}
157
+ {%- set ns = namespace(result='') -%}
158
+ {%- for part in text.split('<channel|>') -%}
159
+ {%- if '<|channel>' in part -%}
160
+ {%- set ns.result = ns.result + part.split('<|channel>')[0] -%}
161
+ {%- else -%}
162
+ {%- set ns.result = ns.result + part -%}
163
+ {%- endif -%}
164
+ {%- endfor -%}
165
+ {{- ns.result | trim -}}
166
+ {%- endmacro -%}
167
+
168
+ {%- macro format_tool_response_block(tool_name, response) -%}
169
+ {{- '<|tool_response>' -}}
170
+ {%- if response is mapping -%}
171
+ {{- 'response:' + tool_name + '{' -}}
172
+ {%- for key, value in response | dictsort -%}
173
+ {{- key -}}:{{- format_argument(value, escape_keys=False) -}}
174
+ {%- if not loop.last %},{% endif -%}
175
+ {%- endfor -%}
176
+ {{- '}' -}}
177
+ {%- else -%}
178
+ {{- 'response:' + tool_name + '{value:' + format_argument(response, escape_keys=False) + '}' -}}
179
+ {%- endif -%}
180
+ {{- '<tool_response|>' -}}
181
+ {%- endmacro -%}
182
+
183
+ {#- ===== SETUP ===== -#}
184
+ {%- set ns = namespace(prev_message_type=None, prev_non_tool_role=None) -%}
185
+ {%- set loop_messages = messages -%}
186
+ {%- set enable_thinking = enable_thinking | default(false) -%}
187
+ {%- set preserve_thinking = preserve_thinking | default(false) -%}
188
+ {{- bos_token -}}
189
+ {#- Handle System/Tool Definitions Block -#}
190
+ {%- if enable_thinking or tools or (messages and messages[0]['role'] in ['system', 'developer']) -%}
191
+ {{- '<|turn>system\n' -}}
192
+ {#- Inject Thinking token at the very top of the FIRST system turn -#}
193
+ {%- if enable_thinking -%}
194
+ {{- '<|think|>\n' -}}
195
+ {%- set ns.prev_message_type = 'think' -%}
196
+ {%- endif -%}
197
+ {%- if messages and messages[0]['role'] in ['system', 'developer'] -%}
198
+ {%- if messages[0]['content'] is string -%}
199
+ {{- messages[0]['content'] | trim -}}
200
+ {%- elif messages[0]['content'] is sequence -%}
201
+ {%- for item in messages[0]['content'] -%}
202
+ {{- item['text'] | trim + ' '-}}
203
+ {%- endfor -%}
204
+ {%- endif -%}
205
+ {%- set loop_messages = messages[1:] -%}
206
+ {%- endif -%}
207
+ {%- if tools -%}
208
+ {%- for tool in tools %}
209
+ {{- '<|tool>' -}}
210
+ {{- format_function_declaration(tool) | trim -}}
211
+ {{- '<tool|>' -}}
212
+ {%- endfor %}
213
+ {%- set ns.prev_message_type = 'tool' -%}
214
+ {%- endif -%}
215
+ {{- '<turn|>\n' -}}
216
+ {%- endif %}
217
+
218
+ {#- Pre-scan: find last user message index for reasoning guard -#}
219
+ {%- set ns_turn = namespace(last_user_idx=-1) -%}
220
+ {%- for i in range(loop_messages | length) -%}
221
+ {%- if loop_messages[i]['role'] == 'user' -%}
222
+ {%- set ns_turn.last_user_idx = i -%}
223
+ {%- endif -%}
224
+ {%- endfor -%}
225
+
226
+ {#- Loop through messages -#}
227
+ {%- for message in loop_messages -%}
228
+ {%- if message['role'] != 'tool' -%}
229
+ {%- set ns.prev_message_type = None -%}
230
+ {%- set role = 'model' if message['role'] == 'assistant' else message['role'] -%}
231
+ {#- Detect continuation using tracked state — O(1) instead of O(n) backward scan -#}
232
+ {%- set continue_same_model_turn = (role == 'model' and ns.prev_non_tool_role == 'assistant') -%}
233
+ {%- if not continue_same_model_turn -%}
234
+ {{- '<|turn>' + role + '\n' }}
235
+ {%- endif -%}
236
+
237
+ {#- Render reasoning/reasoning_content as thinking channel -#}
238
+ {%- set thinking_text = message.get('reasoning') or message.get('reasoning_content') -%}
239
+ {%- set thinking_gate = (loop.index0 > ns_turn.last_user_idx) or (preserve_thinking and message.get('tool_calls')) -%}
240
+ {%- if thinking_text and thinking_gate -%}
241
+ {{- '<|channel>thought\n' + thinking_text + '\n<channel|>' -}}
242
+ {%- endif -%}
243
+
244
+ {%- if message.get('tool_calls') -%}
245
+ {%- for tool_call in message.get('tool_calls') -%}
246
+ {%- set function = tool_call['function'] -%}
247
+ {{- '<|tool_call>call:' + function['name'] + '{' -}}
248
+ {%- if function['arguments'] is mapping -%}
249
+ {%- set ns_args = namespace(found_first=false) -%}
250
+ {%- for key, value in function['arguments'] | dictsort -%}
251
+ {%- if ns_args.found_first %},{% endif -%}
252
+ {%- set ns_args.found_first = true -%}
253
+ {{- key -}}:{{- format_argument(value, escape_keys=False) -}}
254
+ {%- endfor -%}
255
+ {%- elif function['arguments'] is none -%}
256
+ {%- else -%}
257
+ {{- raise_exception(
258
+ "chat_template: tool_calls[].function.arguments must be a "
259
+ "JSON object (mapping), not a string. Deserialize arguments "
260
+ "before passing to the template."
261
+ ) -}}
262
+ {%- endif -%}
263
+ {{- '}<tool_call|>' -}}
264
+ {%- endfor -%}
265
+ {%- set ns.prev_message_type = 'tool_call' -%}
266
+ {%- endif -%}
267
+
268
+ {%- set ns_tr_out = namespace(flag=false) -%}
269
+ {%- if message.get('tool_responses') -%}
270
+ {#- Legacy: tool_responses embedded on the assistant message (Google/Gemma native) -#}
271
+ {%- for tool_response in message.get('tool_responses') -%}
272
+ {{- format_tool_response_block(tool_response['name'] | default('unknown', true), tool_response['response']) -}}
273
+ {%- set ns_tr_out.flag = true -%}
274
+ {%- set ns.prev_message_type = 'tool_response' -%}
275
+ {%- endfor -%}
276
+ {%- elif message.get('tool_calls') -%}
277
+ {#- OpenAI Chat Completions: forward-scan consecutive role:tool messages -#}
278
+ {%- set ns_tool_scan = namespace(stopped=false) -%}
279
+ {%- for k in range(loop.index0 + 1, loop_messages | length) -%}
280
+ {%- if ns_tool_scan.stopped -%}
281
+ {%- elif loop_messages[k]['role'] != 'tool' -%}
282
+ {%- set ns_tool_scan.stopped = true -%}
283
+ {%- else -%}
284
+ {%- set follow = loop_messages[k] -%}
285
+ {#- Resolve tool_call_id to function name -#}
286
+ {%- set ns_tname = namespace(name=follow.get('name') or 'unknown') -%}
287
+ {%- for tc in message.get('tool_calls') -%}
288
+ {%- if tc.get('id') == follow.get('tool_call_id') -%}
289
+ {%- set ns_tname.name = tc['function']['name'] -%}
290
+ {%- endif -%}
291
+ {%- endfor -%}
292
+ {#- Handle content as string or content-parts array -#}
293
+ {%- set tool_body = follow.get('content') -%}
294
+ {%- if tool_body is string -%}
295
+ {{- format_tool_response_block(ns_tname.name, tool_body) -}}
296
+ {%- elif tool_body is sequence and tool_body is not string -%}
297
+ {%- set ns_txt = namespace(s='') -%}
298
+ {%- for part in tool_body -%}
299
+ {%- if part.get('type') == 'text' -%}
300
+ {%- set ns_txt.s = ns_txt.s + (part.get('text') | default('')) -%}
301
+ {%- endif -%}
302
+ {%- endfor -%}
303
+ {{- format_tool_response_block(ns_tname.name, ns_txt.s) -}}
304
+ {%- for part in tool_body -%}
305
+ {%- if part.get('type') in ['image', 'image_url'] -%}
306
+ {{- '<|image|>' -}}
307
+ {%- elif part.get('type') in ['audio', 'input_audio'] -%}
308
+ {{- '<|audio|>' -}}
309
+ {%- elif part.get('type') == 'video' -%}
310
+ {{- '<|video|>' -}}
311
+ {%- endif -%}
312
+ {%- endfor -%}
313
+ {%- else -%}
314
+ {{- format_tool_response_block(ns_tname.name, tool_body) -}}
315
+ {%- endif -%}
316
+ {%- set ns_tr_out.flag = true -%}
317
+ {%- set ns.prev_message_type = 'tool_response' -%}
318
+ {%- endif -%}
319
+ {%- endfor -%}
320
+ {%- endif -%}
321
+
322
+ {%- set captured_content -%}
323
+ {%- if message.get('content') is string -%}
324
+ {%- if role == 'model' -%}
325
+ {{- strip_thinking(message['content']) -}}
326
+ {%- else -%}
327
+ {{- message['content'] | trim -}}
328
+ {%- endif -%}
329
+ {%- elif message.get('content') is sequence -%}
330
+ {%- for item in message['content'] -%}
331
+ {%- if item.get('type') == 'text' -%}
332
+ {%- if role == 'model' -%}
333
+ {{- strip_thinking(item['text']) -}}
334
+ {%- else -%}
335
+ {{- item['text'] | trim -}}
336
+ {%- endif -%}
337
+ {%- elif item.get('type') in ['image', 'image_url'] -%}
338
+ {{- '<|image|>' -}}
339
+ {%- elif item.get('type') in ['audio', 'input_audio'] -%}
340
+ {{- '<|audio|>' -}}
341
+ {%- elif item.get('type') == 'video' -%}
342
+ {{- '<|video|>' -}}
343
+ {%- endif -%}
344
+ {%- endfor -%}
345
+ {%- endif -%}
346
+ {%- endset -%}
347
+
348
+ {{- captured_content -}}
349
+ {%- set has_content = captured_content | trim | length > 0 -%}
350
+
351
+ {#- Forward-scan: find next non-tool message role for continuation detection -#}
352
+ {%- set next_nt = namespace(role=None, found=false) -%}
353
+ {%- for j in range(loop.index0 + 1, loop_messages | length) -%}
354
+ {%- if not next_nt.found -%}
355
+ {%- if loop_messages[j]['role'] != 'tool' -%}
356
+ {%- set next_nt.role = loop_messages[j]['role'] -%}
357
+ {%- set next_nt.found = true -%}
358
+ {%- endif -%}
359
+ {%- endif -%}
360
+ {%- endfor -%}
361
+
362
+ {%- set continues_into_next = (
363
+ role == 'model'
364
+ and next_nt.role == 'assistant'
365
+ and (not message.get('tool_calls') or ns_tr_out.flag)
366
+ ) -%}
367
+
368
+ {%- if ns.prev_message_type == 'tool_call' and not ns_tr_out.flag -%}
369
+ {{- '<|tool_response>' -}}
370
+ {%- elif continues_into_next -%}
371
+ {%- elif not (ns_tr_out.flag and not has_content and not next_nt.found) -%}
372
+ {{- '<turn|>\n' -}}
373
+ {%- endif -%}
374
+
375
+ {#- Track previous non-tool role for next iteration (avoids O(n) backward scan) -#}
376
+ {%- set ns.prev_non_tool_role = message['role'] -%}
377
+ {%- endif -%}
378
+ {%- endfor -%}
379
+
380
+ {%- if add_generation_prompt -%}
381
+ {%- if ns.prev_message_type != 'tool_response' and ns.prev_message_type != 'tool_call' -%}
382
+ {{- '<|turn>model\n' -}}
383
+ {%- elif ns.prev_message_type == 'tool_response' and enable_thinking -%}
384
+ {{- '<|channel>thought\n' -}}
385
+ {%- endif -%}
386
+ {%- endif -%}
w4a8/gemma4_e2b_qat_decode_int4lin_a8_tbl_pf64/tokenizer/generation_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 2,
3
+ "do_sample": true,
4
+ "eos_token_id": [
5
+ 1,
6
+ 106,
7
+ 50
8
+ ],
9
+ "pad_token_id": 0,
10
+ "temperature": 1.0,
11
+ "top_k": 64,
12
+ "top_p": 0.95,
13
+ "transformers_version": "5.6.2"
14
+ }
w4a8/gemma4_e2b_qat_decode_int4lin_a8_tbl_pf64/tokenizer/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cc8d3a0ce36466ccc1278bf987df5f71db1719b9ca6b4118264f45cb627bfe0f
3
+ size 32169626
w4a8/gemma4_e2b_qat_decode_int4lin_a8_tbl_pf64/tokenizer/tokenizer_config.json ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "audio_token": "<|audio|>",
3
+ "backend": "tokenizers",
4
+ "boa_token": "<|audio>",
5
+ "boi_token": "<|image>",
6
+ "bos_token": "<bos>",
7
+ "eoa_token": "<audio|>",
8
+ "eoc_token": "<channel|>",
9
+ "eoi_token": "<image|>",
10
+ "eos_token": "<turn|>",
11
+ "eot_token": "<turn|>",
12
+ "escape_token": "<|\"|>",
13
+ "etc_token": "<tool_call|>",
14
+ "etd_token": "<tool|>",
15
+ "etr_token": "<tool_response|>",
16
+ "extra_special_tokens": [
17
+ "<|video|>"
18
+ ],
19
+ "image_token": "<|image|>",
20
+ "is_local": false,
21
+ "local_files_only": false,
22
+ "mask_token": "<mask>",
23
+ "model_max_length": 1000000000000000019884624838656,
24
+ "model_specific_special_tokens": {
25
+ "audio_token": "<|audio|>",
26
+ "boa_token": "<|audio>",
27
+ "boi_token": "<|image>",
28
+ "eoa_token": "<audio|>",
29
+ "eoc_token": "<channel|>",
30
+ "eoi_token": "<image|>",
31
+ "eot_token": "<turn|>",
32
+ "escape_token": "<|\"|>",
33
+ "etc_token": "<tool_call|>",
34
+ "etd_token": "<tool|>",
35
+ "etr_token": "<tool_response|>",
36
+ "image_token": "<|image|>",
37
+ "soc_token": "<|channel>",
38
+ "sot_token": "<|turn>",
39
+ "stc_token": "<|tool_call>",
40
+ "std_token": "<|tool>",
41
+ "str_token": "<|tool_response>",
42
+ "think_token": "<|think|>"
43
+ },
44
+ "pad_token": "<pad>",
45
+ "padding_side": "left",
46
+ "processor_class": "Gemma4Processor",
47
+ "response_schema": {
48
+ "properties": {
49
+ "content": {
50
+ "type": "string"
51
+ },
52
+ "role": {
53
+ "const": "assistant"
54
+ },
55
+ "thinking": {
56
+ "type": "string"
57
+ },
58
+ "tool_calls": {
59
+ "items": {
60
+ "properties": {
61
+ "function": {
62
+ "properties": {
63
+ "arguments": {
64
+ "additionalProperties": {},
65
+ "type": "object",
66
+ "x-parser": "gemma4-tool-call"
67
+ },
68
+ "name": {
69
+ "type": "string"
70
+ }
71
+ },
72
+ "type": "object",
73
+ "x-regex": "call\\:(?P<name>\\w+)(?P<arguments>\\{.*\\})"
74
+ },
75
+ "type": {
76
+ "const": "function"
77
+ }
78
+ },
79
+ "type": "object"
80
+ },
81
+ "type": "array",
82
+ "x-regex-iterator": "<\\|tool_call>(.*?)<tool_call\\|>"
83
+ }
84
+ },
85
+ "type": "object",
86
+ "x-regex": "(\\<\\|channel\\>thought\\n(?P<thinking>.*?)\\<channel\\|\\>)?(?P<tool_calls>\\<\\|tool_call\\>.*\\<tool_call\\|\\>)?(?P<content>(?:(?!\\<turn\\|\\>)(?!\\<\\|tool_response\\>).)+)?(?:\\<turn\\|\\>|\\<\\|tool_response\\>)?"
87
+ },
88
+ "response_template": {
89
+ "defaults": {
90
+ "role": "assistant"
91
+ },
92
+ "fields": {
93
+ "content": {
94
+ "close": [
95
+ "<turn|>",
96
+ "<|tool_response>",
97
+ "<eos>"
98
+ ],
99
+ "content": "text"
100
+ },
101
+ "thinking": {
102
+ "close": "<channel|>",
103
+ "content": "text",
104
+ "open": "<|channel>thought\n"
105
+ },
106
+ "tool_calls": {
107
+ "close": "<tool_call|>",
108
+ "content": "json",
109
+ "content_args": {
110
+ "string_delims": [
111
+ [
112
+ "<|\"|>",
113
+ "<|\"|>"
114
+ ]
115
+ ],
116
+ "unquoted_keys": true
117
+ },
118
+ "open_pattern": "<\\|tool_call>call:(?P<name>\\w+)",
119
+ "repeats": true,
120
+ "transform": {
121
+ "function": {
122
+ "arguments": "{content}",
123
+ "name": "{name}"
124
+ },
125
+ "type": "function"
126
+ }
127
+ }
128
+ },
129
+ "start_anchor": [
130
+ "<|turn>model\n",
131
+ "<tool_response|>"
132
+ ]
133
+ },
134
+ "soc_token": "<|channel>",
135
+ "sot_token": "<|turn>",
136
+ "stc_token": "<|tool_call>",
137
+ "std_token": "<|tool>",
138
+ "str_token": "<|tool_response>",
139
+ "think_token": "<|think|>",
140
+ "tokenizer_class": "GemmaTokenizer",
141
+ "unk_token": "<unk>"
142
+ }