ji-farthing commited on
Commit
d8381c5
·
verified ·
1 Parent(s): 53ea064

Add experimental E2B/E4B assistants

Browse files

Adds Q4_0 and Q8_0 Gemma 4 E2B/E4B QAT MTP assistant GGUFs, plus a README caveat that these edge targets require the shared-KV loader branch/fix.

README.md CHANGED
@@ -1,6 +1,8 @@
1
  ---
2
  license: apache-2.0
3
  base_model:
 
 
4
  - google/gemma-4-12B-it-qat-q4_0-unquantized-assistant
5
  - google/gemma-4-26B-A4B-it-qat-q4_0-unquantized-assistant
6
  - google/gemma-4-31B-it-qat-q4_0-unquantized-assistant
@@ -22,10 +24,37 @@ from Google's Gemma 4 QAT Q4_0 assistant checkpoints.
22
  These are not standalone chat models. Use them as `--model-draft` files next to
23
  the matching Google Gemma 4 QAT Q4_0 target GGUF.
24
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
  ## Files
26
 
27
  | Model | Q4_0 assistant | Q8_0 assistant |
28
  | --- | --- | --- |
 
 
29
  | Gemma 4 12B IT QAT Q4_0 | `gemma-4-12B-it-qat-q4_0-MTP-ik_llama-Q4_0.gguf` | `gemma-4-12B-it-qat-q4_0-MTP-ik_llama-Q8_0.gguf` |
30
  | Gemma 4 26B-A4B IT QAT Q4_0 | `gemma-4-26B-A4B-it-qat-q4_0-MTP-ik_llama-Q4_0.gguf` | `gemma-4-26B-A4B-it-qat-q4_0-MTP-ik_llama-Q8_0.gguf` |
31
  | Gemma 4 31B IT QAT Q4_0 | `gemma-4-31B-it-qat-q4_0-MTP-ik_llama-Q4_0.gguf` | `gemma-4-31B-it-qat-q4_0-MTP-ik_llama-Q8_0.gguf` |
@@ -36,6 +65,8 @@ BF16 conversion intermediates are not published here.
36
 
37
  Use the assistants with Google's official target GGUFs:
38
 
 
 
39
  - `google/gemma-4-12B-it-qat-q4_0-gguf`
40
  - `google/gemma-4-26B-A4B-it-qat-q4_0-gguf`
41
  - `google/gemma-4-31B-it-qat-q4_0-gguf`
@@ -61,6 +92,8 @@ Local conversion metadata checks:
61
 
62
  | Model | Tensors | Backbone | Centroid tensors |
63
  | --- | ---: | ---: | --- |
 
 
64
  | 12B | 48 | 3840 | no, metadata only |
65
  | 26B-A4B | 48 | 2816 | no, metadata only |
66
  | 31B | 48 | 5376 | no, metadata only |
@@ -71,6 +104,8 @@ Runtime smoke on an RTX 4070 with `ik_llama` build `4561 (6b9de3dba)`:
71
 
72
  | Target + Q4_0 draft | Status | Notes |
73
  | --- | --- | --- |
 
 
74
  | 12B | passed | MTP context ready; raw completion generated |
75
  | 26B-A4B | passed | MTP context ready; raw completion generated with CPU/system-RAM offload |
76
  | 31B | passed | MTP context ready; raw completion generated with CPU/system-RAM offload |
@@ -79,6 +114,8 @@ Runtime smoke on an RTX 4070 with `ik_llama` build `4561 (6b9de3dba)`:
79
 
80
  Source assistant repos:
81
 
 
 
82
  - `google/gemma-4-12B-it-qat-q4_0-unquantized-assistant`
83
  - `google/gemma-4-26B-A4B-it-qat-q4_0-unquantized-assistant`
84
  - `google/gemma-4-31B-it-qat-q4_0-unquantized-assistant`
 
1
  ---
2
  license: apache-2.0
3
  base_model:
4
+ - google/gemma-4-E2B-it-qat-q4_0-unquantized-assistant
5
+ - google/gemma-4-E4B-it-qat-q4_0-unquantized-assistant
6
  - google/gemma-4-12B-it-qat-q4_0-unquantized-assistant
7
  - google/gemma-4-26B-A4B-it-qat-q4_0-unquantized-assistant
8
  - google/gemma-4-31B-it-qat-q4_0-unquantized-assistant
 
24
  These are not standalone chat models. Use them as `--model-draft` files next to
25
  the matching Google Gemma 4 QAT Q4_0 target GGUF.
26
 
