mratsim commited on
Commit
6c838bb
·
verified ·
1 Parent(s): faa64a6

Upload folder using huggingface_hub

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +1 -0
  2. README.md +724 -0
  3. args.json +467 -0
  4. chat_template.jinja +103 -0
  5. config.json +101 -0
  6. generation_config.json +13 -0
  7. model-00001-of-00043.safetensors +3 -0
  8. model-00002-of-00043.safetensors +3 -0
  9. model-00003-of-00043.safetensors +3 -0
  10. model-00004-of-00043.safetensors +3 -0
  11. model-00005-of-00043.safetensors +3 -0
  12. model-00006-of-00043.safetensors +3 -0
  13. model-00007-of-00043.safetensors +3 -0
  14. model-00008-of-00043.safetensors +3 -0
  15. model-00009-of-00043.safetensors +3 -0
  16. model-00010-of-00043.safetensors +3 -0
  17. model-00011-of-00043.safetensors +3 -0
  18. model-00012-of-00043.safetensors +3 -0
  19. model-00013-of-00043.safetensors +3 -0
  20. model-00014-of-00043.safetensors +3 -0
  21. model-00015-of-00043.safetensors +3 -0
  22. model-00016-of-00043.safetensors +3 -0
  23. model-00017-of-00043.safetensors +3 -0
  24. model-00018-of-00043.safetensors +3 -0
  25. model-00019-of-00043.safetensors +3 -0
  26. model-00020-of-00043.safetensors +3 -0
  27. model-00021-of-00043.safetensors +3 -0
  28. model-00022-of-00043.safetensors +3 -0
  29. model-00023-of-00043.safetensors +3 -0
  30. model-00024-of-00043.safetensors +3 -0
  31. model-00025-of-00043.safetensors +3 -0
  32. model-00026-of-00043.safetensors +3 -0
  33. model-00027-of-00043.safetensors +3 -0
  34. model-00028-of-00043.safetensors +3 -0
  35. model-00029-of-00043.safetensors +3 -0
  36. model-00030-of-00043.safetensors +3 -0
  37. model-00031-of-00043.safetensors +3 -0
  38. model-00032-of-00043.safetensors +3 -0
  39. model-00033-of-00043.safetensors +3 -0
  40. model-00034-of-00043.safetensors +3 -0
  41. model-00035-of-00043.safetensors +3 -0
  42. model-00036-of-00043.safetensors +3 -0
  43. model-00037-of-00043.safetensors +3 -0
  44. model-00038-of-00043.safetensors +3 -0
  45. model-00039-of-00043.safetensors +3 -0
  46. model-00040-of-00043.safetensors +3 -0
  47. model-00041-of-00043.safetensors +3 -0
  48. model-00042-of-00043.safetensors +3 -0
  49. model-00043-of-00043.safetensors +3 -0
  50. model.safetensors.index.json +0 -0
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* 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
 
 
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
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,724 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ base_model:
4
+ - zerofata/GLM-4.5-Iceblink-v2-106B-A12B
5
+ datasets:
6
+ - zerofata/Instruct-Anime
7
+ - zerofata/Roleplay-Anime-Characters
8
+ - zerofata/Instruct-Anime-CreativeWriting
9
+ - zerofata/Summaries-Anime-FandomPages
10
+ pipeline_tag: text-generation
11
+ tags:
12
+ - text adventure
13
+ - roleplay
14
+ - rpg
15
+ - creative writing
16
+ - conversational
17
+ - vllm
18
+ ---
19
+ # GLM-4.5-Iceblink-v2-106B-A12B (W8A8 FP8 with 2D-block quantization)
20
+
21
+ This repo contains GLM-4.5-Iceblink-v2-106B-A12B quantized with mixed FP8/BF16 precision following state-of-the-art Mixture-Of-Expert quantization.
22
+
23
+ - Original Model:
24
+ - [zerofata/GLM-4.5-Iceblink-v2-106B-A12B](https://huggingface.co/zerofata/GLM-4.5-Iceblink-v2-106B-A12B)
25
+
26
+ The model requires Ada (4000 series), Hopper (H100) or Blackwell (5000 series) GPUs for hardware FP8 support.
27
+
28
+ ## 📥 Usage & Running Instructions
29
+
30
+ The model was tested with vLLM + 2x RTX Pro 6000, here is a script suitable for such configuration with 131072 context length.
31
+
32
+ ### Recommendations
33
+
34
+ It is however recommended to use only 65K context to avoid significant degradation (https://fiction.live/stories/Fiction-liveBench-Sept-29-2025/oQdzQvKHw8JyXbN87)
35
+
36
+ The recommended sampler is "min-p" sampling, this sampling is available through
37
+ both the oldest Text completions API and the Chat completions API (and there is a new Response API),
38
+ however most LLM frontends only support modifying min-p when using Text completions.
39
+ You can however use `--override-generation-config "${SAMPLER_JSONCONFIG}"` to override the sampler (which is a merge of generation_config.json and vLLM defaults)
40
+
41
+ ### Running script
42
+
43
+ ```bash
44
+ # Model configuration (Mandatory)
45
+ MODEL="mratsim/GLM-4.5-Iceblink-v2-106B-A12B-FP8"
46
+ MODELNAME="GLM-4.5-Iceblink-v2"
47
+ GPU_UTIL=0.75
48
+
49
+ # Sampling configuration (Optional, if departing from `generation_config.json`)
50
+ # Note that top_p=0.95 seems to lead to a serious paragraph repetition issue
51
+ SAMPLER_OVERRIDE='{"temperature": 0.8, "min_p": 0.05, "top_p": 1}'
52
+
53
+ # Prevent memory fragmentation
54
+ export PYTORCH_ALLOC_CONF=expandable_segments:True,max_split_size_mb:512
55
+
56
+ # Prevent vLLM from using 100% CPU when idle (Very Recommended)
57
+ export VLLM_SLEEP_WHEN_IDLE=1
58
+
59
+ # Use FlashInfer backend (fastest, recommended, "instant" context reprocessing)
60
+ # export VLLM_ATTENTION_BACKEND=FLASHINFER
61
+
62
+ vllm serve "${MODEL}" \
63
+ --tensor-parallel 2 \
64
+ --served-model-name "${MODELNAME}" \
65
+ --gpu-memory-utilization ${GPU_UTIL} \
66
+ --override-generation-config "${SAMPLER_OVERRIDE}"
67
+ ```
68
+
69
+ > ℹ️ The FlashInfer backend may fail with an error similar to
70
+ > `Failed to allocate memory for batch_prefill_tmp_v with size XYZ and alignment 16 in AlignedAllocator`.
71
+ >
72
+ > A workaround is running a sed replacement command within vllm install to increase buffer space
73
+ > ```bash
74
+ > sed -i 's/FLASHINFER_WORKSPACE_BUFFER_SIZE = 256 \* 1024 \* 1024/FLASHINFER_WORKSPACE_BUFFER_SIZE = 768 \* 1024 \* 1024/g' vllm/v1/attention/backends/flashinfer.py
75
+ > ```
76
+ > This will be fixed by PR https://github.com/vllm-project/vllm/pull/25344 or https://github.com/vllm-project/vllm/pull/28269
77
+
78
+ ## 🔬 Quantization method
79
+
80
+ The llmcompressor library was used with the following recipe:
81
+
82
+ ```
83
+ scheme=QuantizationScheme(
84
+ targets=["Linear"],
85
+ weights=QuantizationArgs(
86
+ num_bits=8,
87
+ type=QuantizationType.FLOAT,
88
+ dynamic=False,
89
+ symmetric=True,
90
+ strategy=QuantizationStrategy.BLOCK,
91
+ block_structure=[32, 32],
92
+ ),
93
+ input_activations=QuantizationArgs(
94
+ num_bits=8,
95
+ type=QuantizationType.FLOAT,
96
+ strategy=QuantizationStrategy.GROUP,
97
+ symmetric=True,
98
+ dynamic=True,
99
+ observer=None,
100
+ group_size=128,
101
+ ),
102
+ ),
103
+ ignore=[
104
+ "lm_head",
105
+ "model.embed_tokens",
106
+ "model.norm",
107
+ "re:.*input_layernorm$",
108
+ "re:.*post_attention_layernorm$",
109
+ "re:.*self_attn.*",
110
+ "re:.*shared_experts.*",
111
+ "re:.*mlp\\.gate$", # MoE router
112
+ "re:model.layers.0.*", # Keep first block, (GLM-4.5-Air first_k_dense_replace = 1), also weird loading here https://github.com/vllm-project/vllm/blob/v0.11.0/vllm/model_executor/models/glm4_moe.py#L525-L547
113
+ "re:model.layers.46.*" # MTP layer (Multi-token prediction, cannot be loaded by huggingface/transformers)
114
+ ],
115
+ ```
116
+
117
+ FP8 quantization does not require calibration
118
+
119
+ ### Deep-dive
120
+
121
+ Quantization should be focused on Linear layer (also called Dense or Fully-Connected layers i.e. MatMu+Bias)
122
+ In particular quantizing LayerNorm/RMSnorm layer is strongly discouraged, see [1]
123
+ > LayerNorm in Quantization. Kovaleva et al. (2021); Wei et al. (2022) find that outliers in the
124
+ > LayerNorm parameters of BERT (Devlin et al., 2019) cause difficulties in model compression.
125
+ > Given the importance of LayerNorm, all the quantization methods we discuss above leave LayerNorm unquantized.
126
+
127
+ _Note: Experts layers might not be stored as a `Linear` layer, meaning they might be skipped if using `llmcompressor` with a `Linear` target._
128
+
129
+ Some layers have a higher impact on LLM performance.
130
+ According to [2], spending more bits in attention layers results in large gain compared to spending them in FFN layers.
131
+ According to [3] on 2-bit quantization:
132
+ - quantizing expert FFN layers do not seriously impact model quality
133
+ - quantizing cross-attention has some impact
134
+ - quantizing self-attention has a large impact
135
+ - quantizing dense FFN has a very significant impact
136
+
137
+ Hence to preserve model quality we choose not to quantize dense FFN layers (i.e. shared experts) and self-attention layers.
138
+
139
+ We notice that:
140
+ - official MXFP4 weights of gpt-oss-120b from OpenAI keep self-attention in BF16:
141
+ - https://huggingface.co/openai/gpt-oss-120b/blob/main/model.safetensors.index.json
142
+ - NVFP4 weights of DeepSeek-R1 quantized by Nvidia also keep self-attention in BF16:
143
+ - https://huggingface.co/nvidia/DeepSeek-R1-0528-FP4/blob/main/model.safetensors.index.json
144
+
145
+ According to [2], giving more bits to the first `k` blocks have a significantly higher impact on model quality than for the same last `k` blocks.
146
+ In this case, we keep the first layer unquantized as `"first_k_dense_replace": 1` in [config.json](config.json)
147
+
148
+ ### References
149
+
150
+ 1. Why Do Some Inputs Break Low-Bit LLM Quantization? (2025)\
151
+ Ting-Yun Chang, Muru Zhang, Jesse Thomason, Robin Jia\
152
+ https://arxiv.org/pdf/2506.12044
153
+
154
+ 2. Examining Post-Training Quantization for Mixture-of-Experts: A Benchmark (2024)\
155
+ Pingzhi Li, Xiaolong Jin, Yu Cheng, Tianlong Chen\
156
+ https://arxiv.org/pdf/2406.08155v1
157
+
158
+ 3. Mixture of Quantized Experts (MoQE): Complementary Effect of Low-bit Quantization and Robustness (2023)\
159
+ Young Jin Kim, Raffy Fahim, Hany Hassan Awadalla\
160
+ https://arxiv.org/pdf/2310.02410
161
+
162
+ ***
163
+
164
+ <style>
165
+ .container {
166
+ --primary-accent: #87CEEB;
167
+ --secondary-accent: #B0E5F5;
168
+ --tertiary-accent: #5FA8D3;
169
+ --ice-accent: #E0F4FF;
170
+ --silver-accent: #C8D8E4;
171
+ --glow-primary: rgba(135, 206, 235, 0.6);
172
+ --glow-secondary: rgba(176, 229, 245, 0.7);
173
+
174
+ --bg-main: #0a1628;
175
+ --bg-container: #0f1e35;
176
+ --bg-card: rgba(15, 30, 53, 0.95);
177
+ --bg-elevated: #162840;
178
+
179
+ --text-main: #E8F4F8;
180
+ --text-muted: #9BC4E2;
181
+ --text-bright: #FFFFFF;
182
+ --white: #FFFFFF;
183
+ --border-color: #2B4F76;
184
+ --border-ice: #B0E5F5;
185
+
186
+ --font-title: 'Inter', sans-serif;
187
+ --font-body: 'Source Sans Pro', sans-serif;
188
+ --font-code: 'JetBrains Mono', monospace;
189
+
190
+ font-family: var(--font-body);
191
+ color: var(--text-main);
192
+ line-height: 1.6;
193
+ font-weight: 400;
194
+
195
+ max-width: 1100px;
196
+ margin: 20px auto;
197
+ padding: 60px;
198
+ background:
199
+ linear-gradient(135deg, #0a1628 0%, #0f1e35 50%, #0a1628 100%);
200
+ min-height: calc(100vh - 40px);
201
+ position: relative;
202
+
203
+ border: 1px solid var(--border-ice);
204
+ box-shadow:
205
+ 0 0 0 3px var(--border-color),
206
+ 0 0 0 5px var(--border-ice),
207
+ 0 0 0 8px var(--border-color),
208
+ 0 0 60px rgba(135, 206, 235, 0.4),
209
+ inset 0 0 100px rgba(135, 206, 235, 0.15);
210
+ }
211
+
212
+ .container .title-container {
213
+ background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
214
+ margin-bottom: 50px;
215
+ border: 2px solid var(--border-ice);
216
+ padding: 50px;
217
+ text-align: center;
218
+ position: relative;
219
+ box-shadow:
220
+ 0 0 0 1px var(--border-color),
221
+ 0 0 0 4px var(--border-ice),
222
+ 0 0 0 6px var(--border-color),
223
+ 0 0 40px var(--glow-primary),
224
+ inset 0 0 60px rgba(135, 206, 235, 0.2);
225
+ overflow: visible;
226
+ }
227
+
228
+ .container .title-container::before {
229
+ content: '';
230
+ position: absolute;
231
+ top: 0;
232
+ left: 0;
233
+ right: 0;
234
+ height: 3px;
235
+ background: linear-gradient(90deg, transparent, var(--ice-accent), transparent);
236
+ box-shadow: 0 0 10px var(--ice-accent);
237
+ }
238
+
239
+ .container .title-container::after {
240
+ content: '';
241
+ position: absolute;
242
+ bottom: 0;
243
+ left: 0;
244
+ right: 0;
245
+ height: 3px;
246
+ background: linear-gradient(90deg, transparent, var(--ice-accent), transparent);
247
+ box-shadow: 0 0 10px var(--ice-accent);
248
+ }
249
+
250
+
251
+
252
+ .container .title-container .title-wrapper {
253
+ position: relative;
254
+ z-index: 2;
255
+ }
256
+
257
+ .container .title-main {
258
+ color: var(--text-bright);
259
+ font-size: 3rem;
260
+ font-weight: 900;
261
+ margin: 0;
262
+ letter-spacing: 4px;
263
+ display: block;
264
+ text-transform: uppercase;
265
+ background: linear-gradient(90deg, var(--ice-accent), var(--text-bright), var(--ice-accent));
266
+ background-clip: text;
267
+ -webkit-background-clip: text;
268
+ -webkit-text-fill-color: transparent;
269
+ font-family: var(--font-title);
270
+ text-shadow:
271
+ 0 0 30px var(--ice-accent),
272
+ 0 0 60px rgba(176, 229, 245, 0.5),
273
+ 0 4px 8px rgba(135, 206, 235, 0.6);
274
+ position: relative;
275
+ }
276
+
277
+ .container .lemonade-text {
278
+ background: linear-gradient(135deg, var(--silver-accent), var(--ice-accent));
279
+ background-clip: text;
280
+ -webkit-background-clip: text;
281
+ -webkit-text-fill-color: transparent;
282
+ }
283
+
284
+ .container .version-indicator {
285
+ color: var(--text-muted);
286
+ font-size: 0.85rem;
287
+ font-weight: 600;
288
+ letter-spacing: 3px;
289
+ margin-top: 15px;
290
+ text-transform: uppercase;
291
+ font-family: var(--font-title);
292
+ opacity: 0.7;
293
+ }
294
+
295
+ .container .title-subtitle {
296
+ padding: 20px;
297
+ margin-top: 25px;
298
+ border: 1px solid var(--border-ice);
299
+ box-shadow: 0 0 20px rgba(135, 206, 235, 0.3);
300
+ }
301
+
302
+ .container .subtitle-text {
303
+ color: var(--text-muted);
304
+ font-size: 1.3rem;
305
+ font-family: var(--font-body);
306
+ font-style: italic;
307
+ font-weight: 400;
308
+ letter-spacing: 3px;
309
+ text-transform: uppercase;
310
+ }
311
+
312
+ .container img {
313
+ max-width: 100%;
314
+ border: 3px solid var(--border-ice);
315
+ margin-bottom: 40px;
316
+ box-shadow:
317
+ 0 0 0 1px var(--border-color),
318
+ 0 0 0 5px var(--border-ice),
319
+ 0 12px 24px rgba(135, 206, 235, 0.3);
320
+ }
321
+
322
+ .container .section-container {
323
+ margin-bottom: 40px;
324
+ padding: 40px;
325
+ background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
326
+ border: 2px solid var(--border-ice);
327
+ box-shadow:
328
+ 0 0 0 1px var(--border-color),
329
+ 0 0 0 5px var(--border-ice),
330
+ 0 8px 24px rgba(135, 206, 235, 0.3),
331
+ inset 0 0 40px rgba(135, 206, 235, 0.1);
332
+ }
333
+ .container .section-container:last-of-type {
334
+ margin-bottom: 0;
335
+ }
336
+
337
+ .container .section-header {
338
+ display: flex;
339
+ align-items: center;
340
+ padding: 20px;
341
+ border: 1px solid var(--border-ice);
342
+ margin-bottom: 30px;
343
+ background: rgba(43, 79, 118, 0.2);
344
+ box-shadow: 0 0 20px rgba(135, 206, 235, 0.2);
345
+ }
346
+
347
+ .container .section-title {
348
+ font-family: var(--font-title);
349
+ background: linear-gradient(90deg, var(--ice-accent), var(--text-bright), var(--ice-accent));
350
+ background-clip: text;
351
+ -webkit-background-clip: text;
352
+ -webkit-text-fill-color: transparent;
353
+ font-size: 1.8rem;
354
+ margin: 0 !important;
355
+ padding: 0 !important;
356
+ letter-spacing: 4px;
357
+ font-weight: 800;
358
+ text-transform: uppercase;
359
+ border: none !important;
360
+ display: inline-block;
361
+ text-shadow: 0 0 20px var(--ice-accent);
362
+ }
363
+
364
+ .container .section-content {
365
+ padding: 0;
366
+ }
367
+
368
+ .container .subheading {
369
+ color: var(--text-bright);
370
+ font-size: 1.4rem;
371
+ margin-top: 30px;
372
+ margin-bottom: 20px;
373
+ font-weight: 700;
374
+ display: block;
375
+ text-transform: uppercase;
376
+ letter-spacing: 3px;
377
+ font-family: var(--font-title);
378
+ border-bottom: 2px solid var(--border-ice);
379
+ padding-bottom: 12px;
380
+ text-shadow: 0 0 15px var(--ice-accent);
381
+ }
382
+
383
+ .container .data-box {
384
+ background: linear-gradient(135deg, var(--bg-card), rgba(22, 40, 64, 0.8));
385
+ padding: 25px;
386
+ border: 2px solid var(--border-ice);
387
+ border-left: 5px solid var(--primary-accent);
388
+ margin-bottom: 25px;
389
+ box-shadow:
390
+ 0 0 20px rgba(135, 206, 235, 0.3),
391
+ inset 0 0 20px rgba(135, 206, 235, 0.1);
392
+ font-size: 1rem;
393
+ }
394
+
395
+ .container .data-row {
396
+ display: flex;
397
+ align-items: center;
398
+ margin-bottom: 12px;
399
+ padding: 10px 0;
400
+ border-bottom: 1px solid rgba(176, 229, 245, 0.2);
401
+ }
402
+
403
+ .container .data-row:last-child {
404
+ margin-bottom: 0;
405
+ }
406
+
407
+ .container .data-arrow {
408
+ color: var(--ice-accent);
409
+ font-weight: bold;
410
+ margin-right: 15px;
411
+ font-family: var(--font-code);
412
+ font-size: 1.2rem;
413
+ text-shadow: 0 0 10px var(--ice-accent);
414
+ }
415
+
416
+ .container .data-label {
417
+ color: var(--text-muted);
418
+ font-weight: 700;
419
+ font-family: var(--font-body);
420
+ margin-right: 15px;
421
+ min-width: 120px;
422
+ text-transform: uppercase;
423
+ letter-spacing: 1px;
424
+ }
425
+
426
+ .container a {
427
+ color: var(--text-bright);
428
+ text-decoration: none;
429
+ font-weight: 600;
430
+ transition: all .2s;
431
+ }
432
+
433
+ .container .data-row a {
434
+ border-bottom: 1px dotted var(--ice-accent);
435
+ }
436
+
437
+ .container a:hover {
438
+ color: var(--ice-accent);
439
+ text-shadow: 0 0 10px var(--ice-accent);
440
+ }
441
+
442
+ .container .data-row a:hover {
443
+ border-bottom-style: solid;
444
+ }
445
+
446
+ .container .dropdown-container {
447
+ margin-top: 30px;
448
+ }
449
+
450
+ .container .dropdown-summary {
451
+ cursor: pointer;
452
+ padding: 15px 20px;
453
+ color: var(--text-muted);
454
+ font-size: 1.2rem;
455
+ font-weight: 700;
456
+ text-transform: uppercase;
457
+ font-family: var(--font-title);
458
+ letter-spacing: 2px;
459
+ list-style: none;
460
+ transition: all 0.2s ease;
461
+ border: 1px solid var(--border-ice);
462
+ background: rgba(43, 79, 118, 0.2);
463
+ box-shadow: 0 0 15px rgba(135, 206, 235, 0.2);
464
+ }
465
+ .container .dropdown-summary:hover {
466
+ color: var(--ice-accent);
467
+ background: rgba(43, 79, 118, 0.3);
468
+ box-shadow: 0 0 25px rgba(135, 206, 235, 0.3);
469
+ }
470
+
471
+ .container .dropdown-summary::-webkit-details-marker {
472
+ display: none;
473
+ }
474
+
475
+ .container .dropdown-arrow {
476
+ color: var(--ice-accent);
477
+ margin-right: 15px;
478
+ transition: transform 0.2s ease;
479
+ text-shadow: 0 0 10px var(--ice-accent);
480
+ }
481
+
482
+ .container details[open] .dropdown-arrow {
483
+ transform: rotate(90deg);
484
+ }
485
+
486
+ .container .dropdown-content {
487
+ margin-top: 20px;
488
+ padding: 20px 15px;
489
+ background: linear-gradient(135deg, var(--bg-card), rgba(22, 40, 64, 0.9));
490
+ border: 2px solid var(--border-ice);
491
+ box-shadow:
492
+ 0 0 20px rgba(135, 206, 235, 0.3),
493
+ inset 0 0 30px rgba(135, 206, 235, 0.1);
494
+ }
495
+
496
+ .container .config-title {
497
+ color: var(--text-bright);
498
+ font-size: 1.1rem;
499
+ margin-bottom: 10px;
500
+ font-family: var(--font-body);
501
+ text-transform: uppercase;
502
+ letter-spacing: 2px;
503
+ font-weight: 700;
504
+ text-shadow: 0 0 10px var(--ice-accent);
505
+ }
506
+
507
+ .container pre {
508
+ background: #050a14;
509
+ padding: 8px 16px;
510
+ margin: 0;
511
+ border: 2px solid var(--border-ice);
512
+ white-space: pre;
513
+ overflow-x: auto;
514
+ color: var(--text-main);
515
+ box-shadow:
516
+ 0 0 20px rgba(135, 206, 235, 0.2),
517
+ inset 0 0 20px rgba(135, 206, 235, 0.15);
518
+ }
519
+
520
+ .container pre code {
521
+ background: none;
522
+ color: inherit;
523
+ padding: 0;
524
+ margin: 0;
525
+ display: block;
526
+ border: none;
527
+ outline: none;
528
+ }
529
+
530
+ .container code {
531
+ font-family: var(--font-code);
532
+ color: var(--ice-accent);
533
+ background: rgba(176, 229, 245, 0.15);
534
+ padding: 4px 8px;
535
+ border: 1px solid rgba(135, 206, 235, 0.3);
536
+ }
537
+ </style>
538
+ <html lang="en">
539
+ <head>
540
+ <meta charset="UTF-8">
541
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
542
+ <title>Iceblink</title>
543
+ <link rel="preconnect" href="https://fonts.googleapis.com">
544
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
545
+ <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&family=Source+Sans+Pro:ital,wght@0,400;0,600;1,400&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
546
+ </head>
547
+ <body>
548
+
549
+ <div class="container">
550
+ <div class="title-container">
551
+ <div class="glitchy-overlay"></div>
552
+ <div class="title-wrapper">
553
+ <h1 class="title-main">
554
+ <span class="title-prefix">ICEBLINK</span>
555
+ </h1>
556
+ <div class="version-indicator">VERSION 2</div>
557
+ </div>
558
+ </div>
559
+
560
+ ![image](https://cdn-uploads.huggingface.co/production/uploads/65b19c6c638328850e12d38c/zA2QsjdJNOC-62-bZiOun.png)
561
+
562
+ <div class="section-container">
563
+ <div class="section-header">
564
+ <div class="section-indicator"></div>
565
+ <h2 class="section-title">Overview</h2>
566
+ </div>
567
+ <div class="section-content">
568
+ <p></p>
569
+ <p>Another re-attempt at GLM 4.5 Air. This time using a different training framework, some updated data and better hyperparameters.</p>
570
+ <p>This model is a creative writing and RP model. It's pretty verbose. The intent is to keep the behavior of the original model, but to improve writing, dialogue & creativity.</p>
571
+ <p>Compared to the original Iceblink, the effect on this one is more pronounced, with hopefully minimal impact on the intelligence.</p>
572
+ </div>
573
+ </div>
574
+
575
+ <div class="section-container">
576
+ <div class="section-header">
577
+ <div class="section-indicator"></div>
578
+ <h2 class="section-title">SillyTavern Settings</h2>
579
+ </div>
580
+ <div class="section-content">
581
+ <h3 class="subheading">Recommended Roleplay Format</h3>
582
+ <div class="data-box">
583
+ <div class="data-row">
584
+ <span class="data-arrow">></span>
585
+ <span class="data-label">Actions:</span>
586
+ <span>In plaintext</span>
587
+ </div>
588
+ <div class="data-row">
589
+ <span class="data-arrow">></span>
590
+ <span class="data-label">Dialogue:</span>
591
+ <span>"In quotes"</span>
592
+ </div>
593
+ <div class="data-row">
594
+ <span class="data-arrow">></span>
595
+ <span class="data-label">Thoughts:</span>
596
+ <span>*In asterisks*</span>
597
+ </div>
598
+ </div>
599
+ <h3 class="subheading">Recommended Samplers</h3>
600
+ <div class="data-box">
601
+ <div class="data-row">
602
+ <span class="data-arrow">></span>
603
+ <span class="data-label">Temp:</span>
604
+ <span>0.8 - 0.9</span>
605
+ </div>
606
+ <div class="data-row">
607
+ <span class="data-arrow">></span>
608
+ <span class="data-label">MinP:</span>
609
+ <span>0.05</span>
610
+ </div>
611
+ <div class="data-row">
612
+ <span class="data-arrow">></span>
613
+ <span class="data-label">TopP:</span>
614
+ <span>0.95 - 1.00</span>
615
+ </div>
616
+ </div>
617
+ <h3 class="subheading">Instruct</h3>
618
+ <div class="data-box">
619
+ <p style="margin: 0;">GLM4.5 (no thinking): <a href="https://huggingface.co/zerofata/GLM-4.5-Iceblink-106B-A12B/raw/main/GLM45-NoThink-SillyTavern-Preset.json">SillyTavern Preset</a></p>
620
+ </div>
621
+ </div>
622
+ </div>
623
+
624
+ <div class="section-container">
625
+ <div class="section-header">
626
+ <div class="section-indicator"></div>
627
+ <h2 class="section-title">Quantizations</h2>
628
+ </div>
629
+ <div class="section-content">
630
+ <div style="margin-bottom: 20px;">
631
+ <h3 class="subheading">GGUF</h3>
632
+ <div class="data-box">
633
+ <div class="data-row">
634
+ <span class="data-arrow">></span>
635
+ <a href="https://huggingface.co/ddh0/Iceblink-v3-SFT-3-GGUF">iMatrix (ddh0)</a>
636
+ </div>
637
+ </div>
638
+ </div>
639
+ </div>
640
+ </div>
641
+
642
+ <div class="section-container">
643
+ <div class="section-header">
644
+ <div class="section-indicator"></div>
645
+ <h2 class="section-title">Creation Process</h2>
646
+ </div>
647
+ <div class="section-content">
648
+ <p>Creation Process: SFT</p>
649
+ <p>SFT on approx 13 million tokens, SFW / NSFW RP, stories, creative instruct & chat data. Some of the SFW datasets are public and can be found in the model datasets list.</p>
650
+ <p>I've switched over from Axolotl to MS-Swift w/ Megatron to train MoE models now. There's a roughly 5-10x speedup in training the models, thanks to escaping the naive MoE implementation in TRL. The training time for this run took only 40 minutes, excluding environment setup time.</p>
651
+ <p>A low LR for GLM Air appears to be king. Going any higher, I've found it extremely easy to begin overcooking the model.</p>
652
+ <div class="dropdown-container">
653
+ <details>
654
+ <summary class="dropdown-summary">
655
+ <span class="dropdown-arrow">></span>
656
+ MS-Swift config
657
+ </summary>
658
+ <div class="dropdown-content">
659
+ <p>Not optimized for cost / performance efficiency, YMMV.</p>
660
+ <div class="config-title">SFT (8*H200)</div>
661
+ <pre><code>PYTORCH_CUDA_ALLOC_CONF='expandable_segments:True' \
662
+ NPROC_PER_NODE=8 \
663
+ WANDB_API_KEY=wandb_key \
664
+ CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 \
665
+ megatron sft \
666
+ --load '/workspace/glm-4.5-air-mcore' \
667
+ --dataset '/workspace/joined_dataset_cleaned_modified.jsonl' \
668
+ --load_from_cache_file true \
669
+ --train_type lora \
670
+ --lora_rank 256 \
671
+ --lora_alpha 16 \
672
+ --use-rslora true \
673
+ --target_modules all-linear \
674
+ --split_dataset_ratio 0.01 \
675
+ --moe_permute_fusion true \
676
+ --tensor_model_parallel_size 8 \
677
+ --expert_tensor_parallel_size 1 \
678
+ --expert_model_parallel_size 8 \
679
+ --moe_grouped_gemm true \
680
+ --moe_shared_expert_overlap true \
681
+ --moe_aux_loss_coeff 6e-5 \
682
+ --micro_batch_size 4 \
683
+ --global_batch_size 32 \
684
+ --recompute_granularity full \
685
+ --recompute_method uniform \
686
+ --recompute_num_layers 1 \
687
+ --max_epochs 2 \
688
+ --cross_entropy_loss_fusion true \
689
+ --lr 6e-6 \
690
+ --lr_warmup_fraction 0.05 \
691
+ --min_lr 6e-7 \
692
+ --save megatron_output/Iceblink-v3-SFT-3 \
693
+ --eval_interval 20 \
694
+ --save_interval 25 \
695
+ --finetune true \
696
+ --packing true \
697
+ --max_length 10280 \
698
+ --num_workers 8 \
699
+ --dataset_num_proc 8 \
700
+ --no_save_optim true \
701
+ --no_save_rng true \
702
+ --sequence_parallel true \
703
+ --wandb_project Megatron-Air-SFT \
704
+ --wandb_exp_name Iceblink-v3-SFT-3 \
705
+ --attention_backend flash</code></pre>
706
+ </div>
707
+ </details>
708
+ </div>
709
+ </div>
710
+ </div>
711
+
712
+ <div class="section-container">
713
+ <div class="section-header">
714
+ <div class="section-indicator"></div>
715
+ <h2 class="section-title">Special Thanks</h2>
716
+ </div>
717
+ <div class="section-content">
718
+ <p>A shoutout to the people in BeaverAI discord that helped me test this model and my intermediate versions.</p>
719
+ <p>ddh0 (Madison), Ambius, Dysfunctional & my dude.</p>
720
+ </div>
721
+ </div>
722
+ </div>
723
+ </body>
724
+ </html>
args.json ADDED
@@ -0,0 +1,467 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "use_ray": false,
3
+ "ray_exp_name": null,
4
+ "device_groups": null,
5
+ "model": "zai-org/GLM-4.5-Air",
6
+ "model_type": "glm4_5",
7
+ "model_revision": null,
8
+ "task_type": "causal_lm",
9
+ "torch_dtype": "bfloat16",
10
+ "attn_impl": null,
11
+ "new_special_tokens": [],
12
+ "num_labels": null,
13
+ "problem_type": null,
14
+ "rope_scaling": null,
15
+ "device_map": null,
16
+ "max_memory": {},
17
+ "max_model_len": null,
18
+ "local_repo_path": null,
19
+ "init_strategy": null,
20
+ "template": "glm4_5",
21
+ "system": null,
22
+ "max_length": 10280,
23
+ "truncation_strategy": "delete",
24
+ "max_pixels": null,
25
+ "agent_template": null,
26
+ "norm_bbox": null,
27
+ "use_chat_template": true,
28
+ "padding_free": true,
29
+ "padding_side": "right",
30
+ "loss_scale": "default",
31
+ "sequence_parallel_size": 1,
32
+ "response_prefix": null,
33
+ "template_backend": "swift",
34
+ "dataset": [
35
+ "/workspace/joined_dataset_cleaned_modified.jsonl"
36
+ ],
37
+ "val_dataset": [],
38
+ "split_dataset_ratio": 0.01,
39
+ "data_seed": 42,
40
+ "dataset_num_proc": 8,
41
+ "load_from_cache_file": true,
42
+ "dataset_shuffle": true,
43
+ "val_dataset_shuffle": false,
44
+ "streaming": false,
45
+ "interleave_prob": null,
46
+ "stopping_strategy": "first_exhausted",
47
+ "shuffle_buffer_size": 1000,
48
+ "download_mode": "reuse_dataset_if_exists",
49
+ "columns": {},
50
+ "strict": false,
51
+ "remove_unused_columns": true,
52
+ "model_name": null,
53
+ "model_author": null,
54
+ "custom_dataset_info": [],
55
+ "quant_method": null,
56
+ "quant_bits": null,
57
+ "hqq_axis": null,
58
+ "bnb_4bit_compute_dtype": "bfloat16",
59
+ "bnb_4bit_quant_type": "nf4",
60
+ "bnb_4bit_use_double_quant": true,
61
+ "bnb_4bit_quant_storage": null,
62
+ "max_new_tokens": null,
63
+ "temperature": null,
64
+ "top_k": null,
65
+ "top_p": null,
66
+ "repetition_penalty": null,
67
+ "num_beams": 1,
68
+ "stream": false,
69
+ "stop_words": [],
70
+ "logprobs": false,
71
+ "top_logprobs": null,
72
+ "ckpt_dir": "/workspace/glm-4.5-air-mcore",
73
+ "lora_modules": [],
74
+ "tuner_backend": "peft",
75
+ "train_type": "lora",
76
+ "adapters": [],
77
+ "external_plugins": [],
78
+ "seed": 42,
79
+ "model_kwargs": {},
80
+ "load_args": false,
81
+ "load_data_args": false,
82
+ "packing": true,
83
+ "packing_length": 10280,
84
+ "lazy_tokenize": false,
85
+ "cached_dataset": [],
86
+ "custom_register_path": [],
87
+ "use_hf": false,
88
+ "hub_token": null,
89
+ "ddp_timeout": 18000000,
90
+ "ddp_backend": null,
91
+ "ignore_args_error": false,
92
+ "use_swift_lora": false,
93
+ "freeze_llm": false,
94
+ "freeze_vit": true,
95
+ "freeze_aligner": true,
96
+ "freeze_parameters": [],
97
+ "freeze_parameters_regex": null,
98
+ "freeze_parameters_ratio": 0.0,
99
+ "trainable_parameters": [],
100
+ "trainable_parameters_regex": null,
101
+ "adapter_load": null,
102
+ "target_modules": [
103
+ "all-linear"
104
+ ],
105
+ "target_regex": null,
106
+ "modules_to_save": [],
107
+ "lora_rank": 256,
108
+ "lora_alpha": 16,
109
+ "lora_dropout": 0.05,
110
+ "lora_bias": "none",
111
+ "lora_dtype": null,
112
+ "use_rslora": true,
113
+ "rlhf_type": null,
114
+ "ref_load": null,
115
+ "ref_adapter_load": null,
116
+ "beta": 0.1,
117
+ "rpo_alpha": null,
118
+ "reference_free": false,
119
+ "label_smoothing": 0.0,
120
+ "f_divergence_type": "reverse_kl",
121
+ "loss_type": null,
122
+ "desirable_weight": 1.0,
123
+ "undesirable_weight": 1.0,
124
+ "calculate_KL": null,
125
+ "center_rewards_coefficient": null,
126
+ "padded_vocab_size": 151552,
127
+ "initialize_embedding": false,
128
+ "mlp_padding_free": false,
129
+ "dataloader_persistent_workers": true,
130
+ "dataloader_prefetch_factor": 10,
131
+ "architectures": "Glm4MoeForCausalLM",
132
+ "llm_architectures": null,
133
+ "max_epochs": 2,
134
+ "enable_dft_loss": false,
135
+ "enable_channel_loss": false,
136
+ "original_max_position_embeddings": null,
137
+ "partial_rotary_factor": 0.5,
138
+ "use_shared_expert_gate": false,
139
+ "vit_gradient_checkpointing": true,
140
+ "gradient_checkpointing_kwargs": null,
141
+ "linear_num_value_heads": null,
142
+ "linear_num_key_heads": null,
143
+ "linear_key_head_dim": null,
144
+ "linear_value_head_dim": null,
145
+ "linear_conv_kernel_dim": null,
146
+ "layer_types": null,
147
+ "mrope_interleaved": false,
148
+ "micro_batch_size": 4,
149
+ "global_batch_size": 32,
150
+ "recompute_granularity": "full",
151
+ "recompute_method": "uniform",
152
+ "recompute_num_layers": 1,
153
+ "recompute_modules": [
154
+ "core_attn"
155
+ ],
156
+ "use_cpu_initialization": false,
157
+ "deterministic_mode": false,
158
+ "train_iters": null,
159
+ "log_interval": 5,
160
+ "tensorboard_dir": "/workspace/megatron_output/Iceblink-v3-SFT-3/v0-20251101-214719/runs",
161
+ "no_masked_softmax_fusion": false,
162
+ "no_bias_dropout_fusion": false,
163
+ "no_bias_swiglu_fusion": false,
164
+ "no_rope_fusion": false,
165
+ "no_gradient_accumulation_fusion": false,
166
+ "cross_entropy_loss_fusion": true,
167
+ "cross_entropy_fusion_impl": "native",
168
+ "calculate_per_token_loss": true,
169
+ "use_flash_attn": false,
170
+ "attention_backend": "flash",
171
+ "optimizer": "adam",
172
+ "optimizer_cpu_offload": false,
173
+ "optimizer_offload_fraction": 1.0,
174
+ "use_precision_aware_optimizer": false,
175
+ "main_grads_dtype": "fp32",
176
+ "main_params_dtype": "fp32",
177
+ "exp_avg_dtype": "fp32",
178
+ "exp_avg_sq_dtype": "fp32",
179
+ "dataloader_type": "cyclic",
180
+ "manual_gc": false,
181
+ "manual_gc_interval": 0,
182
+ "lr": 6e-06,
183
+ "lr_decay_style": "cosine",
184
+ "lr_decay_iters": null,
185
+ "lr_warmup_iters": 0,
186
+ "lr_warmup_fraction": 0.05,
187
+ "min_lr": 6e-07,
188
+ "weight_decay": 0.1,
189
+ "clip_grad": 1.0,
190
+ "adam_beta1": 0.9,
191
+ "adam_beta2": 0.95,
192
+ "adam_eps": 1e-08,
193
+ "sgd_momentum": 0.9,
194
+ "save": "/workspace/megatron_output/Iceblink-v3-SFT-3/v0-20251101-214719",
195
+ "save_interval": 25,
196
+ "save_retain_interval": null,
197
+ "no_save_optim": true,
198
+ "no_save_rng": true,
199
+ "load": "/workspace/glm-4.5-air-mcore",
200
+ "no_load_optim": false,
201
+ "no_load_rng": false,
202
+ "finetune": true,
203
+ "ckpt_format": "torch_dist",
204
+ "no_initialization": true,
205
+ "auto_detect_ckpt_format": true,
206
+ "exit_on_missing_checkpoint": true,
207
+ "async_save": false,
208
+ "use_persistent_ckpt_worker": false,
209
+ "ckpt_fully_parallel_load": false,
210
+ "ckpt_assume_constant_structure": false,
211
+ "distributed_backend": "nccl",
212
+ "local_rank": 0,
213
+ "use_distributed_optimizer": true,
214
+ "tensor_model_parallel_size": 8,
215
+ "pipeline_model_parallel_size": 1,
216
+ "decoder_first_pipeline_num_layers": null,
217
+ "decoder_last_pipeline_num_layers": null,
218
+ "sequence_parallel": true,
219
+ "context_parallel_size": 1,
220
+ "tp_comm_overlap": false,
221
+ "overlap_grad_reduce": false,
222
+ "overlap_param_gather": false,
223
+ "distributed_timeout_minutes": 300000,
224
+ "num_layers_per_virtual_pipeline_stage": null,
225
+ "num_virtual_stages_per_pipeline_rank": null,
226
+ "microbatch_group_size_per_virtual_pipeline_stage": null,
227
+ "pipeline_model_parallel_layout": null,
228
+ "num_layers": 46,
229
+ "hidden_size": 4096,
230
+ "ffn_hidden_size": 10944,
231
+ "num_attention_heads": 96,
232
+ "group_query_attention": true,
233
+ "num_query_groups": 8,
234
+ "max_position_embeddings": 131072,
235
+ "position_embedding_type": "rope",
236
+ "mrope_section": null,
237
+ "rotary_base": 1000000,
238
+ "rotary_percent": 1.0,
239
+ "rotary_interleaved": false,
240
+ "normalization": "RMSNorm",
241
+ "norm_epsilon": 1e-05,
242
+ "swiglu": true,
243
+ "untie_embeddings_and_output_weights": true,
244
+ "disable_bias_linear": true,
245
+ "add_qkv_bias": true,
246
+ "attention_dropout": 0.0,
247
+ "hidden_dropout": 0.0,
248
+ "kv_channels": 128,
249
+ "qk_layernorm": false,
250
+ "transformer_impl": "transformer_engine",
251
+ "num_experts": 128,
252
+ "moe_layer_freq": "[0]*1+[1]*45",
253
+ "moe_ffn_hidden_size": 1408,
254
+ "moe_shared_expert_intermediate_size": 1408,
255
+ "moe_router_topk": 8,
256
+ "moe_router_pre_softmax": false,
257
+ "moe_router_dtype": "fp32",
258
+ "moe_router_score_function": "sigmoid",
259
+ "moe_router_bias_update_rate": 0.001,
260
+ "moe_router_enable_expert_bias": true,
261
+ "moe_router_topk_scaling_factor": 1.0,
262
+ "moe_router_load_balancing_type": "aux_loss",
263
+ "expert_model_parallel_size": 8,
264
+ "expert_tensor_parallel_size": 1,
265
+ "moe_token_dispatcher_type": null,
266
+ "moe_enable_deepep": false,
267
+ "moe_grouped_gemm": true,
268
+ "moe_permute_fusion": true,
269
+ "moe_aux_loss_coeff": 6e-05,
270
+ "moe_z_loss_coeff": null,
271
+ "moe_shared_expert_overlap": true,
272
+ "moe_layer_recompute": false,
273
+ "moe_expert_capacity_factor": null,
274
+ "moe_pad_expert_input_to_capacity": false,
275
+ "moe_token_drop_policy": null,
276
+ "multi_latent_attention": false,
277
+ "q_lora_rank": null,
278
+ "kv_lora_rank": 32,
279
+ "qk_head_dim": 128,
280
+ "qk_pos_emb_head_dim": 64,
281
+ "fp8_format": null,
282
+ "fp8_recipe": "delayed",
283
+ "fp8_amax_history_len": 1024,
284
+ "fp8_amax_compute_algo": "max",
285
+ "fp8_param_gather": false,
286
+ "fp16": false,
287
+ "bf16": true,
288
+ "apply_query_key_layer_scaling": false,
289
+ "attention_softmax_in_fp32": true,
290
+ "log_params_norm": false,
291
+ "log_throughput": false,
292
+ "tensorboard_log_interval": 1,
293
+ "tensorboard_queue_size": 50,
294
+ "log_timers_to_tensorboard": true,
295
+ "no_log_learning_rate_to_tensorboard": false,
296
+ "log_validation_ppl_to_tensorboard": true,
297
+ "log_memory_to_tensorboard": true,
298
+ "logging_level": null,
299
+ "wandb_project": "Megatron-Air-SFT",
300
+ "wandb_exp_name": "Iceblink-v3-SFT-3",
301
+ "wandb_save_dir": null,
302
+ "eval_iters": -1,
303
+ "eval_interval": 20,
304
+ "seq_length": 10280,
305
+ "num_workers": 8,
306
+ "megatron_extra_kwargs": {},
307
+ "add_version": true,
308
+ "rank": 0,
309
+ "global_world_size": 8,
310
+ "local_world_size": 8,
311
+ "model_suffix": "GLM-4.5-Air",
312
+ "model_info": "ModelInfo(model_type='glm4_5', model_dir='/root/.cache/modelscope/hub/models/ZhipuAI/GLM-4___5-Air', torch_dtype=torch.bfloat16, max_model_len=131072, quant_method=None, quant_bits=None, rope_scaling=None, is_moe_model=True, config=None, task_type='causal_lm', num_labels=None)",
313
+ "model_meta": "ModelMeta(model_type='glm4_5', model_groups=[ModelGroup(models=[Model(ms_model_id='ZhipuAI/GLM-4.5-Air-Base', hf_model_id='zai-org/GLM-4.5-Air-Base', model_path=None, ms_revision=None, hf_revision=None), Model(ms_model_id='ZhipuAI/GLM-4.5-Air', hf_model_id='zai-org/GLM-4.5-Air', model_path=None, ms_revision=None, hf_revision=None), Model(ms_model_id='ZhipuAI/GLM-4.5-Air-FP8', hf_model_id='zai-org/GLM-4.5-Air-FP8', model_path=None, ms_revision=None, hf_revision=None), Model(ms_model_id='ZhipuAI/GLM-4.5-Base', hf_model_id='zai-org/GLM-4.5-Base', model_path=None, ms_revision=None, hf_revision=None), Model(ms_model_id='ZhipuAI/GLM-4.5', hf_model_id='zai-org/GLM-4.5', model_path=None, ms_revision=None, hf_revision=None), Model(ms_model_id='ZhipuAI/GLM-4.5-FP8', hf_model_id='zai-org/GLM-4.5-FP8', model_path=None, ms_revision=None, hf_revision=None)], ignore_patterns=None, requires=None, tags=[]), ModelGroup(models=[Model(ms_model_id='ZhipuAI/GLM-4.6', hf_model_id='zai-org/GLM-4.6', model_path=None, ms_revision=None, hf_revision=None)], ignore_patterns=None, requires=None, tags=[])], template='glm4_5', get_function=<function get_model_tokenizer_with_flash_attn at 0x76c9ab052520>, model_arch=None, architectures=['Glm4MoeForCausalLM'], additional_saved_files=[], torch_dtype=None, is_multimodal=False, is_reward=False, is_reranker=False, task_type=None, ignore_patterns=None, requires=['transformers>=4.54'], tags=[])",
314
+ "model_dir": "/root/.cache/modelscope/hub/models/ZhipuAI/GLM-4___5-Air",
315
+ "hub": "<class 'swift.hub.hub.MSHub'>",
316
+ "megatron_model_meta": "MegatronModelMeta(megatron_model_type='gpt', model_types=['qwen2', 'qwen2_5', 'qwq', 'qwq_preview', 'qwen2_5_math', 'llama', 'llama3', 'llama3_1', 'llama3_2', 'longwriter_llama3_1', 'codefuse_codellama', 'marco_o1', 'deepseek', 'deepseek_r1_distill', 'yi', 'yi_coder', 'sus', 'skywork_o1', 'openbuddy_llama', 'openbuddy_llama3', 'megrez', 'reflection', 'numina', 'ziya', 'mengzi3', 'qwen3', 'qwen3_thinking', 'qwen3_nothinking', 'qwen2_moe', 'qwen3_moe', 'qwen3_moe_thinking', 'qwen3_coder', 'internlm3', 'mimo', 'mimo_rl', 'moonlight', 'deepseek_moe', 'deepseek_v2', 'deepseek_v2_5', 'deepseek_r1', 'dots1', 'ernie', 'glm4_5', 'deepseek_v3_1', 'ernie_thinking'], convert_mcore2hf=<function convert_mcore2hf at 0x76c91dcb0fe0>, convert_hf2mcore=<function convert_hf2mcore at 0x76c91dcb0b80>, model_cls=<class 'swift.megatron.model.gpt_model.GPTModel'>, convert_hf_config=<function convert_gpt_hf_config at 0x76c91de6c9a0>, get_transformer_layer_spec=None, model_provider=<function model_provider at 0x76c91dddb880>, visual_cls=None, extra_args_provider=None)",
317
+ "extra_args": {
318
+ "use_ray": false,
319
+ "ray_exp_name": null,
320
+ "device_groups": null,
321
+ "model": "ZhipuAI/GLM-4.5-Air",
322
+ "model_type": "glm4_5",
323
+ "model_revision": null,
324
+ "task_type": "causal_lm",
325
+ "torch_dtype": "bfloat16",
326
+ "attn_impl": null,
327
+ "new_special_tokens": [],
328
+ "num_labels": null,
329
+ "problem_type": null,
330
+ "rope_scaling": null,
331
+ "device_map": null,
332
+ "max_memory": {},
333
+ "max_model_len": null,
334
+ "local_repo_path": null,
335
+ "init_strategy": null,
336
+ "template": "glm4_5",
337
+ "system": null,
338
+ "max_length": 10280,
339
+ "truncation_strategy": "delete",
340
+ "max_pixels": null,
341
+ "agent_template": null,
342
+ "norm_bbox": null,
343
+ "use_chat_template": true,
344
+ "padding_free": true,
345
+ "padding_side": "right",
346
+ "sequence_parallel_size": 1,
347
+ "response_prefix": null,
348
+ "template_backend": "swift",
349
+ "dataset": [
350
+ "/workspace/joined_dataset_cleaned_modified.jsonl"
351
+ ],
352
+ "val_dataset": [],
353
+ "split_dataset_ratio": 0.01,
354
+ "data_seed": 42,
355
+ "dataset_num_proc": 8,
356
+ "load_from_cache_file": true,
357
+ "dataset_shuffle": true,
358
+ "val_dataset_shuffle": false,
359
+ "streaming": false,
360
+ "interleave_prob": null,
361
+ "stopping_strategy": "first_exhausted",
362
+ "shuffle_buffer_size": 1000,
363
+ "download_mode": "reuse_dataset_if_exists",
364
+ "columns": {},
365
+ "strict": false,
366
+ "remove_unused_columns": true,
367
+ "model_name": null,
368
+ "model_author": null,
369
+ "custom_dataset_info": [],
370
+ "quant_method": null,
371
+ "quant_bits": null,
372
+ "hqq_axis": null,
373
+ "bnb_4bit_compute_dtype": "bfloat16",
374
+ "bnb_4bit_quant_type": "nf4",
375
+ "bnb_4bit_use_double_quant": true,
376
+ "bnb_4bit_quant_storage": null,
377
+ "max_new_tokens": null,
378
+ "temperature": null,
379
+ "top_k": null,
380
+ "top_p": null,
381
+ "repetition_penalty": null,
382
+ "num_beams": 1,
383
+ "stream": false,
384
+ "stop_words": [],
385
+ "logprobs": false,
386
+ "top_logprobs": null,
387
+ "ckpt_dir": "/workspace/glm-4.5-air-mcore",
388
+ "lora_modules": [],
389
+ "tuner_backend": "peft",
390
+ "train_type": "lora",
391
+ "adapters": [],
392
+ "external_plugins": [],
393
+ "model_kwargs": {},
394
+ "load_args": false,
395
+ "load_data_args": false,
396
+ "packing": true,
397
+ "packing_length": 10280,
398
+ "lazy_tokenize": false,
399
+ "cached_dataset": [],
400
+ "custom_register_path": [],
401
+ "use_hf": false,
402
+ "hub_token": null,
403
+ "ddp_timeout": 18000000,
404
+ "ddp_backend": null,
405
+ "ignore_args_error": false,
406
+ "use_swift_lora": false,
407
+ "freeze_llm": false,
408
+ "freeze_vit": true,
409
+ "freeze_aligner": true,
410
+ "freeze_parameters": [],
411
+ "freeze_parameters_regex": null,
412
+ "freeze_parameters_ratio": 0.0,
413
+ "trainable_parameters": [],
414
+ "trainable_parameters_regex": null,
415
+ "adapter_load": null,
416
+ "target_modules": [
417
+ "all-linear"
418
+ ],
419
+ "target_regex": null,
420
+ "modules_to_save": [],
421
+ "lora_rank": 256,
422
+ "lora_alpha": 16,
423
+ "lora_dropout": 0.05,
424
+ "lora_bias": "none",
425
+ "lora_dtype": null,
426
+ "use_rslora": true,
427
+ "rlhf_type": null,
428
+ "ref_load": null,
429
+ "ref_adapter_load": null,
430
+ "beta": 0.1,
431
+ "rpo_alpha": null,
432
+ "reference_free": false,
433
+ "label_smoothing": 0.0,
434
+ "f_divergence_type": "reverse_kl",
435
+ "loss_type": null,
436
+ "desirable_weight": 1.0,
437
+ "undesirable_weight": 1.0,
438
+ "calculate_KL": null,
439
+ "center_rewards_coefficient": null,
440
+ "padded_vocab_size": 151552,
441
+ "initialize_embedding": false,
442
+ "mlp_padding_free": false,
443
+ "dataloader_persistent_workers": true,
444
+ "dataloader_prefetch_factor": 10,
445
+ "architectures": "Glm4MoeForCausalLM",
446
+ "llm_architectures": null,
447
+ "max_epochs": 2,
448
+ "enable_dft_loss": false,
449
+ "enable_channel_loss": false,
450
+ "original_max_position_embeddings": null,
451
+ "partial_rotary_factor": 0.5,
452
+ "use_shared_expert_gate": false,
453
+ "vit_gradient_checkpointing": true,
454
+ "gradient_checkpointing_kwargs": null,
455
+ "linear_num_value_heads": null,
456
+ "linear_num_key_heads": null,
457
+ "linear_key_head_dim": null,
458
+ "linear_value_head_dim": null,
459
+ "linear_conv_kernel_dim": null,
460
+ "layer_types": null,
461
+ "mrope_interleaved": false,
462
+ "add_version": true,
463
+ "model_info": "ModelInfo(model_type='glm4_5', model_dir='/root/.cache/modelscope/hub/models/ZhipuAI/GLM-4___5-Air', torch_dtype=torch.bfloat16, max_model_len=131072, quant_method=None, quant_bits=None, rope_scaling=None, is_moe_model=True, config=None, task_type='causal_lm', num_labels=None)",
464
+ "model_meta": "ModelMeta(model_type='glm4_5', model_groups=[ModelGroup(models=[Model(ms_model_id='ZhipuAI/GLM-4.5-Air-Base', hf_model_id='zai-org/GLM-4.5-Air-Base', model_path=None, ms_revision=None, hf_revision=None), Model(ms_model_id='ZhipuAI/GLM-4.5-Air', hf_model_id='zai-org/GLM-4.5-Air', model_path=None, ms_revision=None, hf_revision=None), Model(ms_model_id='ZhipuAI/GLM-4.5-Air-FP8', hf_model_id='zai-org/GLM-4.5-Air-FP8', model_path=None, ms_revision=None, hf_revision=None), Model(ms_model_id='ZhipuAI/GLM-4.5-Base', hf_model_id='zai-org/GLM-4.5-Base', model_path=None, ms_revision=None, hf_revision=None), Model(ms_model_id='ZhipuAI/GLM-4.5', hf_model_id='zai-org/GLM-4.5', model_path=None, ms_revision=None, hf_revision=None), Model(ms_model_id='ZhipuAI/GLM-4.5-FP8', hf_model_id='zai-org/GLM-4.5-FP8', model_path=None, ms_revision=None, hf_revision=None)], ignore_patterns=None, requires=None, tags=[]), ModelGroup(models=[Model(ms_model_id='ZhipuAI/GLM-4.6', hf_model_id='zai-org/GLM-4.6', model_path=None, ms_revision=None, hf_revision=None)], ignore_patterns=None, requires=None, tags=[])], template='glm4_5', get_function=<function get_model_tokenizer_with_flash_attn at 0x76c9ab052520>, model_arch=None, architectures=['Glm4MoeForCausalLM'], additional_saved_files=[], torch_dtype=None, is_multimodal=False, is_reward=False, is_reranker=False, task_type=None, ignore_patterns=None, requires=['transformers>=4.54'], tags=[])",
465
+ "megatron_model_meta": "MegatronModelMeta(megatron_model_type='gpt', model_types=['qwen2', 'qwen2_5', 'qwq', 'qwq_preview', 'qwen2_5_math', 'llama', 'llama3', 'llama3_1', 'llama3_2', 'longwriter_llama3_1', 'codefuse_codellama', 'marco_o1', 'deepseek', 'deepseek_r1_distill', 'yi', 'yi_coder', 'sus', 'skywork_o1', 'openbuddy_llama', 'openbuddy_llama3', 'megrez', 'reflection', 'numina', 'ziya', 'mengzi3', 'qwen3', 'qwen3_thinking', 'qwen3_nothinking', 'qwen2_moe', 'qwen3_moe', 'qwen3_moe_thinking', 'qwen3_coder', 'internlm3', 'mimo', 'mimo_rl', 'moonlight', 'deepseek_moe', 'deepseek_v2', 'deepseek_v2_5', 'deepseek_r1', 'dots1', 'ernie', 'glm4_5', 'deepseek_v3_1', 'ernie_thinking'], convert_mcore2hf=<function convert_mcore2hf at 0x76c91dcb0fe0>, convert_hf2mcore=<function convert_hf2mcore at 0x76c91dcb0b80>, model_cls=<class 'swift.megatron.model.gpt_model.GPTModel'>, convert_hf_config=<function convert_gpt_hf_config at 0x76c91de6c9a0>, get_transformer_layer_spec=None, model_provider=<function model_provider at 0x76c91dddb880>, visual_cls=None, extra_args_provider=None)"
466
+ }
467
+ }
chat_template.jinja ADDED
@@ -0,0 +1,103 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [gMASK]<sop>
2
+ {%- if tools -%}
3
+ <|system|>
4
+ # Tools
5
+
6
+ You may call one or more functions to assist with the user query.
7
+
8
+ You are provided with function signatures within <tools></tools> XML tags:
9
+ <tools>
10
+ {% for tool in tools %}
11
+ {{ tool | tojson(ensure_ascii=False) }}
12
+ {% endfor %}
13
+ </tools>
14
+
15
+ For each function call, output the function name and arguments within the following XML format:
16
+ <tool_call>{function-name}
17
+ <arg_key>{arg-key-1}</arg_key>
18
+ <arg_value>{arg-value-1}</arg_value>
19
+ <arg_key>{arg-key-2}</arg_key>
20
+ <arg_value>{arg-value-2}</arg_value>
21
+ ...
22
+ </tool_call>{%- endif -%}
23
+ {%- macro visible_text(content) -%}
24
+ {%- if content is string -%}
25
+ {{- content }}
26
+ {%- elif content is iterable and content is not mapping -%}
27
+ {%- for item in content -%}
28
+ {%- if item is mapping and item.type == 'text' -%}
29
+ {{- item.text }}
30
+ {%- elif item is string -%}
31
+ {{- item }}
32
+ {%- endif -%}
33
+ {%- endfor -%}
34
+ {%- else -%}
35
+ {{- content }}
36
+ {%- endif -%}
37
+ {%- endmacro -%}
38
+ {%- set ns = namespace(last_user_index=-1) %}
39
+ {%- for m in messages %}
40
+ {%- if m.role == 'user' %}
41
+ {% set ns.last_user_index = loop.index0 -%}
42
+ {%- endif %}
43
+ {%- endfor %}
44
+ {% for m in messages %}
45
+ {%- if m.role == 'user' -%}<|user|>
46
+ {{ visible_text(m.content) }}
47
+ {{- '/nothink' if (enable_thinking is defined and not enable_thinking and not visible_text(m.content).endswith("/nothink")) else '' -}}
48
+ {%- elif m.role == 'assistant' -%}
49
+ <|assistant|>
50
+ {%- set reasoning_content = '' %}
51
+ {%- set content = visible_text(m.content) %}
52
+ {%- if m.reasoning_content is string %}
53
+ {%- set reasoning_content = m.reasoning_content %}
54
+ {%- else %}
55
+ {%- if '</think>' in content %}
56
+ {%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
57
+ {%- set content = content.split('</think>')[-1].lstrip('\n') %}
58
+ {%- endif %}
59
+ {%- endif %}
60
+ {%- if loop.index0 > ns.last_user_index and reasoning_content -%}
61
+ {{ '\n<think>' + reasoning_content.strip() + '</think>'}}
62
+ {%- else -%}
63
+ {{ '\n<think></think>' }}
64
+ {%- endif -%}
65
+ {%- if content.strip() -%}
66
+ {{ '\n' + content.strip() }}
67
+ {%- endif -%}
68
+ {% if m.tool_calls %}
69
+ {% for tc in m.tool_calls %}
70
+ {%- if tc.function %}
71
+ {%- set tc = tc.function %}
72
+ {%- endif %}
73
+ {{ '\n<tool_call>' + tc.name }}
74
+ {% set _args = tc.arguments %}
75
+ {% for k, v in _args.items() %}
76
+ <arg_key>{{ k }}</arg_key>
77
+ <arg_value>{{ v | tojson(ensure_ascii=False) if v is not string else v }}</arg_value>
78
+ {% endfor %}
79
+ </tool_call>{% endfor %}
80
+ {% endif %}
81
+ {%- elif m.role == 'tool' -%}
82
+ {%- if m.content is string -%}
83
+ {%- if loop.first or (messages[loop.index0 - 1].role != "tool") %}
84
+ {{- '<|observation|>' }}
85
+ {%- endif %}
86
+ {{- '\n<tool_response>\n' }}
87
+ {{- m.content }}
88
+ {{- '\n</tool_response>' }}
89
+ {%- else -%}
90
+ <|observation|>{% for tr in m.content %}
91
+
92
+ <tool_response>
93
+ {{ tr.output if tr.output is defined else tr }}
94
+ </tool_response>{% endfor -%}
95
+ {% endif -%}
96
+ {%- elif m.role == 'system' -%}
97
+ <|system|>
98
+ {{ visible_text(m.content) }}
99
+ {%- endif -%}
100
+ {%- endfor -%}
101
+ {%- if add_generation_prompt -%}
102
+ <|assistant|>{{- '\n<think></think>' if (enable_thinking is defined and not enable_thinking) else '' -}}
103
+ {%- endif -%}
config.json ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Glm4MoeForCausalLM"
4
+ ],
5
+ "attention_bias": true,
6
+ "attention_dropout": 0.0,
7
+ "dtype": "bfloat16",
8
+ "eos_token_id": [
9
+ 151329,
10
+ 151336,
11
+ 151338
12
+ ],
13
+ "first_k_dense_replace": 1,
14
+ "head_dim": 128,
15
+ "hidden_act": "silu",
16
+ "hidden_size": 4096,
17
+ "initializer_range": 0.02,
18
+ "intermediate_size": 10944,
19
+ "max_position_embeddings": 131072,
20
+ "model_type": "glm4_moe",
21
+ "moe_intermediate_size": 1408,
22
+ "n_group": 1,
23
+ "n_routed_experts": 128,
24
+ "n_shared_experts": 1,
25
+ "norm_topk_prob": true,
26
+ "num_attention_heads": 96,
27
+ "num_experts_per_tok": 8,
28
+ "num_hidden_layers": 46,
29
+ "num_key_value_heads": 8,
30
+ "num_nextn_predict_layers": 1,
31
+ "pad_token_id": 151329,
32
+ "partial_rotary_factor": 0.5,
33
+ "quantization_config": {
34
+ "config_groups": {
35
+ "config_group_0": {
36
+ "format": "float-quantized",
37
+ "input_activations": {
38
+ "actorder": null,
39
+ "block_structure": null,
40
+ "dynamic": true,
41
+ "group_size": 32,
42
+ "num_bits": 8,
43
+ "observer": null,
44
+ "observer_kwargs": {},
45
+ "strategy": "group",
46
+ "symmetric": true,
47
+ "type": "float"
48
+ },
49
+ "output_activations": null,
50
+ "targets": [
51
+ "Linear"
52
+ ],
53
+ "weights": {
54
+ "actorder": null,
55
+ "block_structure": [
56
+ 32,
57
+ 32
58
+ ],
59
+ "dynamic": false,
60
+ "group_size": null,
61
+ "num_bits": 8,
62
+ "observer": "static_minmax",
63
+ "observer_kwargs": {},
64
+ "strategy": "block",
65
+ "symmetric": true,
66
+ "type": "float"
67
+ }
68
+ }
69
+ },
70
+ "format": "float-quantized",
71
+ "global_compression_ratio": null,
72
+ "ignore": [
73
+ "lm_head",
74
+ "model.embed_tokens",
75
+ "model.norm",
76
+ "re:.*input_layernorm$",
77
+ "re:.*post_attention_layernorm$",
78
+ "re:.*self_attn.*",
79
+ "re:.*shared_experts.*",
80
+ "re:.*mlp\\.gate$",
81
+ "re:model.layers.0.*",
82
+ "re:model.layers.46.*"
83
+ ],
84
+ "kv_cache_scheme": null,
85
+ "quant_method": "compressed-tensors",
86
+ "quantization_status": "compressed",
87
+ "sparsity_config": {},
88
+ "transform_config": {},
89
+ "version": "0.12.3.a20251114"
90
+ },
91
+ "rms_norm_eps": 1e-05,
92
+ "rope_scaling": null,
93
+ "rope_theta": 1000000,
94
+ "routed_scaling_factor": 1.0,
95
+ "tie_word_embeddings": false,
96
+ "topk_group": 1,
97
+ "transformers_version": "4.57.1",
98
+ "use_cache": true,
99
+ "use_qk_norm": false,
100
+ "vocab_size": 151552
101
+ }
generation_config.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "eos_token_id": [
4
+ 151329,
5
+ 151336,
6
+ 151338
7
+ ],
8
+ "pad_token_id": 151329,
9
+ "transformers_version": "4.57.1",
10
+ "min_p": 0.05,
11
+ "temperature": 0.8,
12
+ "top_p": 1,
13
+ }
model-00001-of-00043.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e98647c7b2193bc5cdf6d8f5d6bb6914135198e1ba6ff8bfdccbcfcc561055e6
3
+ size 3472330576
model-00002-of-00043.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b58406b1302ca309ca8427d28b32487df3fdbf5f22f6e578e41af96c3f7f06e8
3
+ size 2628840536
model-00003-of-00043.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:06a9729f66e275675cd36543ef33e76e39770bb0cfc4ee2b2420aba63172d7f8
3
+ size 2628840624
model-00004-of-00043.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f016add1951f3d8c344870bf5f2900d54e67bf56699da589fc7bfb7f5290e8ce
3
+ size 2628840744
model-00005-of-00043.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7bdd6fe32208fd3396e66c1b54574691506ec71d387d36565c0bfa461697160c
3
+ size 2628840848
model-00006-of-00043.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:30f765974a1e6bb689de58799ea41f233737dc454c5e46b527a00f30c903f6a0
3
+ size 2695299880
model-00007-of-00043.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5f6fef216e39915c38bb077b2a9d2f0d18431cdfe7149c9af686fef30f0116d2
3
+ size 2677495312
model-00008-of-00043.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7aac3f587512917f9aa96daa835988baf895ec19a6db45a58495c89a0f6296df
3
+ size 2628840024
model-00009-of-00043.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e018a272942ffa6dc4ac9b870e4ddc35b96152ee9db91f8a452e718b8a753384
3
+ size 2628841512
model-00010-of-00043.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:abb95fd623ab827541fe0159cc4b1b9396e4b521197ecc5c8de8cef9157d1345
3
+ size 2628840992
model-00011-of-00043.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:42d2d82f32b4dd090ca8f71fe55ee37304f628eb01f39b447300514f29fedc27
3
+ size 2628841040
model-00012-of-00043.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:48fe23cc37310aeec38c81f5ebbe5391854305dbc01fbb7cb48d0fa4a4682e2a
3
+ size 2628841096
model-00013-of-00043.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5d52c18565718163dd45dc5de161a3b22183bc2e2a3c7e4d7b82c4a74c642c6d
3
+ size 2628841152
model-00014-of-00043.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e8bb0e7a2322844ceefe50624c71255991fff4b8006a49173d92aaa380e017bd
3
+ size 2628841208
model-00015-of-00043.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:edfe328c041b156392ec8b32695d759f07a944a3c3320d4f802d1463bd623797
3
+ size 2628841256
model-00016-of-00043.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:83c78490d906ae156d0c3971b886e719889a11aa340becd36ff0b370fb547a10
3
+ size 2628841312
model-00017-of-00043.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5e59efcd6e2f2088ca253ee34cd51dccb593e085b8b85ef20f303d55d38a30d3
3
+ size 2628841368
model-00018-of-00043.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:45aaf47ee18955bc90adcb2573776667785493a177b1c9a012eb26351c82a365
3
+ size 2628841448
model-00019-of-00043.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:90daacb2ba240342dcda680e5b0208a90a58ae4c0b69f9a449207b53589126a5
3
+ size 2628841568
model-00020-of-00043.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4fa9c37b00b51eb33b1889c7e6c708f6ef5d85d4cafd95ca29b231ce995cdf65
3
+ size 2628841672
model-00021-of-00043.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3966becdc946ff26d6a0e3597608a0e31fa6982adecbe7970fd17c8d2d56fbba
3
+ size 2695854984
model-00022-of-00043.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:feceda6a5ac4778e8b89a05c839bf0b1e0aa74c93987bde22903782fa661b326
3
+ size 2688499216
model-00023-of-00043.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:307ce7b469368ddcb32b0a43c08a11c1225886034988c881fac661c2088e0d3f
3
+ size 2628840856
model-00024-of-00043.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1fd15d2154bbc2435d469cdb5d86a9382e00729628eb5f246e45ad23e949cdc2
3
+ size 2628840936
model-00025-of-00043.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb32956236edb0543c306adf5f1ff093fc06ca2f0ada3f77cf30acf4f5cee490
3
+ size 2628840984
model-00026-of-00043.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:856a7387cc11f3e83d4f1cea1ea718cf871f12b8120424689e26f29d0fdc66a8
3
+ size 2628841040
model-00027-of-00043.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:02f6177359393906e21cf4216884fc5193c2ee6dd186ec53d3bfa2ce6d676c02
3
+ size 2628841096
model-00028-of-00043.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2854a163bdc2d3cee25d570fde80eedde779d631f7c075b6f6e7d0a543e1ce3f
3
+ size 2628841152
model-00029-of-00043.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bafe58fc3438fdf2e7050ba93b1857062043b1e90c4c6bd5ae3aff6df0cba9d3
3
+ size 2628841200
model-00030-of-00043.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:657f5401377233b26df954736f9a003d9ff85c026b6c2f08fbc8a012cfbecd5e
3
+ size 2628841256
model-00031-of-00043.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f207f7155038e676e10b7612319468bfc70a07acc1a758be29ddc7ebf13c4931
3
+ size 2628841312
model-00032-of-00043.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:911a45cf09ce5949143746603570c17437b96eb9e30e2706df23e515eb183310
3
+ size 2628841368
model-00033-of-00043.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:55c860c93c99214ecf51bbc3f11906f011c206840c90efd9e88e73a1a9db0a93
3
+ size 2628841448
model-00034-of-00043.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:95c4d9e89a895bc72e9a3b1c5755fa9ffd4966614d41761777c481c0f63b46e8
3
+ size 2628841560
model-00035-of-00043.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dbf96c800abf6205a0e108be5865a6b4cfd9e878bd8b6c6608d221897b00ad36
3
+ size 2628841672
model-00036-of-00043.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:525a5d907b0c4247d034f16fcabad0d4451dc7efc85cab149143bcb52fad4812
3
+ size 2600945536
model-00037-of-00043.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ac1d8862547b2dfcbce77ea1f8b6d8501e5b62050079478fddde666d308120a0
3
+ size 2737179184
model-00038-of-00043.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:86b23dbc83691b73cff27ffca659d16fdae9ce1dbd6f47f7171814e6fb828888
3
+ size 2628840816
model-00039-of-00043.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:21281dc97867745fd0d240f21d97e2eeed3ae235982fc889f5eda30b027f18aa
3
+ size 2628840912
model-00040-of-00043.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb3e970f609132aaa085feb420c1565f5518f404fadd10b0639cf061110e9136
3
+ size 2628840968
model-00041-of-00043.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:52f1f6ff5773ea423cbe9ef2d63a301cec4e748d695233cacf90f4801c0ed52b
3
+ size 2628841024
model-00042-of-00043.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b7195a323760cde8a0bb8323a425655c9882af978c25419e8816d40e2bcd8811
3
+ size 2628841080
model-00043-of-00043.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fab0bcb4bb9cf192e81dbd110bac3500456d3702f0c383539d2add0b82510186
3
+ size 9903053704
model.safetensors.index.json ADDED
The diff for this file is too large to render. See raw diff