Upload folder using huggingface_hub
Browse files- .gitattributes +1 -0
- ARCHITECTURE_RANDOM_MODELS_REPORT.json +6 -5
- README.md +22 -4
- SHA256SUMS +15 -14
- gemma4-random-model/CONFIG_DECISION.md +19 -20
- gemma4-random-model/gguf-q4_k/convert.log +137 -0
- gemma4-random-model/gguf-q4_k/gemma4-random-model-Q4_K.gguf +3 -0
- gemma4-random-model/gguf-q4_k/quantize.log +138 -0
- gemma4-random-model/hf-bf16/config.json +11 -7
- gemma4-random-model/hf-bf16/generation_config.json +4 -4
- gemma4-random-model/hf-bf16/model.safetensors +2 -2
- gemma4-random-model/hf-bf16/tokenizer.json +32 -4
- gemma4-random-model/hf-bf16/tokenizer_config.json +1 -1
- gemma4-random-model/metadata.json +74 -31
- gemma4-random-model/reference/gguf-native.json +2 -2
- gemma4-random-model/reference/hf-outputs.safetensors +1 -1
- manifest.json +7 -7
.gitattributes
CHANGED
|
@@ -64,3 +64,4 @@ tinyllama-chat/gguf/model-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
|
| 64 |
gemma4-random-model/gguf-q4_0/gemma4-random-model-Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 65 |
qwen3-random-model/gguf-q4_0/qwen3-random-model-Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 66 |
smollm3-random-model/gguf-q4_0/smollm3-random-model-Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 64 |
gemma4-random-model/gguf-q4_0/gemma4-random-model-Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 65 |
qwen3-random-model/gguf-q4_0/qwen3-random-model-Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 66 |
smollm3-random-model/gguf-q4_0/smollm3-random-model-Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 67 |
+
gemma4-random-model/gguf-q4_k/gemma4-random-model-Q4_K.gguf filter=lfs diff=lfs merge=lfs -text
|
ARCHITECTURE_RANDOM_MODELS_REPORT.json
CHANGED
|
@@ -6,14 +6,15 @@
|
|
| 6 |
"eog_token_ids": [
|
| 7 |
1
|
| 8 |
],
|
| 9 |
-
"gguf_quantization": "
|
| 10 |
-
"gguf_sha256": "
|
| 11 |
"hf_dtype": "bfloat16",
|
| 12 |
-
"hf_sha256": "
|
| 13 |
-
"parameter_count":
|
| 14 |
"tensor_type_histogram": {
|
| 15 |
"F32": 44,
|
| 16 |
-
"
|
|
|
|
| 17 |
},
|
| 18 |
"validation": "passed"
|
| 19 |
},
|
|
|
|
| 6 |
"eog_token_ids": [
|
| 7 |
1
|
| 8 |
],
|
| 9 |
+
"gguf_quantization": "Q4_K",
|
| 10 |
+
"gguf_sha256": "3ce6309aa4221289441b198ab63cd6c0d03075ba183ea1990001313c99d6e845",
|
| 11 |
"hf_dtype": "bfloat16",
|
| 12 |
+
"hf_sha256": "e97de7f7fcad67f15547487a4b44fa8b6066ad8cd49b2c0d4b1230e3cf615ad3",
|
| 13 |
+
"parameter_count": 6036608,
|
| 14 |
"tensor_type_histogram": {
|
| 15 |
"F32": 44,
|
| 16 |
+
"Q4_K": 37,
|
| 17 |
+
"Q6_K": 5
|
| 18 |
},
|
| 19 |
"validation": "passed"
|
| 20 |
},
|
README.md
CHANGED
|
@@ -37,7 +37,7 @@ checkpoint weights are included.
|
|
| 37 |
| `deepseek-coder` | Llama | 9,296 | F32 | Q4_K_M | linear RoPE scaling |
|
| 38 |
| `hermes3-llama31` | Llama | 86,336 | F32 | Q4_K_M | Llama 3 RoPE scaling |
|
| 39 |
| `livekit-turn-detector` | Llama | 132,336 | F32 | Q4_K_M | explicit head dimension, GQA |
|
| 40 |
-
| `gemma4-random-model` | Gemma 4 |
|
| 41 |
| `qwen3-random-model` | Qwen 3 | 508,800 | BF16 | Q4_0 | wide Q projection and Q/K head norms |
|
| 42 |
| `smollm3-random-model` | SmolLM3 | 4,917,504 | BF16 | Q4_0 | three-RoPE/one-no-RoPE layer schedule |
|
| 43 |
|
|
@@ -76,8 +76,8 @@ The architecture-specific cases use:
|
|
| 76 |
| |-- model.safetensors
|
| 77 |
| |-- tokenizer.json
|
| 78 |
| `-- tokenizer_config.json
|
| 79 |
-
|-- gguf-q4_0/
|
| 80 |
-
| |-- <case>-Q4_0.gguf
|
| 81 |
| `-- quantize.log
|
| 82 |
|-- reference/
|
| 83 |
| |-- inputs.json
|
|
@@ -113,7 +113,7 @@ model EOS semantics. Per-case metadata records the actual tensor-type histogram,
|
|
| 113 |
hashes, commands, and informational comparison with the corresponding
|
| 114 |
Transformers reference.
|
| 115 |
|
| 116 |
-
Q4_K_M and Q4_0 are lossy formats. Their logits are not required to equal the
|
| 117 |
F32 or BF16 reference exactly.
|
| 118 |
|
| 119 |
## Reproducibility and scope
|
|
@@ -130,3 +130,21 @@ repositories; consult their recorded provenance before redistribution.
|
|
| 130 |
|
| 131 |
See `REPORT.md`, `GGUF_Q4_K_M_REPORT.json`, and
|
| 132 |
`ARCHITECTURE_RANDOM_MODELS_REPORT.json` for collection-level summaries.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
| `deepseek-coder` | Llama | 9,296 | F32 | Q4_K_M | linear RoPE scaling |
|
| 38 |
| `hermes3-llama31` | Llama | 86,336 | F32 | Q4_K_M | Llama 3 RoPE scaling |
|
| 39 |
| `livekit-turn-detector` | Llama | 132,336 | F32 | Q4_K_M | explicit head dimension, GQA |
|
| 40 |
+
| `gemma4-random-model` | Gemma 4 | 6,036,608 | BF16 | Q4_K | five-local/one-global attention schedule |
|
| 41 |
| `qwen3-random-model` | Qwen 3 | 508,800 | BF16 | Q4_0 | wide Q projection and Q/K head norms |
|
| 42 |
| `smollm3-random-model` | SmolLM3 | 4,917,504 | BF16 | Q4_0 | three-RoPE/one-no-RoPE layer schedule |
|
| 43 |
|
|
|
|
| 76 |
| |-- model.safetensors
|
| 77 |
| |-- tokenizer.json
|
| 78 |
| `-- tokenizer_config.json
|
| 79 |
+
|-- gguf-q4_k/ or gguf-q4_0/
|
| 80 |
+
| |-- <case>-Q4_K.gguf or <case>-Q4_0.gguf
|
| 81 |
| `-- quantize.log
|
| 82 |
|-- reference/
|
| 83 |
| |-- inputs.json
|
|
|
|
| 113 |
hashes, commands, and informational comparison with the corresponding
|
| 114 |
Transformers reference.
|
| 115 |
|
| 116 |
+
Q4_K, Q4_K_M, and Q4_0 are lossy formats. Their logits are not required to equal the
|
| 117 |
F32 or BF16 reference exactly.
|
| 118 |
|
| 119 |
## Reproducibility and scope
|
|
|
|
| 130 |
|
| 131 |
See `REPORT.md`, `GGUF_Q4_K_M_REPORT.json`, and
|
| 132 |
`ARCHITECTURE_RANDOM_MODELS_REPORT.json` for collection-level summaries.
|
| 133 |
+
|
| 134 |
+
## History
|
| 135 |
+
|
| 136 |
+
### 2026-08-12: Gemma 4 random model rebuilt
|
| 137 |
+
|
| 138 |
+
The first `gemma4-random-model` release used hidden width 128, 1,519,168
|
| 139 |
+
parameters, and Q4_0. That version was replaced because its small matrix axes
|
| 140 |
+
did not exercise K-quant blocks and its GGUF metadata was not sufficiently close
|
| 141 |
+
to the inspected 12B Gemma 4 source GGUF.
|
| 142 |
+
|
| 143 |
+
The current release uses hidden width 256, FFN width 1024, 6,036,608 parameters,
|
| 144 |
+
and llama.cpp's `Q4_K` alias. Its actual tensor histogram contains F32, Q4_K,
|
| 145 |
+
and Q6_K, matching the source profile family. It preserves the six-layer
|
| 146 |
+
five-sliding/one-full schedule, per-layer KV head array, local/global head-width
|
| 147 |
+
ratio, dual RoPE regimes, global shared K/V behavior, complete norm inventory,
|
| 148 |
+
layer output scales, tied embeddings, tokenizer special IDs, and applicable
|
| 149 |
+
sampling metadata. HF BF16 weights and both HF and GGUF references were
|
| 150 |
+
regenerated; the previous Q4_0 Gemma 4 files are not part of this release.
|
SHA256SUMS
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
-
|
| 2 |
18ec0cdad98853d7f10381790713f0b3190bd4f24962594bf576e11fdb07f76f GGUF_Q4_K_M_ADDED_FOUR_REPORT.json
|
| 3 |
695036ee0e223d3d79170fb3a0f795eb88f6337fb2e29c18f0b549979c057208 GGUF_Q4_K_M_REPORT.json
|
| 4 |
-
|
| 5 |
95d67a407dc96839250fe23e85e0a5bab9d355ee463b0c87bf9e33164c952b52 REPORT.md
|
| 6 |
02130c5ef4fe4e00bf26cc6e0eb288b90916acf827031bf572ffc02a48d5f3f0 deepseek-coder/case.json
|
| 7 |
616662945b2382e3c4ef36c05b40ebacea17e2e16fa3a723b7fd49eb5d0e9fdd deepseek-coder/config-diff.json
|
|
@@ -22,17 +22,18 @@ b80f4edf3204563fd78e3c95498aa4ceb9af1770f52869c638d33be9124a43a5 deepseek-coder
|
|
| 22 |
603a68ffd4df8d0b01492da00fcd7b7386f7a8bbe90e92b81b82516a9231fbfb deepseek-coder/tokenizer/tokenizer_config.json
|
| 23 |
7b1258e1304c5f09f3bc64cd4b569e7ddfa55a062c0581d0e5cb1a3d7a17fcc8 deepseek-coder/tokenizer/vocabulary.json
|
| 24 |
aa20ff35795ac323bbdbc81c292f0fa74bb81f9026b88cd01c40c4d81e428d8c deepseek-coder/validation.json
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
|
|
|
| 36 |
719a2f5ea966e92e42ebcc43dd73f0714b5d740c9f426d22c942dbb1e7efb6ab gemma4-random-model/reference/inputs.json
|
| 37 |
94a8d82acf2fde73ae5095df8f17c0e2303df4510d0836f3c5c6d65ed51444e5 hermes3-llama31/case.json
|
| 38 |
6c0670415f473f79fed118e88160012de23a21df169ed664c2f56be817aa755d hermes3-llama31/config-diff.json
|
|
@@ -72,7 +73,7 @@ f003d32e36ddc9d7c7a50c186da5c544b2828a0d04ca62aeac741d765727a635 livekit-turn-d
|
|
| 72 |
564a5f0d3380d83d0ffcfa509a5e5369c0610f586cb6b3d0d45ccaee76610327 livekit-turn-detector/tokenizer/tokenizer_config.json
|
| 73 |
7b1258e1304c5f09f3bc64cd4b569e7ddfa55a062c0581d0e5cb1a3d7a17fcc8 livekit-turn-detector/tokenizer/vocabulary.json
|
| 74 |
391312ee129392e2b35b6a238593ca5ddff3dd51c6c324135f1bb0114be1e068 livekit-turn-detector/validation.json
|
| 75 |
-
|
| 76 |
047c4545232dc055c2c7e4a30a70c22e0e75e9e777e539732128f65c32b0c1cb minicpm5/case.json
|
| 77 |
282a55aae55b59573109fe37222197f298600ad691573bcd84ea5d4dc1afcc0a minicpm5/config-diff.json
|
| 78 |
d088266a01cd2f9a6107877932d6af9f65e6d00202292226eab76af8ea0e889f minicpm5/gguf/metadata.json
|
|
|
|
| 1 |
+
d17b37c112047f3ac47f54634c1a59da55e179b4fb176ad596ecc94240750006 ARCHITECTURE_RANDOM_MODELS_REPORT.json
|
| 2 |
18ec0cdad98853d7f10381790713f0b3190bd4f24962594bf576e11fdb07f76f GGUF_Q4_K_M_ADDED_FOUR_REPORT.json
|
| 3 |
695036ee0e223d3d79170fb3a0f795eb88f6337fb2e29c18f0b549979c057208 GGUF_Q4_K_M_REPORT.json
|
| 4 |
+
fb3008e24a0fecc2bb0cb72b27770db78f72bc481dc086b8080c89f09e419816 README.md
|
| 5 |
95d67a407dc96839250fe23e85e0a5bab9d355ee463b0c87bf9e33164c952b52 REPORT.md
|
| 6 |
02130c5ef4fe4e00bf26cc6e0eb288b90916acf827031bf572ffc02a48d5f3f0 deepseek-coder/case.json
|
| 7 |
616662945b2382e3c4ef36c05b40ebacea17e2e16fa3a723b7fd49eb5d0e9fdd deepseek-coder/config-diff.json
|
|
|
|
| 22 |
603a68ffd4df8d0b01492da00fcd7b7386f7a8bbe90e92b81b82516a9231fbfb deepseek-coder/tokenizer/tokenizer_config.json
|
| 23 |
7b1258e1304c5f09f3bc64cd4b569e7ddfa55a062c0581d0e5cb1a3d7a17fcc8 deepseek-coder/tokenizer/vocabulary.json
|
| 24 |
aa20ff35795ac323bbdbc81c292f0fa74bb81f9026b88cd01c40c4d81e428d8c deepseek-coder/validation.json
|
| 25 |
+
4d463e831b4df46925f7ed82f898a9212d004882dacefc7012171254a70e52ed gemma4-random-model/CONFIG_DECISION.md
|
| 26 |
+
5c330d499055016556a88ee42b398fac5fa6fa7706f68cad2c4aa8e6d7286f1c gemma4-random-model/gguf-q4_k/convert.log
|
| 27 |
+
3ce6309aa4221289441b198ab63cd6c0d03075ba183ea1990001313c99d6e845 gemma4-random-model/gguf-q4_k/gemma4-random-model-Q4_K.gguf
|
| 28 |
+
762c5f1a0d751251c0a73f75b629f7256f94dda7431f3a5520b36068e24f4ea1 gemma4-random-model/gguf-q4_k/quantize.log
|
| 29 |
+
571a499253eb22afcc050ee3428fdc56dcc23a38cfc66248a911bc2b51df93bb gemma4-random-model/hf-bf16/config.json
|
| 30 |
+
47a105f62d5f925c70d1b8d2825d617c034bdbab7ed99aadaaf35ac56751e13f gemma4-random-model/hf-bf16/generation_config.json
|
| 31 |
+
e97de7f7fcad67f15547487a4b44fa8b6066ad8cd49b2c0d4b1230e3cf615ad3 gemma4-random-model/hf-bf16/model.safetensors
|
| 32 |
+
5497f30f2a945c00a2d2cbe8b2f37a8a7c27a596fa01f59c61eef3a55bdf4a4c gemma4-random-model/hf-bf16/tokenizer.json
|
| 33 |
+
d0fab7832fecaac8554eaebfad305d55655cc79b3404eb9a7b0a4fc9dce08a01 gemma4-random-model/hf-bf16/tokenizer_config.json
|
| 34 |
+
76212c94e1734b8c71f4cbd4949d351cfcbc7dce2392a8b3331ae9c17829385f gemma4-random-model/metadata.json
|
| 35 |
+
3f3f233fc1b56d7a63862da867fa81e37c78fc4f1a169386dd01a5cfa09fc28a gemma4-random-model/reference/gguf-native.json
|
| 36 |
+
d6bf946d748543d85bb840ccf2533c4ed30817adec2e736e2f27e7024e3f7996 gemma4-random-model/reference/hf-outputs.safetensors
|
| 37 |
719a2f5ea966e92e42ebcc43dd73f0714b5d740c9f426d22c942dbb1e7efb6ab gemma4-random-model/reference/inputs.json
|
| 38 |
94a8d82acf2fde73ae5095df8f17c0e2303df4510d0836f3c5c6d65ed51444e5 hermes3-llama31/case.json
|
| 39 |
6c0670415f473f79fed118e88160012de23a21df169ed664c2f56be817aa755d hermes3-llama31/config-diff.json
|
|
|
|
| 73 |
564a5f0d3380d83d0ffcfa509a5e5369c0610f586cb6b3d0d45ccaee76610327 livekit-turn-detector/tokenizer/tokenizer_config.json
|
| 74 |
7b1258e1304c5f09f3bc64cd4b569e7ddfa55a062c0581d0e5cb1a3d7a17fcc8 livekit-turn-detector/tokenizer/vocabulary.json
|
| 75 |
391312ee129392e2b35b6a238593ca5ddff3dd51c6c324135f1bb0114be1e068 livekit-turn-detector/validation.json
|
| 76 |
+
d3c192b83c78f0d46d46835f0e4e201dd80755dde5fd39016a051b5133b36410 manifest.json
|
| 77 |
047c4545232dc055c2c7e4a30a70c22e0e75e9e777e539732128f65c32b0c1cb minicpm5/case.json
|
| 78 |
282a55aae55b59573109fe37222197f298600ad691573bcd84ea5d4dc1afcc0a minicpm5/config-diff.json
|
| 79 |
d088266a01cd2f9a6107877932d6af9f65e6d00202292226eab76af8ea0e889f minicpm5/gguf/metadata.json
|
gemma4-random-model/CONFIG_DECISION.md
CHANGED
|
@@ -2,13 +2,13 @@
|
|
| 2 |
|
| 3 |
## Status
|
| 4 |
|
| 5 |
-
The text-only
|
| 6 |
`artifacts/gemma4-v0/gemma4-random-model` as a BF16 Hugging Face package and a
|
| 7 |
-
|
| 8 |
|
| 9 |
-
The
|
| 10 |
`Gemma4ForCausalLM` with `Gemma4TextConfig`. Its constructed trainable parameter
|
| 11 |
-
count is
|
| 12 |
|
| 13 |
The local source file identifies itself as `general.architecture = gemma4`.
|
| 14 |
Repository and revision provenance are not inferable from the local directory and
|
|
@@ -39,13 +39,13 @@ and `general.type = mmproj`. It is not included in the first text-only fixture.
|
|
| 39 |
|
| 40 |
## Tiny geometry
|
| 41 |
|
| 42 |
-
The selected geometry is defined in `configs/gemma4-
|
| 43 |
|
| 44 |
- 6 layers: one complete five-local/one-global schedule.
|
| 45 |
-
- Hidden width
|
| 46 |
- 4 query heads.
|
| 47 |
-
- Local layers: 2 KV heads, head width
|
| 48 |
-
- Global layer: 1 KV head, head width
|
| 49 |
- Context 128 and sliding window 64.
|
| 50 |
- Vocabulary 128 with PAD/EOS/BOS/UNK/MASK IDs 0/1/2/3/4.
|
| 51 |
|
|
@@ -54,9 +54,8 @@ preserves the official layer schedule, the 2:1 global/local head-width ratio, th
|
|
| 54 |
2:1 query/local-KV head ratio, the single global KV head, FFN ratio 4, separate
|
| 55 |
RoPE regimes, softcap, tied embeddings, and global shared-KV tensor inventory.
|
| 56 |
|
| 57 |
-
All matrix
|
| 58 |
-
|
| 59 |
-
model geometry merely to satisfy quantization blocks.
|
| 60 |
|
| 61 |
## Expected GGUF tensor dimensions
|
| 62 |
|
|
@@ -64,14 +63,14 @@ GGUF dimensions are listed in reader order.
|
|
| 64 |
|
| 65 |
| Role | Local layers 0-4 | Global layer 5 |
|
| 66 |
|---|---:|---:|
|
| 67 |
-
| `attn_q.weight` | `[
|
| 68 |
-
| `attn_k.weight` | `[
|
| 69 |
-
| `attn_v.weight` | `[
|
| 70 |
-
| `attn_output.weight` | `[
|
| 71 |
-
| `attn_q_norm.weight` | `[
|
| 72 |
-
| `attn_k_norm.weight` | `[
|
| 73 |
-
|
| 74 |
-
Every layer also has FFN gate/up `[
|
| 75 |
hidden-width norms, and one scalar layer-output scale.
|
| 76 |
|
| 77 |
## Generation gates
|
|
@@ -83,5 +82,5 @@ Fixture generation is accepted only when:
|
|
| 83 |
- a second generation is byte-identical;
|
| 84 |
- the F32 GGUF loads in the pinned llama.cpp revision;
|
| 85 |
- direct-token prefill and cached decode are finite and reproducible;
|
| 86 |
-
- the
|
| 87 |
- F32 outputs are compared with an independently generated matched reference.
|
|
|
|
| 2 |
|
| 3 |
## Status
|
| 4 |
|
| 5 |
+
The text-only reduced configuration is generated under
|
| 6 |
`artifacts/gemma4-v0/gemma4-random-model` as a BF16 Hugging Face package and a
|
| 7 |
+
mixed K-quant GGUF requested through llama.cpp's `Q4_K` alias.
|
| 8 |
|
| 9 |
+
The current Hugging Face implementation is Transformers 5.15.0
|
| 10 |
`Gemma4ForCausalLM` with `Gemma4TextConfig`. Its constructed trainable parameter
|
| 11 |
+
count is 6,036,608.
|
| 12 |
|
| 13 |
The local source file identifies itself as `general.architecture = gemma4`.
|
| 14 |
Repository and revision provenance are not inferable from the local directory and
|
|
|
|
| 39 |
|
| 40 |
## Tiny geometry
|
| 41 |
|
| 42 |
+
The selected geometry is defined in `configs/gemma4-random-q4k-v1.json`:
|
| 43 |
|
| 44 |
- 6 layers: one complete five-local/one-global schedule.
|
| 45 |
+
- Hidden width 256 and FFN width 1024.
|
| 46 |
- 4 query heads.
|
| 47 |
+
- Local layers: 2 KV heads, head width 64.
|
| 48 |
+
- Global layer: 1 KV head, head width 128, no independent V projection.
|
| 49 |
- Context 128 and sliding window 64.
|
| 50 |
- Vocabulary 128 with PAD/EOS/BOS/UNK/MASK IDs 0/1/2/3/4.
|
| 51 |
|
|
|
|
| 54 |
2:1 query/local-KV head ratio, the single global KV head, FFN ratio 4, separate
|
| 55 |
RoPE regimes, softcap, tied embeddings, and global shared-KV tensor inventory.
|
| 56 |
|
| 57 |
+
All matrix quantization axes are multiples of 256. This allows actual Q4_K/Q6_K
|
| 58 |
+
tensors rather than Q4_0 or K-quant fallback caused by undersized dimensions.
|
|
|
|
| 59 |
|
| 60 |
## Expected GGUF tensor dimensions
|
| 61 |
|
|
|
|
| 63 |
|
| 64 |
| Role | Local layers 0-4 | Global layer 5 |
|
| 65 |
|---|---:|---:|
|
| 66 |
+
| `attn_q.weight` | `[256, 256]` | `[256, 512]` |
|
| 67 |
+
| `attn_k.weight` | `[256, 128]` | `[256, 128]` |
|
| 68 |
+
| `attn_v.weight` | `[256, 128]` | absent |
|
| 69 |
+
| `attn_output.weight` | `[256, 256]` | `[512, 256]` |
|
| 70 |
+
| `attn_q_norm.weight` | `[64]` | `[128]` |
|
| 71 |
+
| `attn_k_norm.weight` | `[64]` | `[128]` |
|
| 72 |
+
|
| 73 |
+
Every layer also has FFN gate/up `[256, 1024]`, FFN down `[1024, 256]`,
|
| 74 |
hidden-width norms, and one scalar layer-output scale.
|
| 75 |
|
| 76 |
## Generation gates
|
|
|
|
| 82 |
- a second generation is byte-identical;
|
| 83 |
- the F32 GGUF loads in the pinned llama.cpp revision;
|
| 84 |
- direct-token prefill and cached decode are finite and reproducible;
|
| 85 |
+
- the mixed Q4_K/Q6_K conversion retains the same geometry and loads successfully;
|
| 86 |
- F32 outputs are compared with an independently generated matched reference.
|
gemma4-random-model/gguf-q4_k/convert.log
ADDED
|
@@ -0,0 +1,137 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
INFO:hf-to-gguf:Loading model: hf-for-converter
|
| 2 |
+
WARNING:hf-to-gguf:Failed to load model config from /home/codex/tmp/gemma4-q4k-work-20260812/hf-for-converter: The checkpoint you are trying to load has model type `gemma4_text_converter_raw_config` but Transformers does not recognize this architecture. This could be because of an issue with the checkpoint, or because your version of Transformers is out of date.
|
| 3 |
+
|
| 4 |
+
You can update Transformers with the command `pip install --upgrade transformers`. If this does not work, and the checkpoint is very new, then there may not be a release version that supports this model yet. In this case, you can get the most up-to-date code by installing Transformers from source with the command `pip install git+https://github.com/huggingface/transformers.git`
|
| 5 |
+
WARNING:hf-to-gguf:Trying to load config.json instead
|
| 6 |
+
INFO:hf-to-gguf:Model architecture: Gemma4ForCausalLM
|
| 7 |
+
WARNING:hf-to-gguf:Failed to load model config from /home/codex/tmp/gemma4-q4k-work-20260812/hf-for-converter: The checkpoint you are trying to load has model type `gemma4_text_converter_raw_config` but Transformers does not recognize this architecture. This could be because of an issue with the checkpoint, or because your version of Transformers is out of date.
|
| 8 |
+
|
| 9 |
+
You can update Transformers with the command `pip install --upgrade transformers`. If this does not work, and the checkpoint is very new, then there may not be a release version that supports this model yet. In this case, you can get the most up-to-date code by installing Transformers from source with the command `pip install git+https://github.com/huggingface/transformers.git`
|
| 10 |
+
WARNING:hf-to-gguf:Trying to load config.json instead
|
| 11 |
+
INFO:hf-to-gguf:gguf: indexing model part 'model.safetensors'
|
| 12 |
+
INFO:gguf.gguf_writer:gguf: This GGUF file is for Little Endian only
|
| 13 |
+
INFO:hf-to-gguf:Exporting model...
|
| 14 |
+
INFO:hf-to-gguf:rope_freqs.weight, torch.float32 --> F32, shape = {64}
|
| 15 |
+
INFO:hf-to-gguf:token_embd.weight, torch.bfloat16 --> F32, shape = {256, 128}
|
| 16 |
+
INFO:hf-to-gguf:blk.0.attn_norm.weight, torch.bfloat16 --> F32, shape = {256}
|
| 17 |
+
INFO:hf-to-gguf:blk.0.layer_output_scale.weight, torch.bfloat16 --> F32, shape = {1}
|
| 18 |
+
INFO:hf-to-gguf:blk.0.ffn_down.weight, torch.bfloat16 --> F32, shape = {1024, 256}
|
| 19 |
+
INFO:hf-to-gguf:blk.0.ffn_gate.weight, torch.bfloat16 --> F32, shape = {256, 1024}
|
| 20 |
+
INFO:hf-to-gguf:blk.0.ffn_up.weight, torch.bfloat16 --> F32, shape = {256, 1024}
|
| 21 |
+
INFO:hf-to-gguf:blk.0.post_attention_norm.weight, torch.bfloat16 --> F32, shape = {256}
|
| 22 |
+
INFO:hf-to-gguf:blk.0.post_ffw_norm.weight, torch.bfloat16 --> F32, shape = {256}
|
| 23 |
+
INFO:hf-to-gguf:blk.0.ffn_norm.weight, torch.bfloat16 --> F32, shape = {256}
|
| 24 |
+
INFO:hf-to-gguf:blk.0.attn_k_norm.weight, torch.bfloat16 --> F32, shape = {64}
|
| 25 |
+
INFO:hf-to-gguf:blk.0.attn_k.weight, torch.bfloat16 --> F32, shape = {256, 128}
|
| 26 |
+
INFO:hf-to-gguf:blk.0.attn_output.weight, torch.bfloat16 --> F32, shape = {256, 256}
|
| 27 |
+
INFO:hf-to-gguf:blk.0.attn_q_norm.weight, torch.bfloat16 --> F32, shape = {64}
|
| 28 |
+
INFO:hf-to-gguf:blk.0.attn_q.weight, torch.bfloat16 --> F32, shape = {256, 256}
|
| 29 |
+
INFO:hf-to-gguf:blk.0.attn_v.weight, torch.bfloat16 --> F32, shape = {256, 128}
|
| 30 |
+
INFO:hf-to-gguf:blk.1.attn_norm.weight, torch.bfloat16 --> F32, shape = {256}
|
| 31 |
+
INFO:hf-to-gguf:blk.1.layer_output_scale.weight, torch.bfloat16 --> F32, shape = {1}
|
| 32 |
+
INFO:hf-to-gguf:blk.1.ffn_down.weight, torch.bfloat16 --> F32, shape = {1024, 256}
|
| 33 |
+
INFO:hf-to-gguf:blk.1.ffn_gate.weight, torch.bfloat16 --> F32, shape = {256, 1024}
|
| 34 |
+
INFO:hf-to-gguf:blk.1.ffn_up.weight, torch.bfloat16 --> F32, shape = {256, 1024}
|
| 35 |
+
INFO:hf-to-gguf:blk.1.post_attention_norm.weight, torch.bfloat16 --> F32, shape = {256}
|
| 36 |
+
INFO:hf-to-gguf:blk.1.post_ffw_norm.weight, torch.bfloat16 --> F32, shape = {256}
|
| 37 |
+
INFO:hf-to-gguf:blk.1.ffn_norm.weight, torch.bfloat16 --> F32, shape = {256}
|
| 38 |
+
INFO:hf-to-gguf:blk.1.attn_k_norm.weight, torch.bfloat16 --> F32, shape = {64}
|
| 39 |
+
INFO:hf-to-gguf:blk.1.attn_k.weight, torch.bfloat16 --> F32, shape = {256, 128}
|
| 40 |
+
INFO:hf-to-gguf:blk.1.attn_output.weight, torch.bfloat16 --> F32, shape = {256, 256}
|
| 41 |
+
INFO:hf-to-gguf:blk.1.attn_q_norm.weight, torch.bfloat16 --> F32, shape = {64}
|
| 42 |
+
INFO:hf-to-gguf:blk.1.attn_q.weight, torch.bfloat16 --> F32, shape = {256, 256}
|
| 43 |
+
INFO:hf-to-gguf:blk.1.attn_v.weight, torch.bfloat16 --> F32, shape = {256, 128}
|
| 44 |
+
INFO:hf-to-gguf:blk.2.attn_norm.weight, torch.bfloat16 --> F32, shape = {256}
|
| 45 |
+
INFO:hf-to-gguf:blk.2.layer_output_scale.weight, torch.bfloat16 --> F32, shape = {1}
|
| 46 |
+
INFO:hf-to-gguf:blk.2.ffn_down.weight, torch.bfloat16 --> F32, shape = {1024, 256}
|
| 47 |
+
INFO:hf-to-gguf:blk.2.ffn_gate.weight, torch.bfloat16 --> F32, shape = {256, 1024}
|
| 48 |
+
INFO:hf-to-gguf:blk.2.ffn_up.weight, torch.bfloat16 --> F32, shape = {256, 1024}
|
| 49 |
+
INFO:hf-to-gguf:blk.2.post_attention_norm.weight, torch.bfloat16 --> F32, shape = {256}
|
| 50 |
+
INFO:hf-to-gguf:blk.2.post_ffw_norm.weight, torch.bfloat16 --> F32, shape = {256}
|
| 51 |
+
INFO:hf-to-gguf:blk.2.ffn_norm.weight, torch.bfloat16 --> F32, shape = {256}
|
| 52 |
+
INFO:hf-to-gguf:blk.2.attn_k_norm.weight, torch.bfloat16 --> F32, shape = {64}
|
| 53 |
+
INFO:hf-to-gguf:blk.2.attn_k.weight, torch.bfloat16 --> F32, shape = {256, 128}
|
| 54 |
+
INFO:hf-to-gguf:blk.2.attn_output.weight, torch.bfloat16 --> F32, shape = {256, 256}
|
| 55 |
+
INFO:hf-to-gguf:blk.2.attn_q_norm.weight, torch.bfloat16 --> F32, shape = {64}
|
| 56 |
+
INFO:hf-to-gguf:blk.2.attn_q.weight, torch.bfloat16 --> F32, shape = {256, 256}
|
| 57 |
+
INFO:hf-to-gguf:blk.2.attn_v.weight, torch.bfloat16 --> F32, shape = {256, 128}
|
| 58 |
+
INFO:hf-to-gguf:blk.3.attn_norm.weight, torch.bfloat16 --> F32, shape = {256}
|
| 59 |
+
INFO:hf-to-gguf:blk.3.layer_output_scale.weight, torch.bfloat16 --> F32, shape = {1}
|
| 60 |
+
INFO:hf-to-gguf:blk.3.ffn_down.weight, torch.bfloat16 --> F32, shape = {1024, 256}
|
| 61 |
+
INFO:hf-to-gguf:blk.3.ffn_gate.weight, torch.bfloat16 --> F32, shape = {256, 1024}
|
| 62 |
+
INFO:hf-to-gguf:blk.3.ffn_up.weight, torch.bfloat16 --> F32, shape = {256, 1024}
|
| 63 |
+
INFO:hf-to-gguf:blk.3.post_attention_norm.weight, torch.bfloat16 --> F32, shape = {256}
|
| 64 |
+
INFO:hf-to-gguf:blk.3.post_ffw_norm.weight, torch.bfloat16 --> F32, shape = {256}
|
| 65 |
+
INFO:hf-to-gguf:blk.3.ffn_norm.weight, torch.bfloat16 --> F32, shape = {256}
|
| 66 |
+
INFO:hf-to-gguf:blk.3.attn_k_norm.weight, torch.bfloat16 --> F32, shape = {64}
|
| 67 |
+
INFO:hf-to-gguf:blk.3.attn_k.weight, torch.bfloat16 --> F32, shape = {256, 128}
|
| 68 |
+
INFO:hf-to-gguf:blk.3.attn_output.weight, torch.bfloat16 --> F32, shape = {256, 256}
|
| 69 |
+
INFO:hf-to-gguf:blk.3.attn_q_norm.weight, torch.bfloat16 --> F32, shape = {64}
|
| 70 |
+
INFO:hf-to-gguf:blk.3.attn_q.weight, torch.bfloat16 --> F32, shape = {256, 256}
|
| 71 |
+
INFO:hf-to-gguf:blk.3.attn_v.weight, torch.bfloat16 --> F32, shape = {256, 128}
|
| 72 |
+
INFO:hf-to-gguf:blk.4.attn_norm.weight, torch.bfloat16 --> F32, shape = {256}
|
| 73 |
+
INFO:hf-to-gguf:blk.4.layer_output_scale.weight, torch.bfloat16 --> F32, shape = {1}
|
| 74 |
+
INFO:hf-to-gguf:blk.4.ffn_down.weight, torch.bfloat16 --> F32, shape = {1024, 256}
|
| 75 |
+
INFO:hf-to-gguf:blk.4.ffn_gate.weight, torch.bfloat16 --> F32, shape = {256, 1024}
|
| 76 |
+
INFO:hf-to-gguf:blk.4.ffn_up.weight, torch.bfloat16 --> F32, shape = {256, 1024}
|
| 77 |
+
INFO:hf-to-gguf:blk.4.post_attention_norm.weight, torch.bfloat16 --> F32, shape = {256}
|
| 78 |
+
INFO:hf-to-gguf:blk.4.post_ffw_norm.weight, torch.bfloat16 --> F32, shape = {256}
|
| 79 |
+
INFO:hf-to-gguf:blk.4.ffn_norm.weight, torch.bfloat16 --> F32, shape = {256}
|
| 80 |
+
INFO:hf-to-gguf:blk.4.attn_k_norm.weight, torch.bfloat16 --> F32, shape = {64}
|
| 81 |
+
INFO:hf-to-gguf:blk.4.attn_k.weight, torch.bfloat16 --> F32, shape = {256, 128}
|
| 82 |
+
INFO:hf-to-gguf:blk.4.attn_output.weight, torch.bfloat16 --> F32, shape = {256, 256}
|
| 83 |
+
INFO:hf-to-gguf:blk.4.attn_q_norm.weight, torch.bfloat16 --> F32, shape = {64}
|
| 84 |
+
INFO:hf-to-gguf:blk.4.attn_q.weight, torch.bfloat16 --> F32, shape = {256, 256}
|
| 85 |
+
INFO:hf-to-gguf:blk.4.attn_v.weight, torch.bfloat16 --> F32, shape = {256, 128}
|
| 86 |
+
INFO:hf-to-gguf:blk.5.attn_norm.weight, torch.bfloat16 --> F32, shape = {256}
|
| 87 |
+
INFO:hf-to-gguf:blk.5.layer_output_scale.weight, torch.bfloat16 --> F32, shape = {1}
|
| 88 |
+
INFO:hf-to-gguf:blk.5.ffn_down.weight, torch.bfloat16 --> F32, shape = {1024, 256}
|
| 89 |
+
INFO:hf-to-gguf:blk.5.ffn_gate.weight, torch.bfloat16 --> F32, shape = {256, 1024}
|
| 90 |
+
INFO:hf-to-gguf:blk.5.ffn_up.weight, torch.bfloat16 --> F32, shape = {256, 1024}
|
| 91 |
+
INFO:hf-to-gguf:blk.5.post_attention_norm.weight, torch.bfloat16 --> F32, shape = {256}
|
| 92 |
+
INFO:hf-to-gguf:blk.5.post_ffw_norm.weight, torch.bfloat16 --> F32, shape = {256}
|
| 93 |
+
INFO:hf-to-gguf:blk.5.ffn_norm.weight, torch.bfloat16 --> F32, shape = {256}
|
| 94 |
+
INFO:hf-to-gguf:blk.5.attn_k_norm.weight, torch.bfloat16 --> F32, shape = {128}
|
| 95 |
+
INFO:hf-to-gguf:blk.5.attn_k.weight, torch.bfloat16 --> F32, shape = {256, 128}
|
| 96 |
+
INFO:hf-to-gguf:blk.5.attn_output.weight, torch.bfloat16 --> F32, shape = {512, 256}
|
| 97 |
+
INFO:hf-to-gguf:blk.5.attn_q_norm.weight, torch.bfloat16 --> F32, shape = {128}
|
| 98 |
+
INFO:hf-to-gguf:blk.5.attn_q.weight, torch.bfloat16 --> F32, shape = {256, 512}
|
| 99 |
+
INFO:hf-to-gguf:output_norm.weight, torch.bfloat16 --> F32, shape = {256}
|
| 100 |
+
INFO:hf-to-gguf:Set meta model
|
| 101 |
+
INFO:hf-to-gguf:Set model parameters
|
| 102 |
+
INFO:hf-to-gguf:gguf: context length = 128
|
| 103 |
+
INFO:hf-to-gguf:gguf: embedding length = 256
|
| 104 |
+
INFO:hf-to-gguf:gguf: feed forward length = 1024
|
| 105 |
+
INFO:hf-to-gguf:gguf: head count = 4
|
| 106 |
+
INFO:hf-to-gguf:gguf: key-value head count = 2
|
| 107 |
+
WARNING:hf-to-gguf:Unknown RoPE type: proportional
|
| 108 |
+
INFO:hf-to-gguf:gguf: rope scaling type = NONE
|
| 109 |
+
INFO:hf-to-gguf:gguf: rope theta = 1000000.0
|
| 110 |
+
INFO:hf-to-gguf:gguf: rope theta swa = 10000.0
|
| 111 |
+
INFO:hf-to-gguf:gguf: rms norm epsilon = 1e-06
|
| 112 |
+
INFO:hf-to-gguf:gguf: file type = 0
|
| 113 |
+
WARNING:gguf.gguf_writer:Duplicated key name 'gemma4.context_length', overwriting it with new value 128 of type UINT32
|
| 114 |
+
WARNING:gguf.gguf_writer:Duplicated key name 'gemma4.attention.head_count', overwriting it with new value 4 of type UINT32
|
| 115 |
+
WARNING:gguf.gguf_writer:Duplicated key name 'gemma4.attention.layer_norm_rms_epsilon', overwriting it with new value 1e-06 of type FLOAT32
|
| 116 |
+
WARNING:gguf.gguf_writer:Duplicated key name 'gemma4.attention.key_length', overwriting it with new value 64 of type UINT32
|
| 117 |
+
WARNING:gguf.gguf_writer:Duplicated key name 'gemma4.attention.value_length', overwriting it with new value 64 of type UINT32
|
| 118 |
+
WARNING:gguf.gguf_writer:Duplicated key name 'gemma4.rope.freq_base', overwriting it with new value 1000000.0 of type FLOAT32
|
| 119 |
+
WARNING:gguf.gguf_writer:Duplicated key name 'gemma4.attention.head_count_kv', overwriting it with new value 2 of type UINT32
|
| 120 |
+
WARNING:gguf.gguf_writer:Duplicated key name 'gemma4.attention.key_length', overwriting it with new value 128 of type UINT32
|
| 121 |
+
WARNING:gguf.gguf_writer:Duplicated key name 'gemma4.attention.value_length', overwriting it with new value 128 of type UINT32
|
| 122 |
+
WARNING:gguf.gguf_writer:Duplicated key name 'gemma4.attention.head_count_kv', overwriting it with new value [2, 2, 2, 2, 2, 1] of type ARRAY
|
| 123 |
+
INFO:hf-to-gguf:Set model quantization version
|
| 124 |
+
INFO:hf-to-gguf:Set model tokenizer
|
| 125 |
+
[transformers] You are using a model of type `gemma4_text_converter_raw_config` to instantiate a model of type ``. This may be expected if you are loading a checkpoint that shares a subset of the architecture (e.g., loading a `sam2_video` checkpoint into `Sam2Model`), but is otherwise not supported and can yield errors. Please verify that the checkpoint is compatible with the model you are instantiating.
|
| 126 |
+
INFO:gguf.vocab:Adding 1 merge(s).
|
| 127 |
+
INFO:gguf.vocab:Setting special token type bos to 2
|
| 128 |
+
INFO:gguf.vocab:Setting special token type eos to 1
|
| 129 |
+
INFO:gguf.vocab:Setting special token type unk to 3
|
| 130 |
+
INFO:gguf.vocab:Setting special token type pad to 0
|
| 131 |
+
INFO:gguf.vocab:Setting special token type mask to 4
|
| 132 |
+
INFO:gguf.gguf_writer:Writing the following files:
|
| 133 |
+
INFO:gguf.gguf_writer:/home/codex/tmp/gemma4-q4k-work-20260812/gemma4-random-model-F32.gguf: n_tensors = 86, total_size = 24.1M
|
| 134 |
+
|
| 135 |
+
Writing: 0%| | 0.00/24.1M [00:00<?, ?byte/s]
|
| 136 |
+
Writing: 100%|██████████| 24.1M/24.1M [00:00<00:00, 983Mbyte/s]
|
| 137 |
+
INFO:hf-to-gguf:Model successfully exported to /home/codex/tmp/gemma4-q4k-work-20260812/gemma4-random-model-F32.gguf
|
gemma4-random-model/gguf-q4_k/gemma4-random-model-Q4_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3ce6309aa4221289441b198ab63cd6c0d03075ba183ea1990001313c99d6e845
|
| 3 |
+
size 3591488
|
gemma4-random-model/gguf-q4_k/quantize.log
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
llama_print_build_info: build = 0 (unknown)
|
| 2 |
+
llama_print_build_info: built with Clang 21.1.8 for Linux x86_64
|
| 3 |
+
llama_quantize: quantizing '/home/codex/tmp/gemma4-q4k-work-20260812/gemma4-random-model-F32.gguf' to '/home/codex/conf_track/artifacts/gemma4-v0/gemma4-random-model/gguf-q4_k/gemma4-random-model-Q4_K.gguf' as Q4_K
|
| 4 |
+
llama_model_loader: loaded meta data with 41 key-value pairs and 86 tensors from /home/codex/tmp/gemma4-q4k-work-20260812/gemma4-random-model-F32.gguf (version GGUF V3 (latest))
|
| 5 |
+
llama_model_loader: Dumping metadata keys/values. Note: KV overrides do not apply in this output.
|
| 6 |
+
llama_model_loader: - kv 0: general.architecture str = gemma4
|
| 7 |
+
llama_model_loader: - kv 1: general.type str = model
|
| 8 |
+
llama_model_loader: - kv 2: general.sampling.top_k i32 = 64
|
| 9 |
+
llama_model_loader: - kv 3: general.sampling.top_p f32 = 0.950000
|
| 10 |
+
llama_model_loader: - kv 4: general.sampling.temp f32 = 1.000000
|
| 11 |
+
llama_model_loader: - kv 5: general.name str = Gemma 4 Random Model
|
| 12 |
+
llama_model_loader: - kv 6: general.size_label str = 6.0M
|
| 13 |
+
llama_model_loader: - kv 7: gemma4.block_count u32 = 6
|
| 14 |
+
llama_model_loader: - kv 8: gemma4.context_length u32 = 128
|
| 15 |
+
llama_model_loader: - kv 9: gemma4.embedding_length u32 = 256
|
| 16 |
+
llama_model_loader: - kv 10: gemma4.feed_forward_length u32 = 1024
|
| 17 |
+
llama_model_loader: - kv 11: gemma4.attention.head_count u32 = 4
|
| 18 |
+
llama_model_loader: - kv 12: gemma4.attention.head_count_kv arr[i32,6] = [2, 2, 2, 2, 2, 1]
|
| 19 |
+
llama_model_loader: - kv 13: gemma4.rope.freq_base f32 = 1000000.000000
|
| 20 |
+
llama_model_loader: - kv 14: gemma4.rope.freq_base_swa f32 = 10000.000000
|
| 21 |
+
llama_model_loader: - kv 15: gemma4.attention.layer_norm_rms_epsilon f32 = 0.000001
|
| 22 |
+
llama_model_loader: - kv 16: gemma4.attention.key_length u32 = 128
|
| 23 |
+
llama_model_loader: - kv 17: gemma4.attention.value_length u32 = 128
|
| 24 |
+
llama_model_loader: - kv 18: general.file_type u32 = 0
|
| 25 |
+
llama_model_loader: - kv 19: gemma4.final_logit_softcapping f32 = 30.000000
|
| 26 |
+
llama_model_loader: - kv 20: gemma4.attention.sliding_window u32 = 64
|
| 27 |
+
llama_model_loader: - kv 21: gemma4.attention.shared_kv_layers u32 = 0
|
| 28 |
+
llama_model_loader: - kv 22: gemma4.embedding_length_per_layer_input u32 = 0
|
| 29 |
+
llama_model_loader: - kv 23: gemma4.attention.sliding_window_pattern arr[bool,6] = [true, true, true, true, true, false]
|
| 30 |
+
llama_model_loader: - kv 24: gemma4.attention.key_length_swa u32 = 64
|
| 31 |
+
llama_model_loader: - kv 25: gemma4.attention.value_length_swa u32 = 64
|
| 32 |
+
llama_model_loader: - kv 26: gemma4.rope.dimension_count u32 = 128
|
| 33 |
+
llama_model_loader: - kv 27: gemma4.rope.dimension_count_swa u32 = 64
|
| 34 |
+
llama_model_loader: - kv 28: general.quantization_version u32 = 2
|
| 35 |
+
llama_model_loader: - kv 29: tokenizer.ggml.model str = gemma4
|
| 36 |
+
llama_model_loader: - kv 30: tokenizer.ggml.tokens arr[str,128] = ["<pad>", "<eos>", "<bos>", "<unk>", ...
|
| 37 |
+
llama_model_loader: - kv 31: tokenizer.ggml.scores arr[f32,128] = [-1000.000000, -1000.000000, -1000.00...
|
| 38 |
+
llama_model_loader: - kv 32: tokenizer.ggml.token_type arr[i32,128] = [3, 3, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1, ...
|
| 39 |
+
llama_model_loader: - kv 33: tokenizer.ggml.merges arr[str,1] = ["a b"]
|
| 40 |
+
llama_model_loader: - kv 34: tokenizer.ggml.bos_token_id u32 = 2
|
| 41 |
+
llama_model_loader: - kv 35: tokenizer.ggml.eos_token_id u32 = 1
|
| 42 |
+
llama_model_loader: - kv 36: tokenizer.ggml.unknown_token_id u32 = 3
|
| 43 |
+
llama_model_loader: - kv 37: tokenizer.ggml.padding_token_id u32 = 0
|
| 44 |
+
llama_model_loader: - kv 38: tokenizer.ggml.mask_token_id u32 = 4
|
| 45 |
+
llama_model_loader: - kv 39: tokenizer.ggml.add_space_prefix bool = false
|
| 46 |
+
llama_model_loader: - kv 40: tokenizer.ggml.add_bos_token bool = true
|
| 47 |
+
llama_model_loader: - type f32: 86 tensors
|
| 48 |
+
[ 1/ 86] output_norm.weight - [ 256, 1, 1, 1], type = f32, size = 0.001 MiB
|
| 49 |
+
[ 2/ 86] rope_freqs.weight - [ 64, 1, 1, 1], type = f32, size = 0.000 MiB
|
| 50 |
+
[ 3/ 86] token_embd.weight - [ 256, 128, 1, 1], type = f32, converting to q6_K .. size = 0.12 MiB -> 0.03 MiB
|
| 51 |
+
[ 4/ 86] blk.0.attn_k.weight - [ 256, 128, 1, 1], type = f32, converting to q4_K .. size = 0.12 MiB -> 0.02 MiB
|
| 52 |
+
[ 5/ 86] blk.0.attn_k_norm.weight - [ 64, 1, 1, 1], type = f32, size = 0.000 MiB
|
| 53 |
+
[ 6/ 86] blk.0.attn_norm.weight - [ 256, 1, 1, 1], type = f32, size = 0.001 MiB
|
| 54 |
+
[ 7/ 86] blk.0.attn_output.weight - [ 256, 256, 1, 1], type = f32, converting to q4_K .. size = 0.25 MiB -> 0.04 MiB
|
| 55 |
+
[ 8/ 86] blk.0.attn_q.weight - [ 256, 256, 1, 1], type = f32, converting to q4_K .. size = 0.25 MiB -> 0.04 MiB
|
| 56 |
+
[ 9/ 86] blk.0.attn_q_norm.weight - [ 64, 1, 1, 1], type = f32, size = 0.000 MiB
|
| 57 |
+
[ 10/ 86] blk.0.attn_v.weight - [ 256, 128, 1, 1], type = f32, converting to q4_K .. size = 0.12 MiB -> 0.02 MiB
|
| 58 |
+
[ 11/ 86] blk.0.ffn_down.weight - [ 1024, 256, 1, 1], type = f32, converting to q4_K .. size = 1.00 MiB -> 0.14 MiB
|
| 59 |
+
[ 12/ 86] blk.0.ffn_gate.weight - [ 256, 1024, 1, 1], type = f32, converting to q4_K .. size = 1.00 MiB -> 0.14 MiB
|
| 60 |
+
[ 13/ 86] blk.0.ffn_norm.weight - [ 256, 1, 1, 1], type = f32, size = 0.001 MiB
|
| 61 |
+
[ 14/ 86] blk.0.ffn_up.weight - [ 256, 1024, 1, 1], type = f32, converting to q4_K .. size = 1.00 MiB -> 0.14 MiB
|
| 62 |
+
[ 15/ 86] blk.0.layer_output_scale.weight - [ 1, 1, 1, 1], type = f32, size = 0.000 MiB
|
| 63 |
+
[ 16/ 86] blk.0.post_attention_norm.weight - [ 256, 1, 1, 1], type = f32, size = 0.001 MiB
|
| 64 |
+
[ 17/ 86] blk.0.post_ffw_norm.weight - [ 256, 1, 1, 1], type = f32, size = 0.001 MiB
|
| 65 |
+
[ 18/ 86] blk.1.attn_k.weight - [ 256, 128, 1, 1], type = f32, converting to q4_K .. size = 0.12 MiB -> 0.02 MiB
|
| 66 |
+
[ 19/ 86] blk.1.attn_k_norm.weight - [ 64, 1, 1, 1], type = f32, size = 0.000 MiB
|
| 67 |
+
[ 20/ 86] blk.1.attn_norm.weight - [ 256, 1, 1, 1], type = f32, size = 0.001 MiB
|
| 68 |
+
[ 21/ 86] blk.1.attn_output.weight - [ 256, 256, 1, 1], type = f32, converting to q4_K .. size = 0.25 MiB -> 0.04 MiB
|
| 69 |
+
[ 22/ 86] blk.1.attn_q.weight - [ 256, 256, 1, 1], type = f32, converting to q4_K .. size = 0.25 MiB -> 0.04 MiB
|
| 70 |
+
[ 23/ 86] blk.1.attn_q_norm.weight - [ 64, 1, 1, 1], type = f32, size = 0.000 MiB
|
| 71 |
+
[ 24/ 86] blk.1.attn_v.weight - [ 256, 128, 1, 1], type = f32, converting to q4_K .. size = 0.12 MiB -> 0.02 MiB
|
| 72 |
+
[ 25/ 86] blk.1.ffn_down.weight - [ 1024, 256, 1, 1], type = f32, converting to q4_K .. size = 1.00 MiB -> 0.14 MiB
|
| 73 |
+
[ 26/ 86] blk.1.ffn_gate.weight - [ 256, 1024, 1, 1], type = f32, converting to q4_K .. size = 1.00 MiB -> 0.14 MiB
|
| 74 |
+
[ 27/ 86] blk.1.ffn_norm.weight - [ 256, 1, 1, 1], type = f32, size = 0.001 MiB
|
| 75 |
+
[ 28/ 86] blk.1.ffn_up.weight - [ 256, 1024, 1, 1], type = f32, converting to q4_K .. size = 1.00 MiB -> 0.14 MiB
|
| 76 |
+
[ 29/ 86] blk.1.layer_output_scale.weight - [ 1, 1, 1, 1], type = f32, size = 0.000 MiB
|
| 77 |
+
[ 30/ 86] blk.1.post_attention_norm.weight - [ 256, 1, 1, 1], type = f32, size = 0.001 MiB
|
| 78 |
+
[ 31/ 86] blk.1.post_ffw_norm.weight - [ 256, 1, 1, 1], type = f32, size = 0.001 MiB
|
| 79 |
+
[ 32/ 86] blk.2.attn_k.weight - [ 256, 128, 1, 1], type = f32, converting to q4_K .. size = 0.12 MiB -> 0.02 MiB
|
| 80 |
+
[ 33/ 86] blk.2.attn_k_norm.weight - [ 64, 1, 1, 1], type = f32, size = 0.000 MiB
|
| 81 |
+
[ 34/ 86] blk.2.attn_norm.weight - [ 256, 1, 1, 1], type = f32, size = 0.001 MiB
|
| 82 |
+
[ 35/ 86] blk.2.attn_output.weight - [ 256, 256, 1, 1], type = f32, converting to q4_K .. size = 0.25 MiB -> 0.04 MiB
|
| 83 |
+
[ 36/ 86] blk.2.attn_q.weight - [ 256, 256, 1, 1], type = f32, converting to q4_K .. size = 0.25 MiB -> 0.04 MiB
|
| 84 |
+
[ 37/ 86] blk.2.attn_q_norm.weight - [ 64, 1, 1, 1], type = f32, size = 0.000 MiB
|
| 85 |
+
[ 38/ 86] blk.2.attn_v.weight - [ 256, 128, 1, 1], type = f32, converting to q6_K .. size = 0.12 MiB -> 0.03 MiB
|
| 86 |
+
[ 39/ 86] blk.2.ffn_down.weight - [ 1024, 256, 1, 1], type = f32, converting to q6_K .. size = 1.00 MiB -> 0.21 MiB
|
| 87 |
+
[ 40/ 86] blk.2.ffn_gate.weight - [ 256, 1024, 1, 1], type = f32, converting to q4_K .. size = 1.00 MiB -> 0.14 MiB
|
| 88 |
+
[ 41/ 86] blk.2.ffn_norm.weight - [ 256, 1, 1, 1], type = f32, size = 0.001 MiB
|
| 89 |
+
[ 42/ 86] blk.2.ffn_up.weight - [ 256, 1024, 1, 1], type = f32, converting to q4_K .. size = 1.00 MiB -> 0.14 MiB
|
| 90 |
+
[ 43/ 86] blk.2.layer_output_scale.weight - [ 1, 1, 1, 1], type = f32, size = 0.000 MiB
|
| 91 |
+
[ 44/ 86] blk.2.post_attention_norm.weight - [ 256, 1, 1, 1], type = f32, size = 0.001 MiB
|
| 92 |
+
[ 45/ 86] blk.2.post_ffw_norm.weight - [ 256, 1, 1, 1], type = f32, size = 0.001 MiB
|
| 93 |
+
[ 46/ 86] blk.3.attn_k.weight - [ 256, 128, 1, 1], type = f32, converting to q4_K .. size = 0.12 MiB -> 0.02 MiB
|
| 94 |
+
[ 47/ 86] blk.3.attn_k_norm.weight - [ 64, 1, 1, 1], type = f32, size = 0.000 MiB
|
| 95 |
+
[ 48/ 86] blk.3.attn_norm.weight - [ 256, 1, 1, 1], type = f32, size = 0.001 MiB
|
| 96 |
+
[ 49/ 86] blk.3.attn_output.weight - [ 256, 256, 1, 1], type = f32, converting to q4_K .. size = 0.25 MiB -> 0.04 MiB
|
| 97 |
+
[ 50/ 86] blk.3.attn_q.weight - [ 256, 256, 1, 1], type = f32, converting to q4_K .. size = 0.25 MiB -> 0.04 MiB
|
| 98 |
+
[ 51/ 86] blk.3.attn_q_norm.weight - [ 64, 1, 1, 1], type = f32, size = 0.000 MiB
|
| 99 |
+
[ 52/ 86] blk.3.attn_v.weight - [ 256, 128, 1, 1], type = f32, converting to q4_K .. size = 0.12 MiB -> 0.02 MiB
|
| 100 |
+
[ 53/ 86] blk.3.ffn_down.weight - [ 1024, 256, 1, 1], type = f32, converting to q4_K .. size = 1.00 MiB -> 0.14 MiB
|
| 101 |
+
[ 54/ 86] blk.3.ffn_gate.weight - [ 256, 1024, 1, 1], type = f32, converting to q4_K .. size = 1.00 MiB -> 0.14 MiB
|
| 102 |
+
[ 55/ 86] blk.3.ffn_norm.weight - [ 256, 1, 1, 1], type = f32, size = 0.001 MiB
|
| 103 |
+
[ 56/ 86] blk.3.ffn_up.weight - [ 256, 1024, 1, 1], type = f32, converting to q4_K .. size = 1.00 MiB -> 0.14 MiB
|
| 104 |
+
[ 57/ 86] blk.3.layer_output_scale.weight - [ 1, 1, 1, 1], type = f32, size = 0.000 MiB
|
| 105 |
+
[ 58/ 86] blk.3.post_attention_norm.weight - [ 256, 1, 1, 1], type = f32, size = 0.001 MiB
|
| 106 |
+
[ 59/ 86] blk.3.post_ffw_norm.weight - [ 256, 1, 1, 1], type = f32, size = 0.001 MiB
|
| 107 |
+
[ 60/ 86] blk.4.attn_k.weight - [ 256, 128, 1, 1], type = f32, converting to q4_K .. size = 0.12 MiB -> 0.02 MiB
|
| 108 |
+
[ 61/ 86] blk.4.attn_k_norm.weight - [ 64, 1, 1, 1], type = f32, size = 0.000 MiB
|
| 109 |
+
[ 62/ 86] blk.4.attn_norm.weight - [ 256, 1, 1, 1], type = f32, size = 0.001 MiB
|
| 110 |
+
[ 63/ 86] blk.4.attn_output.weight - [ 256, 256, 1, 1], type = f32, converting to q4_K .. size = 0.25 MiB -> 0.04 MiB
|
| 111 |
+
[ 64/ 86] blk.4.attn_q.weight - [ 256, 256, 1, 1], type = f32, converting to q4_K .. size = 0.25 MiB -> 0.04 MiB
|
| 112 |
+
[ 65/ 86] blk.4.attn_q_norm.weight - [ 64, 1, 1, 1], type = f32, size = 0.000 MiB
|
| 113 |
+
[ 66/ 86] blk.4.attn_v.weight - [ 256, 128, 1, 1], type = f32, converting to q6_K .. size = 0.12 MiB -> 0.03 MiB
|
| 114 |
+
[ 67/ 86] blk.4.ffn_down.weight - [ 1024, 256, 1, 1], type = f32, converting to q4_K .. size = 1.00 MiB -> 0.14 MiB
|
| 115 |
+
[ 68/ 86] blk.4.ffn_gate.weight - [ 256, 1024, 1, 1], type = f32, converting to q4_K .. size = 1.00 MiB -> 0.14 MiB
|
| 116 |
+
[ 69/ 86] blk.4.ffn_norm.weight - [ 256, 1, 1, 1], type = f32, size = 0.001 MiB
|
| 117 |
+
[ 70/ 86] blk.4.ffn_up.weight - [ 256, 1024, 1, 1], type = f32, converting to q4_K .. size = 1.00 MiB -> 0.14 MiB
|
| 118 |
+
[ 71/ 86] blk.4.layer_output_scale.weight - [ 1, 1, 1, 1], type = f32, size = 0.000 MiB
|
| 119 |
+
[ 72/ 86] blk.4.post_attention_norm.weight - [ 256, 1, 1, 1], type = f32, size = 0.001 MiB
|
| 120 |
+
[ 73/ 86] blk.4.post_ffw_norm.weight - [ 256, 1, 1, 1], type = f32, size = 0.001 MiB
|
| 121 |
+
[ 74/ 86] blk.5.attn_k.weight - [ 256, 128, 1, 1], type = f32, converting to q4_K .. size = 0.12 MiB -> 0.02 MiB
|
| 122 |
+
[ 75/ 86] blk.5.attn_k_norm.weight - [ 128, 1, 1, 1], type = f32, size = 0.000 MiB
|
| 123 |
+
[ 76/ 86] blk.5.attn_norm.weight - [ 256, 1, 1, 1], type = f32, size = 0.001 MiB
|
| 124 |
+
[ 77/ 86] blk.5.attn_output.weight - [ 512, 256, 1, 1], type = f32, converting to q4_K .. size = 0.50 MiB -> 0.07 MiB
|
| 125 |
+
[ 78/ 86] blk.5.attn_q.weight - [ 256, 512, 1, 1], type = f32, converting to q4_K .. size = 0.50 MiB -> 0.07 MiB
|
| 126 |
+
[ 79/ 86] blk.5.attn_q_norm.weight - [ 128, 1, 1, 1], type = f32, size = 0.000 MiB
|
| 127 |
+
[ 80/ 86] blk.5.ffn_down.weight - [ 1024, 256, 1, 1], type = f32, converting to q6_K .. size = 1.00 MiB -> 0.21 MiB
|
| 128 |
+
[ 81/ 86] blk.5.ffn_gate.weight - [ 256, 1024, 1, 1], type = f32, converting to q4_K .. size = 1.00 MiB -> 0.14 MiB
|
| 129 |
+
[ 82/ 86] blk.5.ffn_norm.weight - [ 256, 1, 1, 1], type = f32, size = 0.001 MiB
|
| 130 |
+
[ 83/ 86] blk.5.ffn_up.weight - [ 256, 1024, 1, 1], type = f32, converting to q4_K .. size = 1.00 MiB -> 0.14 MiB
|
| 131 |
+
[ 84/ 86] blk.5.layer_output_scale.weight - [ 1, 1, 1, 1], type = f32, size = 0.000 MiB
|
| 132 |
+
[ 85/ 86] blk.5.post_attention_norm.weight - [ 256, 1, 1, 1], type = f32, size = 0.001 MiB
|
| 133 |
+
[ 86/ 86] blk.5.post_ffw_norm.weight - [ 256, 1, 1, 1], type = f32, size = 0.001 MiB
|
| 134 |
+
llama_model_quantize_impl: model size = 23.03 MiB (32.00 BPW)
|
| 135 |
+
llama_model_quantize_impl: quant size = 3.42 MiB (4.75 BPW)
|
| 136 |
+
|
| 137 |
+
llama_quantize: quantize time = 88.65 ms
|
| 138 |
+
llama_quantize: total time = 88.65 ms
|
gemma4-random-model/hf-bf16/config.json
CHANGED
|
@@ -10,13 +10,12 @@
|
|
| 10 |
"enable_moe_block": false,
|
| 11 |
"eos_token_id": 1,
|
| 12 |
"final_logit_softcapping": 30.0,
|
| 13 |
-
"
|
| 14 |
-
"head_dim": 32,
|
| 15 |
"hidden_activation": "gelu_pytorch_tanh",
|
| 16 |
-
"hidden_size":
|
| 17 |
"hidden_size_per_layer_input": 0,
|
| 18 |
"initializer_range": 0.02,
|
| 19 |
-
"intermediate_size":
|
| 20 |
"layer_types": [
|
| 21 |
"sliding_attention",
|
| 22 |
"sliding_attention",
|
|
@@ -30,11 +29,16 @@
|
|
| 30 |
"moe_intermediate_size": null,
|
| 31 |
"num_attention_heads": 4,
|
| 32 |
"num_experts": null,
|
| 33 |
-
"num_global_key_value_heads": 1,
|
| 34 |
"num_hidden_layers": 6,
|
| 35 |
"num_key_value_heads": 2,
|
| 36 |
"num_kv_shared_layers": 0,
|
| 37 |
"pad_token_id": 0,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
"rms_norm_eps": 1e-06,
|
| 39 |
"rope_parameters": {
|
| 40 |
"full_attention": {
|
|
@@ -50,10 +54,10 @@
|
|
| 50 |
"sliding_window": 64,
|
| 51 |
"tie_word_embeddings": true,
|
| 52 |
"top_k_experts": null,
|
| 53 |
-
"transformers_version": "5.
|
| 54 |
"use_bidirectional_attention": null,
|
| 55 |
"use_cache": true,
|
| 56 |
"use_double_wide_mlp": false,
|
| 57 |
"vocab_size": 128,
|
| 58 |
-
"vocab_size_per_layer_input":
|
| 59 |
}
|
|
|
|
| 10 |
"enable_moe_block": false,
|
| 11 |
"eos_token_id": 1,
|
| 12 |
"final_logit_softcapping": 30.0,
|
| 13 |
+
"head_dim": 64,
|
|
|
|
| 14 |
"hidden_activation": "gelu_pytorch_tanh",
|
| 15 |
+
"hidden_size": 256,
|
| 16 |
"hidden_size_per_layer_input": 0,
|
| 17 |
"initializer_range": 0.02,
|
| 18 |
+
"intermediate_size": 1024,
|
| 19 |
"layer_types": [
|
| 20 |
"sliding_attention",
|
| 21 |
"sliding_attention",
|
|
|
|
| 29 |
"moe_intermediate_size": null,
|
| 30 |
"num_attention_heads": 4,
|
| 31 |
"num_experts": null,
|
|
|
|
| 32 |
"num_hidden_layers": 6,
|
| 33 |
"num_key_value_heads": 2,
|
| 34 |
"num_kv_shared_layers": 0,
|
| 35 |
"pad_token_id": 0,
|
| 36 |
+
"per_layer_config": {
|
| 37 |
+
"5": {
|
| 38 |
+
"head_dim": 128,
|
| 39 |
+
"num_key_value_heads": 1
|
| 40 |
+
}
|
| 41 |
+
},
|
| 42 |
"rms_norm_eps": 1e-06,
|
| 43 |
"rope_parameters": {
|
| 44 |
"full_attention": {
|
|
|
|
| 54 |
"sliding_window": 64,
|
| 55 |
"tie_word_embeddings": true,
|
| 56 |
"top_k_experts": null,
|
| 57 |
+
"transformers_version": "5.15.0",
|
| 58 |
"use_bidirectional_attention": null,
|
| 59 |
"use_cache": true,
|
| 60 |
"use_double_wide_mlp": false,
|
| 61 |
"vocab_size": 128,
|
| 62 |
+
"vocab_size_per_layer_input": 0
|
| 63 |
}
|
gemma4-random-model/hf-bf16/generation_config.json
CHANGED
|
@@ -2,9 +2,9 @@
|
|
| 2 |
"_from_model_config": true,
|
| 3 |
"bos_token_id": 2,
|
| 4 |
"eos_token_id": 1,
|
| 5 |
-
"output_attentions": false,
|
| 6 |
-
"output_hidden_states": false,
|
| 7 |
"pad_token_id": 0,
|
| 8 |
-
"
|
| 9 |
-
"
|
|
|
|
|
|
|
| 10 |
}
|
|
|
|
| 2 |
"_from_model_config": true,
|
| 3 |
"bos_token_id": 2,
|
| 4 |
"eos_token_id": 1,
|
|
|
|
|
|
|
| 5 |
"pad_token_id": 0,
|
| 6 |
+
"temperature": 1.0,
|
| 7 |
+
"top_k": 64,
|
| 8 |
+
"top_p": 0.95,
|
| 9 |
+
"transformers_version": "5.15.0"
|
| 10 |
}
|
gemma4-random-model/hf-bf16/model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e97de7f7fcad67f15547487a4b44fa8b6066ad8cd49b2c0d4b1230e3cf615ad3
|
| 3 |
+
size 12082356
|
gemma4-random-model/hf-bf16/tokenizer.json
CHANGED
|
@@ -51,7 +51,10 @@
|
|
| 51 |
],
|
| 52 |
"normalizer": null,
|
| 53 |
"pre_tokenizer": {
|
| 54 |
-
"type": "
|
|
|
|
|
|
|
|
|
|
| 55 |
},
|
| 56 |
"post_processor": {
|
| 57 |
"type": "TemplateProcessing",
|
|
@@ -79,9 +82,29 @@
|
|
| 79 |
],
|
| 80 |
"special_tokens": {}
|
| 81 |
},
|
| 82 |
-
"decoder":
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
"model": {
|
| 84 |
-
"type": "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 85 |
"vocab": {
|
| 86 |
"<pad>": 0,
|
| 87 |
"<eos>": 1,
|
|
@@ -212,6 +235,11 @@
|
|
| 212 |
"<t126>": 126,
|
| 213 |
"<t127>": 127
|
| 214 |
},
|
| 215 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 216 |
}
|
| 217 |
}
|
|
|
|
| 51 |
],
|
| 52 |
"normalizer": null,
|
| 53 |
"pre_tokenizer": {
|
| 54 |
+
"type": "ByteLevel",
|
| 55 |
+
"add_prefix_space": false,
|
| 56 |
+
"trim_offsets": true,
|
| 57 |
+
"use_regex": true
|
| 58 |
},
|
| 59 |
"post_processor": {
|
| 60 |
"type": "TemplateProcessing",
|
|
|
|
| 82 |
],
|
| 83 |
"special_tokens": {}
|
| 84 |
},
|
| 85 |
+
"decoder": {
|
| 86 |
+
"type": "Sequence",
|
| 87 |
+
"decoders": [
|
| 88 |
+
{
|
| 89 |
+
"type": "ByteFallback"
|
| 90 |
+
},
|
| 91 |
+
{
|
| 92 |
+
"type": "ByteLevel",
|
| 93 |
+
"add_prefix_space": true,
|
| 94 |
+
"trim_offsets": true,
|
| 95 |
+
"use_regex": true
|
| 96 |
+
}
|
| 97 |
+
]
|
| 98 |
+
},
|
| 99 |
"model": {
|
| 100 |
+
"type": "BPE",
|
| 101 |
+
"dropout": null,
|
| 102 |
+
"unk_token": "<unk>",
|
| 103 |
+
"continuing_subword_prefix": null,
|
| 104 |
+
"end_of_word_suffix": null,
|
| 105 |
+
"fuse_unk": false,
|
| 106 |
+
"byte_fallback": true,
|
| 107 |
+
"ignore_merges": false,
|
| 108 |
"vocab": {
|
| 109 |
"<pad>": 0,
|
| 110 |
"<eos>": 1,
|
|
|
|
| 235 |
"<t126>": 126,
|
| 236 |
"<t127>": 127
|
| 237 |
},
|
| 238 |
+
"merges": [
|
| 239 |
+
[
|
| 240 |
+
"a",
|
| 241 |
+
"b"
|
| 242 |
+
]
|
| 243 |
+
]
|
| 244 |
}
|
| 245 |
}
|
gemma4-random-model/hf-bf16/tokenizer_config.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
"bos_token": "<bos>",
|
| 4 |
"eos_token": "<eos>",
|
| 5 |
"mask_token": "<mask>",
|
| 6 |
-
"model_max_length":
|
| 7 |
"pad_token": "<pad>",
|
| 8 |
"tokenizer_class": "TokenizersBackend",
|
| 9 |
"unk_token": "<unk>"
|
|
|
|
| 3 |
"bos_token": "<bos>",
|
| 4 |
"eos_token": "<eos>",
|
| 5 |
"mask_token": "<mask>",
|
| 6 |
+
"model_max_length": 1000000000000000019884624838656,
|
| 7 |
"pad_token": "<pad>",
|
| 8 |
"tokenizer_class": "TokenizersBackend",
|
| 9 |
"unk_token": "<unk>"
|
gemma4-random-model/metadata.json
CHANGED
|
@@ -2,70 +2,85 @@
|
|
| 2 |
"architecture": "gemma4",
|
| 3 |
"gguf": {
|
| 4 |
"comparison_to_hf_bf16": {
|
| 5 |
-
"
|
| 6 |
-
"
|
| 7 |
-
"
|
| 8 |
-
"top1_agreement":
|
| 9 |
-
"top5_overlap":
|
| 10 |
},
|
| 11 |
-
"policy": "informational
|
| 12 |
-
"
|
| 13 |
-
"
|
| 14 |
-
"
|
| 15 |
"top1_agreement": true,
|
| 16 |
"top5_overlap": 3
|
| 17 |
}
|
| 18 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
"direct_token_validation": {
|
| 20 |
"all_logits_finite": true,
|
| 21 |
"decode_token_id": 17,
|
| 22 |
"eog_token_ids": [
|
| 23 |
1
|
| 24 |
],
|
| 25 |
-
"exactly_reproducible": true,
|
| 26 |
"prefill_token_ids": [
|
| 27 |
5,
|
| 28 |
7,
|
| 29 |
11,
|
| 30 |
13
|
| 31 |
-
]
|
|
|
|
|
|
|
| 32 |
},
|
| 33 |
-
"
|
| 34 |
-
"f32_intermediate_sha256": "
|
| 35 |
-
"
|
| 36 |
-
"
|
| 37 |
-
"
|
|
|
|
|
|
|
| 38 |
"quantizer_command": [
|
| 39 |
"LLAMA_QUANTIZE",
|
| 40 |
-
"
|
| 41 |
-
"q4_0",
|
| 42 |
"F32_INPUT",
|
| 43 |
"OUTPUT",
|
| 44 |
-
"
|
| 45 |
],
|
|
|
|
| 46 |
"tensor_type_histogram": {
|
| 47 |
"F32": 44,
|
| 48 |
-
"
|
|
|
|
| 49 |
}
|
| 50 |
},
|
| 51 |
"hf": {
|
| 52 |
-
"config_sha256": "
|
| 53 |
"construct_prefill_decode_reload": "passed",
|
| 54 |
"dtype": "bfloat16",
|
| 55 |
-
"model_sha256": "
|
| 56 |
"reload_tolerance": {
|
| 57 |
"atol": 0.02,
|
| 58 |
"rtol": 0.02
|
| 59 |
},
|
| 60 |
-
"tokenizer_json_sha256": "
|
| 61 |
-
"transformers_version": "5.
|
| 62 |
},
|
| 63 |
-
"parameter_count":
|
| 64 |
"reproducibility": {
|
| 65 |
-
"
|
| 66 |
-
"
|
| 67 |
-
"
|
| 68 |
-
"
|
| 69 |
},
|
| 70 |
"rng": {
|
| 71 |
"increment": 1442695040888963407,
|
|
@@ -73,6 +88,34 @@
|
|
| 73 |
"name": "tlfloat LCG64 equation",
|
| 74 |
"warmup_steps": 10
|
| 75 |
},
|
| 76 |
-
"schema_version":
|
| 77 |
-
"seed": 5135595944287666177
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
}
|
|
|
|
| 2 |
"architecture": "gemma4",
|
| 3 |
"gguf": {
|
| 4 |
"comparison_to_hf_bf16": {
|
| 5 |
+
"decode_logits": {
|
| 6 |
+
"max_absolute_error": 0.317632794380188,
|
| 7 |
+
"mean_absolute_error": 0.09652481973171234,
|
| 8 |
+
"top1_agreement": false,
|
| 9 |
+
"top5_overlap": 1
|
| 10 |
},
|
| 11 |
+
"policy": "informational; mixed K-quant and BF16 executions are not required to be identical",
|
| 12 |
+
"prefill_last_logits": {
|
| 13 |
+
"max_absolute_error": 0.25260016322135925,
|
| 14 |
+
"mean_absolute_error": 0.07460260391235352,
|
| 15 |
"top1_agreement": true,
|
| 16 |
"top5_overlap": 3
|
| 17 |
}
|
| 18 |
},
|
| 19 |
+
"converter_command": [
|
| 20 |
+
"PYTHON",
|
| 21 |
+
"CONVERTER",
|
| 22 |
+
"HF_FOR_CONVERTER",
|
| 23 |
+
"--outfile",
|
| 24 |
+
"F32_OUTPUT",
|
| 25 |
+
"--outtype",
|
| 26 |
+
"f32",
|
| 27 |
+
"--model-name",
|
| 28 |
+
"Gemma 4 Random Model"
|
| 29 |
+
],
|
| 30 |
"direct_token_validation": {
|
| 31 |
"all_logits_finite": true,
|
| 32 |
"decode_token_id": 17,
|
| 33 |
"eog_token_ids": [
|
| 34 |
1
|
| 35 |
],
|
|
|
|
| 36 |
"prefill_token_ids": [
|
| 37 |
5,
|
| 38 |
7,
|
| 39 |
11,
|
| 40 |
13
|
| 41 |
+
],
|
| 42 |
+
"repeated_output_byte_identical": true,
|
| 43 |
+
"status": "passed"
|
| 44 |
},
|
| 45 |
+
"f32_intermediate_retained_in_package": false,
|
| 46 |
+
"f32_intermediate_sha256": "67b5f94511c78c951619397ea719f1fb0de81bafacc01b00690d507fb677b57a",
|
| 47 |
+
"llama_cpp_commit": "0b1bad14ff204627636aeb1de22ddcd5acb859d4",
|
| 48 |
+
"llama_cpp_profile": "Q4_K_M alias",
|
| 49 |
+
"model_sha256": "3ce6309aa4221289441b198ab63cd6c0d03075ba183ea1990001313c99d6e845",
|
| 50 |
+
"model_size_bytes": 3591488,
|
| 51 |
+
"pure": false,
|
| 52 |
"quantizer_command": [
|
| 53 |
"LLAMA_QUANTIZE",
|
| 54 |
+
"OVERRIDE_SOURCE_LIKE_METADATA",
|
|
|
|
| 55 |
"F32_INPUT",
|
| 56 |
"OUTPUT",
|
| 57 |
+
"Q4_K"
|
| 58 |
],
|
| 59 |
+
"requested_quantization": "Q4_K",
|
| 60 |
"tensor_type_histogram": {
|
| 61 |
"F32": 44,
|
| 62 |
+
"Q4_K": 37,
|
| 63 |
+
"Q6_K": 5
|
| 64 |
}
|
| 65 |
},
|
| 66 |
"hf": {
|
| 67 |
+
"config_sha256": "571a499253eb22afcc050ee3428fdc56dcc23a38cfc66248a911bc2b51df93bb",
|
| 68 |
"construct_prefill_decode_reload": "passed",
|
| 69 |
"dtype": "bfloat16",
|
| 70 |
+
"model_sha256": "e97de7f7fcad67f15547487a4b44fa8b6066ad8cd49b2c0d4b1230e3cf615ad3",
|
| 71 |
"reload_tolerance": {
|
| 72 |
"atol": 0.02,
|
| 73 |
"rtol": 0.02
|
| 74 |
},
|
| 75 |
+
"tokenizer_json_sha256": "5497f30f2a945c00a2d2cbe8b2f37a8a7c27a596fa01f59c61eef3a55bdf4a4c",
|
| 76 |
+
"transformers_version": "5.15.0"
|
| 77 |
},
|
| 78 |
+
"parameter_count": 6036608,
|
| 79 |
"reproducibility": {
|
| 80 |
+
"gguf_q4_k_byte_identical": true,
|
| 81 |
+
"hf_config_byte_identical": true,
|
| 82 |
+
"hf_model_byte_identical": true,
|
| 83 |
+
"native_repeated_output_byte_identical": true
|
| 84 |
},
|
| 85 |
"rng": {
|
| 86 |
"increment": 1442695040888963407,
|
|
|
|
| 88 |
"name": "tlfloat LCG64 equation",
|
| 89 |
"warmup_steps": 10
|
| 90 |
},
|
| 91 |
+
"schema_version": 2,
|
| 92 |
+
"seed": 5135595944287666177,
|
| 93 |
+
"source_gguf": {
|
| 94 |
+
"architecture": "gemma4",
|
| 95 |
+
"intentionally_changed_or_omitted": {
|
| 96 |
+
"geometry": "reduced while preserving ratios and one full schedule",
|
| 97 |
+
"identity": "random-model identity replaces upstream model identity",
|
| 98 |
+
"tokenizer.chat_template": "omitted because the 128-token synthetic vocabulary lacks its control tokens",
|
| 99 |
+
"tokenizer.ggml.suppress_tokens": "omitted because source IDs 258882 and 258883 are outside the reduced vocabulary"
|
| 100 |
+
},
|
| 101 |
+
"metadata_field_count": 45,
|
| 102 |
+
"path": "/home/codex/llm_models/gguf/gemma-4-12B-it-GGUF/gemma-4-12B-it-Q4_K_M.gguf",
|
| 103 |
+
"preserved_metadata": [
|
| 104 |
+
"sampling defaults",
|
| 105 |
+
"six-layer attention schedule",
|
| 106 |
+
"RoPE regimes",
|
| 107 |
+
"RMS epsilon",
|
| 108 |
+
"final logit softcap",
|
| 109 |
+
"tokenizer model and special IDs",
|
| 110 |
+
"add BOS",
|
| 111 |
+
"no added space prefix",
|
| 112 |
+
"quantization version"
|
| 113 |
+
],
|
| 114 |
+
"tensor_count": 667,
|
| 115 |
+
"tensor_type_histogram": {
|
| 116 |
+
"F32": 338,
|
| 117 |
+
"Q4_K": 284,
|
| 118 |
+
"Q6_K": 45
|
| 119 |
+
}
|
| 120 |
+
}
|
| 121 |
}
|
gemma4-random-model/reference/gguf-native.json
CHANGED
|
@@ -5,6 +5,6 @@
|
|
| 5 |
"decode_token_id": 17,
|
| 6 |
"eog_token_ids": [1],
|
| 7 |
"all_logits_finite": true,
|
| 8 |
-
"prefill_last_logits": [-0.
|
| 9 |
-
"decode_logits": [
|
| 10 |
}
|
|
|
|
| 5 |
"decode_token_id": 17,
|
| 6 |
"eog_token_ids": [1],
|
| 7 |
"all_logits_finite": true,
|
| 8 |
+
"prefill_last_logits": [-0.180541143,-0.0625896752,-0.0801645443,-0.0324444957,-0.145822316,0.16689758,-0.056453649,0.0354969651,-0.107032984,-0.0642904267,0.278022289,0.138497159,-0.381877869,0.114222273,-0.18239069,-0.0383097045,0.0305028781,0.173735902,0.0596304536,0.18742837,0.148728207,-0.0641550347,-0.0438717008,-0.135932371,-0.0398499295,-0.12629649,-0.0909607634,0.290424764,0.00942425523,-0.124148756,-0.0854420438,-0.0250708275,0.0894175395,0.0316273794,-0.0333787538,-0.0799205527,-0.0867133439,-0.101149172,0.211644024,-0.191840932,-0.0421341397,0.285777003,-0.116382837,-0.247553647,-0.0722068548,-0.0523612201,-0.334899545,0.0216170233,0.438813061,0.289526731,-0.210583016,-0.0481212623,-0.172922224,0.337610394,0.0481857546,-0.0580814593,0.172419965,-0.306156754,0.222406477,-0.285389692,0.0797131285,0.166056708,0.188024804,-0.445678234,0.0883253366,-0.20347251,-0.268209398,0.373594314,0.232743144,-0.069143571,-0.0496469587,-0.16557017,-0.0130885988,-0.0726044923,-0.171762243,0.206093356,0.120467141,0.0200306084,0.21257633,-0.627123415,0.00390911149,0.0121024838,-0.421131998,-0.0978042036,-0.139752686,-0.140550151,-0.0453886986,-0.136265546,-0.0397286192,-0.121006839,-0.272427201,-0.213812858,-0.0442257412,-0.679793835,-0.475235343,-0.13458927,-0.0113198459,0.308448523,-0.0260743145,0.0897181258,0.358040959,-0.105817452,-0.205231041,-0.0239973925,-0.222660467,0.0930277854,-0.170702145,-0.00103891653,-0.0503437631,-0.0191276055,-0.275645614,-0.0427258126,-0.379553288,-0.398210794,0.0957396328,0.193684846,-0.107572451,-0.030029377,-0.0339817703,0.209344536,0.135555431,0.101219699,0.282283813,-0.0226774644,0.0111512542,-0.116329782,0.00453716516,0.189975291],
|
| 9 |
+
"decode_logits": [0.0986062139,0.103315219,-0.0652525946,0.123670734,-0.0419863798,-0.314382672,0.0190353524,0.288026989,0.179623559,0.00199305289,-0.131245092,-0.0432820022,-0.228420675,-0.205682784,-0.198196515,-0.153465882,-0.234333411,-0.0483023711,0.220053941,-0.0592789762,-0.132185638,-0.00524511933,0.168493405,-0.094419606,0.0581862815,-0.259100229,0.12117058,0.100616656,-0.0987538546,-0.209920093,0.0236835964,-0.00266891741,0.199776173,-0.0309187006,-0.260020614,0.404630393,-0.200569421,0.0688071623,0.0932103917,-0.323904306,0.248116791,-0.0643995851,-0.278670967,-0.37724492,-0.0890700072,-0.185746729,0.0648792908,0.105546869,0.0685760975,-0.163680673,0.022758726,-0.265505493,-0.0260222349,-0.0517332368,0.153072178,0.141724363,0.123938538,-0.198548824,0.0563444607,0.0641695559,0.288197339,-0.0911298022,0.232513264,-0.361397266,-0.153648838,-0.0139489193,-0.0716145262,0.239581585,-0.0615705475,0.0815294012,0.0684768707,0.0789057314,0.108183503,0.0321343988,-0.12308383,0.332421839,-0.312578231,-0.157823935,0.032510329,0.00258246087,0.19458437,0.133237913,0.0968403295,-0.141325116,-0.0631495714,0.116116427,-0.147599086,0.0742732137,0.163263127,-0.112877861,0.105354428,-0.312680155,-0.302541375,-0.140019819,-0.0941601098,0.0485069491,-0.0505474918,-0.122098878,0.303493977,-0.117373735,0.298803478,-0.295070529,0.264631271,0.124640383,-0.00693055242,0.0502441116,-0.27799198,0.292767376,0.0496037453,0.32225278,0.144747049,0.135104164,-0.14159067,-0.335766494,-0.158481583,0.158381671,0.0570854172,-0.00177340209,-0.105467319,0.239013657,0.276010066,0.0803631246,0.564333439,0.29532069,-0.066697076,-0.181127667,-0.0701091066,-0.33402738]
|
| 10 |
}
|
gemma4-random-model/reference/hf-outputs.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2720
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d6bf946d748543d85bb840ccf2533c4ed30817adec2e736e2f27e7024e3f7996
|
| 3 |
size 2720
|
manifest.json
CHANGED
|
@@ -137,19 +137,19 @@
|
|
| 137 |
"architecture": "gemma4",
|
| 138 |
"auxiliary_tokenizer": {
|
| 139 |
"path": "gemma4-random-model/hf-bf16/tokenizer.json",
|
| 140 |
-
"sha256": "
|
| 141 |
},
|
| 142 |
"case": "gemma4-random-model",
|
| 143 |
"packages": {
|
| 144 |
-
"
|
| 145 |
-
"path": "gemma4-random-model/gguf-
|
| 146 |
-
"sha256": "
|
| 147 |
-
"size_bytes":
|
| 148 |
},
|
| 149 |
"safetensors_bf16": {
|
| 150 |
"path": "gemma4-random-model/hf-bf16/model.safetensors",
|
| 151 |
-
"sha256": "
|
| 152 |
-
"size_bytes":
|
| 153 |
}
|
| 154 |
}
|
| 155 |
},
|
|
|
|
| 137 |
"architecture": "gemma4",
|
| 138 |
"auxiliary_tokenizer": {
|
| 139 |
"path": "gemma4-random-model/hf-bf16/tokenizer.json",
|
| 140 |
+
"sha256": "5497f30f2a945c00a2d2cbe8b2f37a8a7c27a596fa01f59c61eef3a55bdf4a4c"
|
| 141 |
},
|
| 142 |
"case": "gemma4-random-model",
|
| 143 |
"packages": {
|
| 144 |
+
"gguf_q4_k": {
|
| 145 |
+
"path": "gemma4-random-model/gguf-q4_k/gemma4-random-model-Q4_K.gguf",
|
| 146 |
+
"sha256": "3ce6309aa4221289441b198ab63cd6c0d03075ba183ea1990001313c99d6e845",
|
| 147 |
+
"size_bytes": 3591488
|
| 148 |
},
|
| 149 |
"safetensors_bf16": {
|
| 150 |
"path": "gemma4-random-model/hf-bf16/model.safetensors",
|
| 151 |
+
"sha256": "e97de7f7fcad67f15547487a4b44fa8b6066ad8cd49b2c0d4b1230e3cf615ad3",
|
| 152 |
+
"size_bytes": 12082356
|
| 153 |
}
|
| 154 |
}
|
| 155 |
},
|