voipmonitor commited on
Commit
cadcd59
·
verified ·
1 Parent(s): b855117

Publish MXFP8 DFlash2 checkpoint

Browse files
Files changed (6) hide show
  1. .gitattributes +2 -35
  2. README.md +124 -0
  3. config.json +75 -0
  4. conversion_manifest.json +651 -0
  5. hf_quant_config.json +13 -0
  6. model.safetensors +3 -0
.gitattributes CHANGED
@@ -1,35 +1,2 @@
1
- *.7z filter=lfs diff=lfs merge=lfs -text
2
- *.arrow filter=lfs diff=lfs merge=lfs -text
3
- *.bin filter=lfs diff=lfs merge=lfs -text
4
- *.bz2 filter=lfs diff=lfs merge=lfs -text
5
- *.ckpt filter=lfs diff=lfs merge=lfs -text
6
- *.ftz filter=lfs diff=lfs merge=lfs -text
7
- *.gz filter=lfs diff=lfs merge=lfs -text
8
- *.h5 filter=lfs diff=lfs merge=lfs -text
9
- *.joblib filter=lfs diff=lfs merge=lfs -text
10
- *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
- *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
- *.model filter=lfs diff=lfs merge=lfs -text
13
- *.msgpack filter=lfs diff=lfs merge=lfs -text
14
- *.npy filter=lfs diff=lfs merge=lfs -text
15
- *.npz filter=lfs diff=lfs merge=lfs -text
16
- *.onnx filter=lfs diff=lfs merge=lfs -text
17
- *.ot filter=lfs diff=lfs merge=lfs -text
18
- *.parquet filter=lfs diff=lfs merge=lfs -text
19
- *.pb filter=lfs diff=lfs merge=lfs -text
20
- *.pickle filter=lfs diff=lfs merge=lfs -text
21
- *.pkl filter=lfs diff=lfs merge=lfs -text
22
- *.pt filter=lfs diff=lfs merge=lfs -text
23
- *.pth filter=lfs diff=lfs merge=lfs -text
24
- *.rar filter=lfs diff=lfs merge=lfs -text
25
- *.safetensors filter=lfs diff=lfs merge=lfs -text
26
- saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
- *.tar.* filter=lfs diff=lfs merge=lfs -text
28
- *.tar filter=lfs diff=lfs merge=lfs -text
29
- *.tflite filter=lfs diff=lfs merge=lfs -text
30
- *.tgz filter=lfs diff=lfs merge=lfs -text
31
- *.wasm filter=lfs diff=lfs merge=lfs -text
32
- *.xz filter=lfs diff=lfs merge=lfs -text
33
- *.zip filter=lfs diff=lfs merge=lfs -text
34
- *.zst filter=lfs diff=lfs merge=lfs -text
35
- *tfevents* filter=lfs diff=lfs merge=lfs -text
 