27
+ ## Important E2B/E4B Caveat
28
+
29
+ The E2B and E4B files are experimental edge-model assistants. They converted
30
+ and smoke-tested successfully with matched QAT targets only after an `ik_llama`
31
+ shared-KV target loader fix.
32
+
33
+ Current `ik_llama` builds without that fix may fail before draft loading with
34
+ errors such as:
35
+
36
+ ```text
37
+ E2B: missing blk.15.attn_k.weight
38
+ E4B: missing blk.24.attn_k.weight
39
+ ```
40
+
41
+ Those target tensors appear intentionally absent in Google's QAT edge GGUFs:
42
+ the E2B/E4B targets advertise shared-KV tail layers. A test branch with the
43
+ loader fix is here:
44
+
45
+ ```text
46
+ https://github.com/joelfarthing/ik_llama.cpp/tree/filament/gemma4-edge-shared-kv-20260606
47
+ ```
48
+
49
+ Use matched pairs only. The E2B assistant is not expected to work with the E4B
50
+ target, and the E4B assistant is not expected to work with the E2B target.
51
+
52
  ## Files
53
 
54
  | Model | Q4_0 assistant | Q8_0 assistant |
55
  | --- | --- | --- |
56
+ | Gemma 4 E2B IT QAT Q4_0 | `gemma-4-E2B-it-qat-q4_0-MTP-ik_llama-Q4_0.gguf` | `gemma-4-E2B-it-qat-q4_0-MTP-ik_llama-Q8_0.gguf` |
57
+ | Gemma 4 E4B IT QAT Q4_0 | `gemma-4-E4B-it-qat-q4_0-MTP-ik_llama-Q4_0.gguf` | `gemma-4-E4B-it-qat-q4_0-MTP-ik_llama-Q8_0.gguf` |
58
  | Gemma 4 12B IT QAT Q4_0 | `gemma-4-12B-it-qat-q4_0-MTP-ik_llama-Q4_0.gguf` | `gemma-4-12B-it-qat-q4_0-MTP-ik_llama-Q8_0.gguf` |
59
  | Gemma 4 26B-A4B IT QAT Q4_0 | `gemma-4-26B-A4B-it-qat-q4_0-MTP-ik_llama-Q4_0.gguf` | `gemma-4-26B-A4B-it-qat-q4_0-MTP-ik_llama-Q8_0.gguf` |
60
  | Gemma 4 31B IT QAT Q4_0 | `gemma-4-31B-it-qat-q4_0-MTP-ik_llama-Q4_0.gguf` | `gemma-4-31B-it-qat-q4_0-MTP-ik_llama-Q8_0.gguf` |
 
65
 
66
  Use the assistants with Google's official target GGUFs:
67
 
68
+ - `google/gemma-4-E2B-it-qat-q4_0-gguf`
69
+ - `google/gemma-4-E4B-it-qat-q4_0-gguf`
70
  - `google/gemma-4-12B-it-qat-q4_0-gguf`
71
  - `google/gemma-4-26B-A4B-it-qat-q4_0-gguf`
72
  - `google/gemma-4-31B-it-qat-q4_0-gguf`
 
92
 
93
  | Model | Tensors | Backbone | Centroid tensors |
94
  | --- | ---: | ---: | --- |
95
+ | E2B | 50 | 1536 | yes |
96
+ | E4B | 50 | 2560 | yes |
97
  | 12B | 48 | 3840 | no, metadata only |
98
  | 26B-A4B | 48 | 2816 | no, metadata only |
99
  | 31B | 48 | 5376 | no, metadata only |
 
104
 
105
  | Target + Q4_0 draft | Status | Notes |
106
  | --- | --- | --- |
107
+ | E2B | passed on shared-KV branch | MTP context ready; raw completion generated; 37/92 draft tokens accepted |
108
+ | E4B | passed on shared-KV branch | MTP context ready; raw completion generated; 33/116 draft tokens accepted |
109
  | 12B | passed | MTP context ready; raw completion generated |
110
  | 26B-A4B | passed | MTP context ready; raw completion generated with CPU/system-RAM offload |
111
  | 31B | passed | MTP context ready; raw completion generated with CPU/system-RAM offload |
 
114
 
115
  Source assistant repos:
116
 
117
+ - `google/gemma-4-E2B-it-qat-q4_0-unquantized-assistant`
118
+ - `google/gemma-4-E4B-it-qat-q4_0-unquantized-assistant`
119
  - `google/gemma-4-12B-it-qat-q4_0-unquantized-assistant`
120
  - `google/gemma-4-26B-A4B-it-qat-q4_0-unquantized-assistant`
121
  - `google/gemma-4-31B-it-qat-q4_0-unquantized-assistant`
gemma-4-E2B-it-qat-q4_0-MTP-ik_llama-Q4_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:50680c087172d1b1f590510816d1488be90860a9b1656d710e9c15d29217d33d
3
+ size 77878560
gemma-4-E2B-it-qat-q4_0-MTP-ik_llama-Q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b84a77519e99ccf1619c0887f648b65528b0c725caff858fbc9edb1a663f466b
3
+ size 99439904
gemma-4-E4B-it-qat-q4_0-MTP-ik_llama-Q4_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ca82a555ed265f25504b8c4ef5e293cd7ea70cc18ea29116f55adb5b083a83a6
3
+ size 78320928
gemma-4-E4B-it-qat-q4_0-MTP-ik_llama-Q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:44d0fc879c7d13f8209d56db8b9a781870b7221483feeae91af1e1c4f40c69e9
3
+ size 100275488