1
+ assets/dflash2-figure.png filter=lfs diff=lfs merge=lfs -text
2
+ model.safetensors filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md ADDED
@@ -0,0 +1,124 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-nd-4.0
3
+ library_name: vllm
4
+ pipeline_tag: text-generation
5
+ base_model:
6
+ - incoai/GLM-5.3-Flash-DFlash2
7
+ - local-inference-lab/GLM-5.3-Flash-NVFP4
8
+ inference: false
9
+ tags:
10
+ - dflash
11
+ - dflash2
12
+ - speculative-decoding
13
+ - draft-model
14
+ - modelopt
15
+ - mxfp8
16
+ - vllm
17
+ ---
18
+
19
+ # GLM-5.3-Flash-DFlash2
20
+
21
+ This repository contains an MXFP8-quantized DFlash 2 draft model for
22
+ [`local-inference-lab/GLM-5.3-Flash-NVFP4`](https://huggingface.co/local-inference-lab/GLM-5.3-Flash-NVFP4).
23
+ It is not a standalone language model. A compatible speculative-decoding
24
+ server loads it beside the target model and verifies every drafted token
25
+ against the target.
26
+
27
+ The source checkpoint is
28
+ [`incoai/GLM-5.3-Flash-DFlash2`](https://huggingface.co/incoai/GLM-5.3-Flash-DFlash2)
29
+ at immutable revision `dc77ff1c99eeb2df044ee3d4f0094eb033fee410`.
30
+
31
+ ## Format
32
+
33
+ - Linear weights: `float8_e4m3fn`
34
+ - Scale values: biased E8M0 exponents stored as `uint8`
35
+ - Quantization block: 1×32 values
36
+ - Scale layout: row-major and unswizzled
37
+ - Excluded module: `lm_head`
38
+ - Draft KV cache quantization: not encoded in the checkpoint
39
+
40
+ `conversion_manifest.json` records the immutable source revision, source and
41
+ output checksums, tensor coverage, aggregate quantization error, and
42
+ per-weight validation statistics.
43
+
44
+ ## Validation status
45
+
46
+ Status: **qualified** for checkpoint structure, exact format reproduction,
47
+ loading, and smoke inference under the following conditions:
48
+
49
+ - Target: `local-inference-lab/GLM-5.3-Flash-NVFP4` revision
50
+ `520de24eabf507659eaef7c70f14fd584527facc`
51
+ - Runtime:
52
+ `voipmonitor/vllm@sha256:3a7cbc5833ed3d5390c5de2ec3c5a2737761a175123262cfdfd7b38638e1d5e6`
53
+ - Hardware: four NVIDIA RTX PRO 6000 Blackwell Workstation Edition GPUs
54
+ - Parallelism: tensor parallel size 4 and decode-context parallel size 1
55
+ - Target attention, MoE, linear, and tensor-parallel all-reduce: B12X
56
+ - DFlash attention: FlashAttention 2
57
+ - DFlash linear: B12X MXFP8
58
+ - DFlash proposal length: seven tokens
59
+ - DFlash KV cache: `auto` (BF16)
60
+ - CUDA graph mode: `FULL` requested; target and DFlash2 decode are captured,
61
+ while target GDN prefill remains eager
62
+
63
+ The runtime detected ModelOpt MXFP8, selected `B12xMxfp8LinearKernel` for
64
+ draft GEMMs and the fused DFlash context K/V projection, and loaded 1.20 GB of
65
+ draft weights. With seven draft tokens, the qualified runtime measured a
66
+ 2.1157-second median time to first token for a 32,320-token prompt and
67
+ 185.5 output tokens per second at concurrency one. Speculative throughput
68
+ depends on prompt content and acceptance length.
69
+
70
+ The checkpoint is unsupported in vLLM builds that do not contain the DFlash 2
71
+ and ModelOpt MXFP8 integration used by the qualified runtime.
72
+
73
+ ## Serving
74
+
75
+ ```bash
76
+ docker run --rm \
77
+ --gpus '"device=0,1,2,3"' \
78
+ --network host \
79
+ --ipc host \
80
+ --shm-size 32g \
81
+ -e MODEL=local-inference-lab/GLM-5.3-Flash-NVFP4 \
82
+ -e SERVED_MODEL_NAME=GLM-5.3-Flash-NVFP4 \
83
+ -e PORT=8000 \
84
+ -e TP=4 \
85
+ -e DCP=1 \
86
+ -e MAX_NUM_SEQS=16 \
87
+ -e MAX_MODEL_LEN=262144 \
88
+ -e MAX_NUM_BATCHED_TOKENS=4096 \
89
+ -e SPECULATOR=dflash \
90
+ -e NUM_SPECULATIVE_TOKENS=7 \
91
+ -e DFLASH_MODEL=local-inference-lab/GLM-5.3-Flash-DFlash2 \
92
+ -e DFLASH_MODEL_REVISION= \
93
+ -e DFLASH_KV_CACHE_DTYPE=auto \
94
+ -e DFLASH_ATTENTION_BACKEND=FLASH_ATTN \
95
+ -e ATTENTION_BACKEND=B12X \
96
+ -e MOE_BACKEND=b12x \
97
+ -e LINEAR_BACKEND=b12x \
98
+ -e B12X_PCIE_ALLREDUCE=1 \
99
+ -e CUDAGRAPH_MODE=FULL \
100
+ -e VLLM_B12X_MOE_FP4_FORCE_A16=0 \
101
+ voipmonitor/vllm:jovian-judgement-community-dflash2-20260830-r7
102
+ ```
103
+
104
+ An empty `DFLASH_MODEL_REVISION` makes the launcher resolve the repository's
105
+ `main` branch. For reproducible deployments, replace the empty value with an
106
+ immutable Hugging Face commit hash. The OpenAI-compatible endpoint is
107
+ available at `http://127.0.0.1:8000/v1`.
108
+
109
+ ## License and attribution
110
+
111
+ The source DFlash 2 model is distributed under
112
+ [CC BY-NC-ND 4.0](https://creativecommons.org/licenses/by-nc-nd/4.0/).
113
+ See the [source model card](https://huggingface.co/incoai/GLM-5.3-Flash-DFlash2)
114
+ for its use restrictions and attribution information.
115
+
116
+ ```bibtex
117
+ @misc{inco2026dflash2,
118
+ title = {{DFlash 2: Keep Drafting Parallel}},
119
+ author = {{Inco AI}},
120
+ year = {2026},
121
+ month = {August},
122
+ url = {https://inco.ai/blog/dflash2/}
123
+ }
124
+ ```
config.json ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "DFlash2DraftModel"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": null,
8
+ "dflash_config": {
9
+ "block_size": 8,
10
+ "conv_group_size": 16,
11
+ "conv_kernel_size": 2,
12
+ "mask_token_id": 154856,
13
+ "selector_rank": 256,
14
+ "selector_top_k": 16,
15
+ "target_layer_ids": [
16
+ 5,
17
+ 14,
18
+ 24,
19
+ 33,
20
+ 42
21
+ ]
22
+ },
23
+ "dtype": "bfloat16",
24
+ "eos_token_id": [
25
+ 154820,
26
+ 154827,
27
+ 154829
28
+ ],
29
+ "head_dim": 128,
30
+ "hidden_act": "silu",
31
+ "hidden_size": 4096,
32
+ "initializer_range": 0.02,
33
+ "intermediate_size": 12288,
34
+ "is_causal": false,
35
+ "layer_types": [
36
+ "sliding_attention",
37
+ "sliding_attention",
38
+ "sliding_attention",
39
+ "sliding_attention",
40
+ "sliding_attention"
41
+ ],
42
+ "max_position_embeddings": 1048576,
43
+ "max_window_layers": 5,
44
+ "model_type": "qwen3",
45
+ "num_attention_heads": 32,
46
+ "num_hidden_layers": 5,
47
+ "num_key_value_heads": 8,
48
+ "num_target_layers": 45,
49
+ "pad_token_id": 154820,
50
+ "quantization_config": {
51
+ "producer": {
52
+ "name": "glm53-dflash2-mxfp8-converter",
53
+ "version": 1
54
+ },
55
+ "quant_method": "modelopt",
56
+ "quantization": {
57
+ "exclude_modules": [
58
+ "lm_head"
59
+ ],
60
+ "kv_cache_quant_algo": null,
61
+ "quant_algo": "MXFP8"
62
+ }
63
+ },
64
+ "rms_norm_eps": 1e-05,
65
+ "rope_parameters": {
66
+ "rope_theta": 10000.0,
67
+ "rope_type": "default"
68
+ },
69
+ "sliding_window": 2048,
70
+ "tie_word_embeddings": false,
71
+ "transformers_version": "5.7.0",
72
+ "use_cache": false,
73
+ "use_sliding_window": true,
74
+ "vocab_size": 154880
75
+ }
conversion_manifest.json ADDED
@@ -0,0 +1,651 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact": "GLM-5.3-Flash-DFlash2 MXFP8 draft checkpoint",
3
+ "converter_sha256": "f4e28a1c47e06a1748d61d2404ffb6f8258a444b3bff2305718a7e8e5bf0593c",
4
+ "coverage": {
5
+ "preserved_tensors": 34,
6
+ "quantized_linear_weights": 47,
7
+ "quantized_values": 1091567616
8
+ },
9
+ "error": {
10
+ "maximum_absolute_error": 0.125,
11
+ "relative_rmse": 0.026583480809130377,
12
+ "root_mean_squared_error": 0.0028997886924729786
13
+ },
14
+ "format": {
15
+ "block_shape": [
16
+ 1,
17
+ 32
18
+ ],
19
+ "scale": "uint8 biased E8M0 exponent",
20
+ "scale_layout": "row-major, unswizzled",
21
+ "weight": "float8_e4m3fn"
22
+ },
23
+ "output_weights_sha256": "c033e03d47c7d5608596c8fc4e9336a1fe086eb781c08fe031be2bdea1614e58",
24
+ "output_files_sha256": {
25
+ ".gitattributes": "70e0ed421d653865ad7ace84728e32ded01ec0a860e989a5ed736fe11b42214f",
26
+ "README.md": "5a74d5053c29116cb688f40e75aed4b9c21d28a2ad462e963667c3dae522b593",
27
+ "config.json": "4ed95da7d0abecd3eb341e96464d381b474d24d8924bd5efba2dfa24b92690bf",
28
+ "hf_quant_config.json": "b7f04ac7e85e73544f9411dbda70fd75ac3b116e6e239ebff5bc85b15caefd42",
29
+ "model.safetensors": "c033e03d47c7d5608596c8fc4e9336a1fe086eb781c08fe031be2bdea1614e58"
30
+ },
31
+ "source": {
32
+ "config_sha256": "c4aeac0101196a6e26705b34c45230bcd0c7c68ee2d2d1efdb242087f3712573",
33
+ "model": "incoai/GLM-5.3-Flash-DFlash2",
34
+ "revision": "dc77ff1c99eeb2df044ee3d4f0094eb033fee410",
35
+ "weights_sha256": "b33c03475ba7322cf398828f2d8d1be376df30dc05c6b40c28c8ea8da23e410b"
36
+ },
37
+ "status": "implemented",
38
+ "tensors": [
39
+ {
40
+ "maximum_absolute_error": 0.015625,
41
+ "relative_rmse": 0.02662914012776337,
42
+ "scale": "candidate_selector.hidden_projection.weight_scale",
43
+ "scale_dtype": "uint8",
44
+ "shape": [
45
+ 256,
46
+ 4096
47
+ ],
48
+ "source_dtype": "bfloat16",
49
+ "weight": "candidate_selector.hidden_projection.weight",
50
+ "weight_dtype": "float8_e4m3fn"
51
+ },
52
+ {
53
+ "maximum_absolute_error": 0.0546875,
54
+ "relative_rmse": 0.026567000680209157,
55
+ "scale": "fc.weight_scale",
56
+ "scale_dtype": "uint8",
57
+ "shape": [
58
+ 4096,
59
+ 20480
60
+ ],
61
+ "source_dtype": "bfloat16",
62
+ "weight": "fc.weight",
63
+ "weight_dtype": "float8_e4m3fn"
64
+ },
65
+ {
66
+ "maximum_absolute_error": 0.0625,
67
+ "relative_rmse": 0.026598510847792713,
68
+ "scale": "layers.0.attention_conv.kernel_projection.weight_scale",
69
+ "scale_dtype": "uint8",
70
+ "shape": [
71
+ 1024,
72
+ 4096
73
+ ],
74
+ "source_dtype": "bfloat16",
75
+ "weight": "layers.0.attention_conv.kernel_projection.weight",
76
+ "weight_dtype": "float8_e4m3fn"
77
+ },
78
+ {
79
+ "maximum_absolute_error": 0.078125,
80
+ "relative_rmse": 0.02659119810765467,
81
+ "scale": "layers.0.mlp.down_proj.weight_scale",
82
+ "scale_dtype": "uint8",
83
+ "shape": [
84
+ 4096,
85
+ 12288
86
+ ],
87
+ "source_dtype": "bfloat16",
88
+ "weight": "layers.0.mlp.down_proj.weight",
89
+ "weight_dtype": "float8_e4m3fn"
90
+ },
91
+ {
92
+ "maximum_absolute_error": 0.0625,
93
+ "relative_rmse": 0.02661559519636154,
94
+ "scale": "layers.0.mlp.gate_proj.weight_scale",
95
+ "scale_dtype": "uint8",
96
+ "shape": [
97
+ 12288,
98
+ 4096
99
+ ],
100
+ "source_dtype": "bfloat16",
101
+ "weight": "layers.0.mlp.gate_proj.weight",
102
+ "weight_dtype": "float8_e4m3fn"
103
+ },
104
+ {
105
+ "maximum_absolute_error": 0.0625,
106
+ "relative_rmse": 0.02661984011036928,
107
+ "scale": "layers.0.mlp.up_proj.weight_scale",
108
+ "scale_dtype": "uint8",
109
+ "shape": [
110
+ 12288,
111
+ 4096
112
+ ],
113
+ "source_dtype": "bfloat16",
114
+ "weight": "layers.0.mlp.up_proj.weight",
115
+ "weight_dtype": "float8_e4m3fn"
116
+ },
117
+ {
118
+ "maximum_absolute_error": 0.0625,
119
+ "relative_rmse": 0.02654063072293776,
120
+ "scale": "layers.0.mlp_conv.kernel_projection.weight_scale",
121
+ "scale_dtype": "uint8",
122
+ "shape": [
123
+ 1024,
124
+ 4096
125
+ ],
126
+ "source_dtype": "bfloat16",
127
+ "weight": "layers.0.mlp_conv.kernel_projection.weight",
128
+ "weight_dtype": "float8_e4m3fn"
129
+ },
130
+ {
131
+ "maximum_absolute_error": 0.03125,
132
+ "relative_rmse": 0.026592116125447415,
133
+ "scale": "layers.0.self_attn.k_proj.weight_scale",
134
+ "scale_dtype": "uint8",
135
+ "shape": [
136
+ 1024,
137
+ 4096
138
+ ],
139
+ "source_dtype": "bfloat16",
140
+ "weight": "layers.0.self_attn.k_proj.weight",
141
+ "weight_dtype": "float8_e4m3fn"
142
+ },
143
+ {
144
+ "maximum_absolute_error": 0.0390625,
145
+ "relative_rmse": 0.02656823404746311,
146
+ "scale": "layers.0.self_attn.o_proj.weight_scale",
147
+ "scale_dtype": "uint8",
148
+ "shape": [
149
+ 4096,
150
+ 4096
151
+ ],
152
+ "source_dtype": "bfloat16",
153
+ "weight": "layers.0.self_attn.o_proj.weight",
154
+ "weight_dtype": "float8_e4m3fn"
155
+ },
156
+ {
157
+ "maximum_absolute_error": 0.03125,
158
+ "relative_rmse": 0.026567040624108283,
159
+ "scale": "layers.0.self_attn.q_proj.weight_scale",
160
+ "scale_dtype": "uint8",
161
+ "shape": [
162
+ 4096,
163
+ 4096
164
+ ],
165
+ "source_dtype": "bfloat16",
166
+ "weight": "layers.0.self_attn.q_proj.weight",
167
+ "weight_dtype": "float8_e4m3fn"
168
+ },
169
+ {
170
+ "maximum_absolute_error": 0.015625,
171
+ "relative_rmse": 0.026525638628768222,
172
+ "scale": "layers.0.self_attn.v_proj.weight_scale",
173
+ "scale_dtype": "uint8",
174
+ "shape": [
175
+ 1024,
176
+ 4096
177
+ ],
178
+ "source_dtype": "bfloat16",
179
+ "weight": "layers.0.self_attn.v_proj.weight",
180
+ "weight_dtype": "float8_e4m3fn"
181
+ },
182
+ {
183
+ "maximum_absolute_error": 0.125,
184
+ "relative_rmse": 0.026596001906054587,
185
+ "scale": "layers.1.attention_conv.kernel_projection.weight_scale",
186
+ "scale_dtype": "uint8",
187
+ "shape": [
188
+ 1024,
189
+ 4096
190
+ ],
191
+ "source_dtype": "bfloat16",
192
+ "weight": "layers.1.attention_conv.kernel_projection.weight",
193
+ "weight_dtype": "float8_e4m3fn"
194
+ },
195
+ {
196
+ "maximum_absolute_error": 0.0625,
197
+ "relative_rmse": 0.0265787755625202,
198
+ "scale": "layers.1.mlp.down_proj.weight_scale",
199
+ "scale_dtype": "uint8",
200
+ "shape": [
201
+ 4096,
202
+ 12288
203
+ ],
204
+ "source_dtype": "bfloat16",
205
+ "weight": "layers.1.mlp.down_proj.weight",
206
+ "weight_dtype": "float8_e4m3fn"
207
+ },
208
+ {
209
+ "maximum_absolute_error": 0.0625,
210
+ "relative_rmse": 0.026587237640933212,
211
+ "scale": "layers.1.mlp.gate_proj.weight_scale",
212
+ "scale_dtype": "uint8",
213
+ "shape": [
214
+ 12288,
215
+ 4096
216
+ ],
217
+ "source_dtype": "bfloat16",
218
+ "weight": "layers.1.mlp.gate_proj.weight",
219
+ "weight_dtype": "float8_e4m3fn"
220
+ },
221
+ {
222
+ "maximum_absolute_error": 0.109375,
223
+ "relative_rmse": 0.02659690101329357,
224
+ "scale": "layers.1.mlp.up_proj.weight_scale",
225
+ "scale_dtype": "uint8",
226
+ "shape": [
227
+ 12288,
228
+ 4096
229
+ ],
230
+ "source_dtype": "bfloat16",
231
+ "weight": "layers.1.mlp.up_proj.weight",
232
+ "weight_dtype": "float8_e4m3fn"
233
+ },
234
+ {
235
+ "maximum_absolute_error": 0.078125,
236
+ "relative_rmse": 0.02656689675876576,
237
+ "scale": "layers.1.mlp_conv.kernel_projection.weight_scale",
238
+ "scale_dtype": "uint8",
239
+ "shape": [
240
+ 1024,
241
+ 4096
242
+ ],
243
+ "source_dtype": "bfloat16",
244
+ "weight": "layers.1.mlp_conv.kernel_projection.weight",
245
+ "weight_dtype": "float8_e4m3fn"
246
+ },
247
+ {
248
+ "maximum_absolute_error": 0.0546875,
249
+ "relative_rmse": 0.026569303009495438,
250
+ "scale": "layers.1.self_attn.k_proj.weight_scale",
251
+ "scale_dtype": "uint8",
252
+ "shape": [
253
+ 1024,
254
+ 4096
255
+ ],
256
+ "source_dtype": "bfloat16",
257
+ "weight": "layers.1.self_attn.k_proj.weight",
258
+ "weight_dtype": "float8_e4m3fn"
259
+ },
260
+ {
261
+ "maximum_absolute_error": 0.03125,
262
+ "relative_rmse": 0.026560798124397773,
263
+ "scale": "layers.1.self_attn.o_proj.weight_scale",
264
+ "scale_dtype": "uint8",
265
+ "shape": [
266
+ 4096,
267
+ 4096
268
+ ],
269
+ "source_dtype": "bfloat16",
270
+ "weight": "layers.1.self_attn.o_proj.weight",
271
+ "weight_dtype": "float8_e4m3fn"
272
+ },
273
+ {
274
+ "maximum_absolute_error": 0.0625,
275
+ "relative_rmse": 0.026568386185886816,
276
+ "scale": "layers.1.self_attn.q_proj.weight_scale",
277
+ "scale_dtype": "uint8",
278
+ "shape": [
279
+ 4096,
280
+ 4096
281
+ ],
282
+ "source_dtype": "bfloat16",
283
+ "weight": "layers.1.self_attn.q_proj.weight",
284
+ "weight_dtype": "float8_e4m3fn"
285
+ },
286
+ {
287
+ "maximum_absolute_error": 0.03125,
288
+ "relative_rmse": 0.0265892482789613,
289
+ "scale": "layers.1.self_attn.v_proj.weight_scale",
290
+ "scale_dtype": "uint8",
291
+ "shape": [
292
+ 1024,
293
+ 4096
294
+ ],
295
+ "source_dtype": "bfloat16",
296
+ "weight": "layers.1.self_attn.v_proj.weight",
297
+ "weight_dtype": "float8_e4m3fn"
298
+ },
299
+ {
300
+ "maximum_absolute_error": 0.0625,
301
+ "relative_rmse": 0.02657074981178284,
302
+ "scale": "layers.2.attention_conv.kernel_projection.weight_scale",
303
+ "scale_dtype": "uint8",
304
+ "shape": [
305
+ 1024,
306
+ 4096
307
+ ],
308
+ "source_dtype": "bfloat16",
309
+ "weight": "layers.2.attention_conv.kernel_projection.weight",
310
+ "weight_dtype": "float8_e4m3fn"
311
+ },
312
+ {
313
+ "maximum_absolute_error": 0.109375,
314
+ "relative_rmse": 0.026572407862604005,
315
+ "scale": "layers.2.mlp.down_proj.weight_scale",
316
+ "scale_dtype": "uint8",
317
+ "shape": [
318
+ 4096,
319
+ 12288
320
+ ],
321
+ "source_dtype": "bfloat16",
322
+ "weight": "layers.2.mlp.down_proj.weight",
323
+ "weight_dtype": "float8_e4m3fn"
324
+ },
325
+ {
326
+ "maximum_absolute_error": 0.0625,
327
+ "relative_rmse": 0.026568281345928493,
328
+ "scale": "layers.2.mlp.gate_proj.weight_scale",
329
+ "scale_dtype": "uint8",
330
+ "shape": [
331
+ 12288,
332
+ 4096
333
+ ],
334
+ "source_dtype": "bfloat16",
335
+ "weight": "layers.2.mlp.gate_proj.weight",
336
+ "weight_dtype": "float8_e4m3fn"
337
+ },
338
+ {
339
+ "maximum_absolute_error": 0.0625,
340
+ "relative_rmse": 0.026585907486245345,
341
+ "scale": "layers.2.mlp.up_proj.weight_scale",
342
+ "scale_dtype": "uint8",
343
+ "shape": [
344
+ 12288,
345
+ 4096
346
+ ],
347
+ "source_dtype": "bfloat16",
348
+ "weight": "layers.2.mlp.up_proj.weight",
349
+ "weight_dtype": "float8_e4m3fn"
350
+ },
351
+ {
352
+ "maximum_absolute_error": 0.109375,
353
+ "relative_rmse": 0.026572698101393868,
354
+ "scale": "layers.2.mlp_conv.kernel_projection.weight_scale",
355
+ "scale_dtype": "uint8",
356
+ "shape": [
357
+ 1024,
358
+ 4096
359
+ ],
360
+ "source_dtype": "bfloat16",
361
+ "weight": "layers.2.mlp_conv.kernel_projection.weight",
362
+ "weight_dtype": "float8_e4m3fn"
363
+ },
364
+ {
365
+ "maximum_absolute_error": 0.0546875,
366
+ "relative_rmse": 0.026577556384314666,
367
+ "scale": "layers.2.self_attn.k_proj.weight_scale",
368
+ "scale_dtype": "uint8",
369
+ "shape": [
370
+ 1024,
371
+ 4096
372
+ ],
373
+ "source_dtype": "bfloat16",
374
+ "weight": "layers.2.self_attn.k_proj.weight",
375
+ "weight_dtype": "float8_e4m3fn"
376
+ },
377
+ {
378
+ "maximum_absolute_error": 0.03125,
379
+ "relative_rmse": 0.026560576726262823,
380
+ "scale": "layers.2.self_attn.o_proj.weight_scale",
381
+ "scale_dtype": "uint8",
382
+ "shape": [
383
+ 4096,
384
+ 4096
385
+ ],
386
+ "source_dtype": "bfloat16",
387
+ "weight": "layers.2.self_attn.o_proj.weight",
388
+ "weight_dtype": "float8_e4m3fn"
389
+ },
390
+ {
391
+ "maximum_absolute_error": 0.0546875,
392
+ "relative_rmse": 0.026586736069846087,
393
+ "scale": "layers.2.self_attn.q_proj.weight_scale",
394
+ "scale_dtype": "uint8",
395
+ "shape": [
396
+ 4096,
397
+ 4096
398
+ ],
399
+ "source_dtype": "bfloat16",
400
+ "weight": "layers.2.self_attn.q_proj.weight",
401
+ "weight_dtype": "float8_e4m3fn"
402
+ },
403
+ {
404
+ "maximum_absolute_error": 0.03125,
405
+ "relative_rmse": 0.026586952065358875,
406
+ "scale": "layers.2.self_attn.v_proj.weight_scale",
407
+ "scale_dtype": "uint8",
408
+ "shape": [
409
+ 1024,
410
+ 4096
411
+ ],
412
+ "source_dtype": "bfloat16",
413
+ "weight": "layers.2.self_attn.v_proj.weight",
414
+ "weight_dtype": "float8_e4m3fn"
415
+ },
416
+ {
417
+ "maximum_absolute_error": 0.125,
418
+ "relative_rmse": 0.026572177207037927,
419
+ "scale": "layers.3.attention_conv.kernel_projection.weight_scale",
420
+ "scale_dtype": "uint8",
421
+ "shape": [
422
+ 1024,
423
+ 4096
424
+ ],
425
+ "source_dtype": "bfloat16",
426
+ "weight": "layers.3.attention_conv.kernel_projection.weight",
427
+ "weight_dtype": "float8_e4m3fn"
428
+ },
429
+ {
430
+ "maximum_absolute_error": 0.109375,
431
+ "relative_rmse": 0.02656499109738341,
432
+ "scale": "layers.3.mlp.down_proj.weight_scale",
433
+ "scale_dtype": "uint8",
434
+ "shape": [
435
+ 4096,
436
+ 12288
437
+ ],
438
+ "source_dtype": "bfloat16",
439
+ "weight": "layers.3.mlp.down_proj.weight",
440
+ "weight_dtype": "float8_e4m3fn"
441
+ },
442
+ {
443
+ "maximum_absolute_error": 0.125,
444
+ "relative_rmse": 0.026570417196929284,
445
+ "scale": "layers.3.mlp.gate_proj.weight_scale",
446
+ "scale_dtype": "uint8",
447
+ "shape": [
448
+ 12288,
449
+ 4096
450
+ ],
451
+ "source_dtype": "bfloat16",
452
+ "weight": "layers.3.mlp.gate_proj.weight",
453
+ "weight_dtype": "float8_e4m3fn"
454
+ },
455
+ {
456
+ "maximum_absolute_error": 0.0625,
457
+ "relative_rmse": 0.02658615684586314,
458
+ "scale": "layers.3.mlp.up_proj.weight_scale",
459
+ "scale_dtype": "uint8",
460
+ "shape": [
461
+ 12288,
462
+ 4096
463
+ ],
464
+ "source_dtype": "bfloat16",
465
+ "weight": "layers.3.mlp.up_proj.weight",
466
+ "weight_dtype": "float8_e4m3fn"
467
+ },
468
+ {
469
+ "maximum_absolute_error": 0.0625,
470
+ "relative_rmse": 0.026566849904042712,
471
+ "scale": "layers.3.mlp_conv.kernel_projection.weight_scale",
472
+ "scale_dtype": "uint8",
473
+ "shape": [
474
+ 1024,
475
+ 4096
476
+ ],
477
+ "source_dtype": "bfloat16",
478
+ "weight": "layers.3.mlp_conv.kernel_projection.weight",
479
+ "weight_dtype": "float8_e4m3fn"
480
+ },
481
+ {
482
+ "maximum_absolute_error": 0.0546875,
483
+ "relative_rmse": 0.02657702447659922,
484
+ "scale": "layers.3.self_attn.k_proj.weight_scale",
485
+ "scale_dtype": "uint8",
486
+ "shape": [
487
+ 1024,
488
+ 4096
489
+ ],
490
+ "source_dtype": "bfloat16",
491
+ "weight": "layers.3.self_attn.k_proj.weight",
492
+ "weight_dtype": "float8_e4m3fn"
493
+ },
494
+ {
495
+ "maximum_absolute_error": 0.03125,
496
+ "relative_rmse": 0.026568267578320686,
497
+ "scale": "layers.3.self_attn.o_proj.weight_scale",
498
+ "scale_dtype": "uint8",
499
+ "shape": [
500
+ 4096,
501
+ 4096
502
+ ],
503
+ "source_dtype": "bfloat16",
504
+ "weight": "layers.3.self_attn.o_proj.weight",
505
+ "weight_dtype": "float8_e4m3fn"
506
+ },
507
+ {
508
+ "maximum_absolute_error": 0.0546875,
509
+ "relative_rmse": 0.026577504789784222,
510
+ "scale": "layers.3.self_attn.q_proj.weight_scale",
511
+ "scale_dtype": "uint8",
512
+ "shape": [
513
+ 4096,
514
+ 4096
515
+ ],
516
+ "source_dtype": "bfloat16",
517
+ "weight": "layers.3.self_attn.q_proj.weight",
518
+ "weight_dtype": "float8_e4m3fn"
519
+ },
520
+ {
521
+ "maximum_absolute_error": 0.03125,
522
+ "relative_rmse": 0.026590205296363092,
523
+ "scale": "layers.3.self_attn.v_proj.weight_scale",
524
+ "scale_dtype": "uint8",
525
+ "shape": [
526
+ 1024,
527
+ 4096
528
+ ],
529
+ "source_dtype": "bfloat16",
530
+ "weight": "layers.3.self_attn.v_proj.weight",
531
+ "weight_dtype": "float8_e4m3fn"
532
+ },
533
+ {
534
+ "maximum_absolute_error": 0.125,
535
+ "relative_rmse": 0.026593574382866452,
536
+ "scale": "layers.4.attention_conv.kernel_projection.weight_scale",
537
+ "scale_dtype": "uint8",
538
+ "shape": [
539
+ 1024,
540
+ 4096
541
+ ],
542
+ "source_dtype": "bfloat16",
543
+ "weight": "layers.4.attention_conv.kernel_projection.weight",
544
+ "weight_dtype": "float8_e4m3fn"
545
+ },
546
+ {
547
+ "maximum_absolute_error": 0.109375,
548
+ "relative_rmse": 0.02661912299049318,
549
+ "scale": "layers.4.mlp.down_proj.weight_scale",
550
+ "scale_dtype": "uint8",
551
+ "shape": [
552
+ 4096,
553
+ 12288
554
+ ],
555
+ "source_dtype": "bfloat16",
556
+ "weight": "layers.4.mlp.down_proj.weight",
557
+ "weight_dtype": "float8_e4m3fn"
558
+ },
559
+ {
560
+ "maximum_absolute_error": 0.0625,
561
+ "relative_rmse": 0.02657367966586845,
562
+ "scale": "layers.4.mlp.gate_proj.weight_scale",
563
+ "scale_dtype": "uint8",
564
+ "shape": [
565
+ 12288,
566
+ 4096
567
+ ],
568
+ "source_dtype": "bfloat16",
569
+ "weight": "layers.4.mlp.gate_proj.weight",
570
+ "weight_dtype": "float8_e4m3fn"
571
+ },
572
+ {
573
+ "maximum_absolute_error": 0.0625,
574
+ "relative_rmse": 0.026602028239691457,
575
+ "scale": "layers.4.mlp.up_proj.weight_scale",
576
+ "scale_dtype": "uint8",
577
+ "shape": [
578
+ 12288,
579
+ 4096
580
+ ],
581
+ "source_dtype": "bfloat16",
582
+ "weight": "layers.4.mlp.up_proj.weight",
583
+ "weight_dtype": "float8_e4m3fn"
584
+ },
585
+ {
586
+ "maximum_absolute_error": 0.0625,
587
+ "relative_rmse": 0.02658053894333081,
588
+ "scale": "layers.4.mlp_conv.kernel_projection.weight_scale",
589
+ "scale_dtype": "uint8",
590
+ "shape": [
591
+ 1024,
592
+ 4096
593
+ ],
594
+ "source_dtype": "bfloat16",
595
+ "weight": "layers.4.mlp_conv.kernel_projection.weight",
596
+ "weight_dtype": "float8_e4m3fn"
597
+ },
598
+ {
599
+ "maximum_absolute_error": 0.0625,
600
+ "relative_rmse": 0.026593862409928445,
601
+ "scale": "layers.4.self_attn.k_proj.weight_scale",
602
+ "scale_dtype": "uint8",
603
+ "shape": [
604
+ 1024,
605
+ 4096
606
+ ],
607
+ "source_dtype": "bfloat16",
608
+ "weight": "layers.4.self_attn.k_proj.weight",
609
+ "weight_dtype": "float8_e4m3fn"
610
+ },
611
+ {
612
+ "maximum_absolute_error": 0.03125,
613
+ "relative_rmse": 0.02655268219685373,
614
+ "scale": "layers.4.self_attn.o_proj.weight_scale",
615
+ "scale_dtype": "uint8",
616
+ "shape": [
617
+ 4096,
618
+ 4096
619
+ ],
620
+ "source_dtype": "bfloat16",
621
+ "weight": "layers.4.self_attn.o_proj.weight",
622
+ "weight_dtype": "float8_e4m3fn"
623
+ },
624
+ {
625
+ "maximum_absolute_error": 0.0625,
626
+ "relative_rmse": 0.026596374233145523,
627
+ "scale": "layers.4.self_attn.q_proj.weight_scale",
628
+ "scale_dtype": "uint8",
629
+ "shape": [
630
+ 4096,
631
+ 4096
632
+ ],
633
+ "source_dtype": "bfloat16",
634
+ "weight": "layers.4.self_attn.q_proj.weight",
635
+ "weight_dtype": "float8_e4m3fn"
636
+ },
637
+ {
638
+ "maximum_absolute_error": 0.03125,
639
+ "relative_rmse": 0.026648845046121847,
640
+ "scale": "layers.4.self_attn.v_proj.weight_scale",
641
+ "scale_dtype": "uint8",
642
+ "shape": [
643
+ 1024,
644
+ 4096
645
+ ],
646
+ "source_dtype": "bfloat16",
647
+ "weight": "layers.4.self_attn.v_proj.weight",
648
+ "weight_dtype": "float8_e4m3fn"
649
+ }
650
+ ]
651
+ }
hf_quant_config.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "producer": {
3
+ "name": "glm53-dflash2-mxfp8-converter",
4
+ "version": 1
5
+ },
6
+ "quantization": {
7
+ "exclude_modules": [
8
+ "lm_head"
9
+ ],
10
+ "kv_cache_quant_algo": null,
11
+ "quant_algo": "MXFP8"
12
+ }
13
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c033e03d47c7d5608596c8fc4e9336a1fe086eb781c08fe031be2bdea1614e58
3
+ size 1284719240