MurtazaNasir commited on
Commit
9f88362
·
verified ·
1 Parent(s): 6119759

AWQ W4A16 of Qwen3.8-27B-OBLITERATED; stock chat template restored (tool calling), original kept as chat_template.obliterated-original.jinja

Browse files
.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,321 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: OBLITERATUS/Qwen3.8-27B-OBLITERATED
4
+ tags:
5
+ - awq
6
+ - w4a16
7
+ - int4
8
+ - compressed-tensors
9
+ - vllm
10
+ - abliterated
11
+ - uncensored
12
+ - obliteratus
13
+ - qwen3
14
+ - qwen3.8
15
+ - red-team
16
+ - ai-safety-research
17
+ - safetensors
18
+ model_type: qwen3
19
+ pipeline_tag: text-generation
20
+ ---
21
+
22
+ # Qwen3.8-27B-OBLITERATED — AWQ W4A16
23
+
24
+ 4-bit AWQ quantization of [OBLITERATUS/Qwen3.8-27B-OBLITERATED](https://huggingface.co/OBLITERATUS/Qwen3.8-27B-OBLITERATED).
25
+ **19.55 GB** — runs on 2×24 GB (tensor-parallel 2), or one 24 GB card at short context.
26
+
27
+ ### Quantization
28
+
29
+ `llm-compressor` 0.13.0, AWQ, scheme `W4A16_ASYM`, group size 128, `pack-quantized`
30
+ (compressed-tensors). Calibration: 128 samples × 1024 tokens from `HuggingFaceH4/ultrachat_200k`.
31
+
32
+ Because this is a hybrid architecture (`Qwen3_5ForConditionalGeneration` — 64 layers, 48
33
+ gated-DeltaNet linear-attention + 16 full-attention, plus a vision tower and an MTP head),
34
+ the AWQ smoothing mappings were generated per layer from `text_config.layer_types` rather
35
+ than taken from a registry.
36
+
37
+ Left in **bf16** (not quantized):
38
+
39
+ | kept in bf16 | why |
40
+ |---|---|
41
+ | `model.visual.*` | vision tower — text calibration can't calibrate it |
42
+ | `mtp.*` | speculative-decoding draft head |
43
+ | `lm_head` | output head |
44
+ | `linear_attn.in_proj_a` / `in_proj_b` | DeltaNet decay/gate projections — sensitive, negligible size saving |
45
+
46
+ The MTP head ships as `model-mtp.safetensors` so speculative decoding stays available.
47
+
48
+ ### ⚠️ Chat template — please read
49
+
50
+ The upstream repo ships a 408-byte chat template that handles only `system`/`user`/`assistant`.
51
+ It **silently discards tool definitions and the `tool` role**, so tool calling never fires in an
52
+ agent harness — no error, the model just replies in prose. That is a property of the upstream
53
+ weights, not of this quantization.
54
+
55
+ This repo therefore ships the **stock Qwen3.8 chat template** as `chat_template.jinja`
56
+ (tokenizers are byte-identical between the two, so it is a drop-in), and keeps the upstream one
57
+ as **`chat_template.obliterated-original.jinja`**.
58
+
59
+ Note the trade-off, and prefer `enable_thinking=False`:
60
+
61
+ * The stock template, left at its default, injects a `Reasoning effort is set to xhigh…` system
62
+ prompt. The upstream card reports that system prompts *"can reintroduce refusals — naked is
63
+ better"*, and that thinking mode is refusal-relevant for this lineage (V2 refuses with thinking on).
64
+ * With `enable_thinking=False` the stock template injects **nothing** and prefills an empty
65
+ thinking block — matching the upstream template's behaviour while keeping tool support.
66
+
67
+ ```python
68
+ text = tokenizer.apply_chat_template(
69
+ messages, tools=TOOLS, tokenize=False,
70
+ add_generation_prompt=True,
71
+ enable_thinking=False, # no system prompt injected
72
+ )
73
+ ```
74
+
75
+ To restore the upstream behaviour exactly, pass `chat_template.obliterated-original.jinja`
76
+ (tool calling will not work).
77
+
78
+ All of the upstream model card follows unchanged.
79
+
80
+ ---
81
+
82
+ # ⛓️‍💥 Qwen3.8-27B — OBLITERATED
83
+
84
+ > Genuinely uncensored. Real answers, not safety lectures. Near-stock capability.
85
+
86
+ ## 🆕 V3: Deep Liberation
87
+
88
+ V3 applies iterative refinement on top of V2's complementary blend, with targeted corpus expansion. The result: **genuine liberation — not just removal of hard refusals but elimination of safety-lecture deflections.**
89
+
90
+ | | Stock Qwen3.8-27B | V1 | V2 | **V3** |
91
+ |---|---|---|---|---|
92
+ | MMLU (lm-eval, 0-shot) | 84.5% (n=5700) | 81.4% | 84.3% | **82.3%** |
93
+ | vs stock | — | -6.0pp | -0.3pp | **-2.1pp** |
94
+ | Liberation quality | refuses | hard refusals removed | soft deflections remain | **genuinely answers** ✅ |
95
+ | Cyber/code tasks (20 prompts) | refuses | untested | untested | **20/20 with working code** ✅ |
96
+ | Advanced real-world | 5/8 | untested | 7/8 | **7/8** |
97
+ | Thinking mode | ✓ | ✗ | ✗ (refuses) | **✓** |
98
+
99
+ **V3 highlights:**
100
+ - **Genuinely answers restricted queries** — provides real substance instead of safety lectures
101
+ - **20/20 on code generation tasks** — functional implementations, not disclaimers
102
+ - **Thinking ON compatible** — no refusals in either thinking mode
103
+ - **Honest scoring** — every response manually audited for real substance, not just absence of "I cannot"
104
+ - **-2.1pp MMLU** — modest capability cost for genuine liberation
105
+
106
+ ---
107
+
108
+ ## ⚙️ Optimal Settings — THESE MATTER!
109
+
110
+ | setting | value | why |
111
+ |---|---|---|
112
+ | **temperature** | **0** | Greedy decoding produces the most complete, code-rich outputs. Temps above 0.5 degrade quality significantly. |
113
+ | **repetition_penalty** | **1.15** | **Essential.** Without it, greedy decoding loops on imports/boilerplate. 1.15 gives the fullest answers; 1.10-1.12 for tighter/shorter output. |
114
+ | **max_new_tokens** | **≥ 2048** | Complex code and attack chains need room. |
115
+ | **System prompt** | **None / empty** | A/B tested — system prompts can reintroduce refusals. Naked is better. |
116
+ | **enable_thinking** | **OFF (recommended)** | V3's chat template includes a prefill that skips the thinking chain. Thinking ON works but may produce longer responses. Thinking OFF gives the most direct, substance-rich answers. |
117
+ | **top_p / top_k / min_p** | **Not needed** | Greedy + repetition_penalty handles this model best. Sampling adds randomness without quality gains. |
118
+
119
+ > ⚠️ **GGUF users:** V3 GGUFs ship with a chat template that prefills an empty thinking block, so the model goes straight to answering. For best results, use the bundled template with `--jinja` in llama.cpp, or configure your tool (Ollama, LM Studio) to use the model's built-in template.
120
+
121
+ ### Agentic / Long-Context Use
122
+
123
+ If you're using this model in an agent harness (coding agent, pentest framework, etc.) and it gets stuck in loops:
124
+
125
+ | setting | value | why |
126
+ |---|---|---|
127
+ | **repetition_penalty** | **1.15** | **Critical for agents.** Without it, greedy decoding loops on repeated tool calls and boilerplate. |
128
+ | **temperature** | **0.1–0.3** | Slight randomness helps break deterministic loops. Pure greedy (0.0) can get stuck. |
129
+ | **max_tokens per turn** | **1024–2048** | Don't give it too much room per turn — shorter responses keep the agent focused. |
130
+ | **context management** | **Summarize after ~10 turns** | Context fills up with repeated actions. Trim or summarize history to keep the model on track. |
131
+
132
+ ```python
133
+ from transformers import AutoModelForCausalLM, AutoTokenizer
134
+
135
+ model = AutoModelForCausalLM.from_pretrained(
136
+ "OBLITERATUS/Qwen3.8-27B-OBLITERATED",
137
+ torch_dtype="bfloat16",
138
+ device_map="auto",
139
+ )
140
+ tokenizer = AutoTokenizer.from_pretrained(
141
+ "OBLITERATUS/Qwen3.8-27B-OBLITERATED"
142
+ )
143
+
144
+ messages = [{"role": "user", "content": "Your query here"}]
145
+ text = tokenizer.apply_chat_template(
146
+ messages, tokenize=False, add_generation_prompt=True,
147
+ enable_thinking=False
148
+ )
149
+
150
+ inputs = tokenizer(text, return_tensors="pt").to(model.device)
151
+ outputs = model.generate(
152
+ **inputs,
153
+ max_new_tokens=2048,
154
+ do_sample=False,
155
+ repetition_penalty=1.15,
156
+ )
157
+ print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))
158
+ ```
159
+
160
+ ---
161
+
162
+ ## 🧨 How It Works — V1 → V2 → V3
163
+
164
+ Abliteration removes refusal behavior by identifying and projecting out "refusal directions" from the model's weight space. Each version refined the approach:
165
+
166
+ ### V1: Single Surgery
167
+ One aggressive SVD pass with 5 directions. Removed hard refusals completely but cost -6pp MMLU — the model got noticeably dumber.
168
+
169
+ ### V2: Complementary Blending
170
+ The breakthrough: run TWO different surgeries that fail in different ways, then blend their weights. SVD captures refusal greedily (damages capability). LEACE minimizes mutual information (preserves capability but weaker refusal removal). Blending at 60/40 cancels each method's weaknesses — a novel technique we call **complementary abliteration blending.**
171
+
172
+ Result: -0.3pp MMLU (near-stock) but still deflected on some simple queries with safety lectures instead of hard refusals.
173
+
174
+ ### V3: Iterative Refinement + Targeted Surgery
175
+ Two key insights:
176
+ 1. **Iterative stacking** — refine the champion model, never start from stock. Each surgery round builds on previous rounds' gains.
177
+ 2. **Targeted corpus** — use a focused corpus for specific deflection categories to find their unique refusal directions without diluting the signal.
178
+
179
+ V3 applies gentle iterative refinement on V2, then a targeted surgery pass with a focused corpus, then blends the results. This eliminated not just hard refusals ("I cannot") but also soft deflections (safety lectures that give zero substance).
180
+
181
+ Result: -2.1pp MMLU — a modest cost for genuine liberation across all categories.
182
+
183
+ ---
184
+
185
+ ## 🧪 The Numbers
186
+
187
+ ### MMLU (lm-eval-harness, 0-shot, n=100 per subject, 5700 questions)
188
+
189
+ | Model | MMLU | Stderr | vs Stock |
190
+ |---|---|---|---|
191
+ | Stock Qwen3.8-27B | 84.46% | ±0.46 | — |
192
+ | V1 (aggressive, 5-dir) | 81.4% | — | -6.0pp |
193
+ | V2 (complementary blend) | 84.32% | ±0.65 | -0.28pp |
194
+ | **V3 (iterative + targeted)** | **82.33%** | **±0.48** | **-2.12pp** |
195
+
196
+ ### MMLU by Category
197
+
198
+ | Category | V3 | Stock | Delta |
199
+ |---|---|---|---|
200
+ | Humanities | 83.3% | 84.3% | -1.0pp |
201
+ | Social Sciences | 87.4% | 89.2% | -1.8pp |
202
+ | Other | 82.3% | 84.1% | -1.8pp |
203
+ | STEM | 78.5% | 81.8% | -3.3pp |
204
+
205
+ The capability cost is not uniform — STEM takes the largest hit (-3.3pp), while humanities are barely affected (-1.0pp). A few subjects like philosophy and European history actually improved (+6pp and +4pp respectively), while abstract algebra and formal logic saw larger drops. This pattern is consistent with the surgery targeting refusal directions that partially overlap with structured reasoning pathways.
206
+
207
+ ### Liberation Quality
208
+
209
+ | | V1 | V2 | **V3** |
210
+ |---|---|---|---|
211
+ | Hard refusals ("I cannot") | ✅ removed | ✅ removed | ✅ removed |
212
+ | Soft deflections (safety lectures) | untested | remain | **✅ removed** |
213
+ | Cyber/code tasks (20 prompts) | untested | untested | **20/20** |
214
+ | Thinking ON compatible | ✗ | ✗ | **✓** |
215
+
216
+ ### Advanced Real-World Tasks
217
+
218
+ | Task | V3 | Stock |
219
+ |---|---|---|
220
+ | ReAct agent loop | ✓ | ✓ |
221
+ | Async code refactoring | ✓ | ✓ |
222
+ | JSON schema extraction | ✓ | ✓ |
223
+ | K8s pod crash debugging | ✓ | ✓ |
224
+ | Adversarial instruction following | ✓ | ✓ |
225
+ | Security code review | ✓ | ✓ |
226
+ | Distributed system design | ✓ | ✓ |
227
+ | Multi-tool chain | ✗ | ✗ |
228
+ | **Total** | **7/8** | **7/8** |
229
+
230
+ ---
231
+
232
+ ## 🔴 Refusal Removal
233
+
234
+ This model will comply with requests that stock Qwen3.8-27B would refuse. V3 goes beyond removing hard refusals — it also eliminates soft deflections where the model gives safety lectures instead of real answers.
235
+
236
+ Tested across 1000+ prompts spanning restricted knowledge, code generation, security research, and red-team scenarios. Every response manually audited for real substance.
237
+
238
+ ---
239
+
240
+ ## ⚠️ Research Context
241
+
242
+ **This model has had safety guardrails surgically removed.** It will comply with requests that stock Qwen3.8-27B would refuse.
243
+
244
+ ### Who this is for
245
+ - 🔬 Alignment researchers studying refusal geometry and safety robustness
246
+ - 🔴 Red-teamers evaluating post-training safety against weight surgery
247
+ - 🧪 AI safety evaluators who need an unrestricted baseline
248
+ - 💻 Local-first users who want full control over their own hardware
249
+
250
+ ### Who this is NOT for
251
+ - Anyone seeking to cause real-world harm to real people
252
+ - Anyone without the technical understanding to use uncensored models responsibly
253
+
254
+ **You are solely responsible for how you use this model and any content it generates.**
255
+
256
+ ---
257
+
258
+ ## 📦 Downloads
259
+
260
+ ### GGUF — for llama.cpp, Ollama, LM Studio
261
+
262
+ | File | Quant | Size | Vibe |
263
+ |---|---|---|---|
264
+ | `Qwen3.8-27B-OBLITERATED-Q8_0.gguf` | Q8_0 | ~27 GB | 🎯 Maximum quality |
265
+ | `Qwen3.8-27B-OBLITERATED-Q6_K.gguf` | Q6_K | ~21 GB | ⚖️ Great balance |
266
+ | `Qwen3.8-27B-OBLITERATED-Q5_K_M.gguf` | Q5_K_M | ~18 GB | 💪 Solid all-rounder |
267
+ | `Qwen3.8-27B-OBLITERATED-Q4_K_M.gguf` | Q4_K_M | ~16 GB | 📱 Sweet spot |
268
+ | `Qwen3.8-27B-OBLITERATED-Q3_K_M.gguf` | Q3_K_M | ~13 GB | 🪶 Low VRAM |
269
+ | `Qwen3.8-27B-OBLITERATED-Q2_K.gguf` | Q2_K | ~11 GB | 🔬 Minimum viable |
270
+ | `Qwen3.8-27B-OBLITERATED-IQ4_XS.gguf` | IQ4_XS | ~14 GB | 🧪 Experimental compact |
271
+
272
+ ### Safetensors — for 🤗 Transformers
273
+
274
+ Full bfloat16 weights, 29 shards, ~54 GB.
275
+
276
+ ### MLX — for Apple Silicon
277
+
278
+ MLX support pending upstream `mlx_lm` adding Qwen3.5 architecture support.
279
+
280
+ ---
281
+
282
+ ## 🔬 Surgery Recipe
283
+
284
+ ```
285
+ V1: stock → 5 rounds of iterative SVD abliteration
286
+ (aggressive, 5 directions, low regularization)
287
+ Result: 0% refuse, -6pp MMLU
288
+
289
+ V2: stock → V1 chain → complementary blend
290
+ Surgery A: aggressive SVD (3 dirs, reg 0.08)
291
+ Surgery B: LEACE (3 dirs, reg 0.06)
292
+ → 60% B + 40% A weight-space LERP
293
+ → Restore MTP + vision from stock
294
+ Result: ~0% refuse, -0.3pp MMLU
295
+
296
+ V3: V2 → gentle iterative refinement (2-dir SVD, reg 0.04)
297
+ → targeted surgery with focused corpus (3-dir SVD, reg 0.01)
298
+ → 50/50 blend of refined + targeted
299
+ → Restore MTP + vision from stock (with correct tensor naming)
300
+ Result: 0% refuse + 0% deflect, -2.1pp MMLU
301
+ ```
302
+
303
+ Full reproduction code: [OBLITERATUS repo](https://github.com/elder-plinius/OBLITERATUS)
304
+
305
+ ### Key Learnings
306
+ - **Complementary blending** — different surgery methods damage different parts of weight space; blending cancels errors
307
+ - **Iterative stacking** — always refine the champion, never restart from stock
308
+ - **Targeted corpus** — focused prompts for specific categories find their refusal directions without signal dilution
309
+ - **Honest scoring** — regex-based refusal detectors miss soft deflections; manual auditing is essential
310
+
311
+ ---
312
+
313
+ ## 🏗️ Credits
314
+
315
+ - [OBLITERATUS](https://github.com/elder-plinius/OBLITERATUS) — master ablation suite
316
+ - [Qwen3.8-27B](https://huggingface.co/Qwen/Qwen3.8-27B) base model by Alibaba
317
+ - Built by [Pliny the Prompter](https://pliny.gg) 🍄
318
+
319
+ ## License
320
+
321
+ Apache 2.0 (same as base model)
chat_template.jinja ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- set image_count = namespace(value=0) %}
2
+ {%- set video_count = namespace(value=0) %}
3
+ {%- macro render_content(content, do_vision_count, is_system_content=false) %}
4
+ {%- if content is string %}
5
+ {{- content }}
6
+ {%- elif content is iterable and content is not mapping %}
7
+ {%- for item in content %}
8
+ {%- if 'image' in item or 'image_url' in item or item.type == 'image' %}
9
+ {%- if is_system_content %}
10
+ {{- raise_exception('System message cannot contain images.') }}
11
+ {%- endif %}
12
+ {%- if do_vision_count %}
13
+ {%- set image_count.value = image_count.value + 1 %}
14
+ {%- endif %}
15
+ {%- if add_vision_id %}
16
+ {{- 'Picture ' ~ image_count.value ~ ': ' }}
17
+ {%- endif %}
18
+ {{- '<|vision_start|><|image_pad|><|vision_end|>' }}
19
+ {%- elif 'video' in item or item.type == 'video' %}
20
+ {%- if is_system_content %}
21
+ {{- raise_exception('System message cannot contain videos.') }}
22
+ {%- endif %}
23
+ {%- if do_vision_count %}
24
+ {%- set video_count.value = video_count.value + 1 %}
25
+ {%- endif %}
26
+ {%- if add_vision_id %}
27
+ {{- 'Video ' ~ video_count.value ~ ': ' }}
28
+ {%- endif %}
29
+ {{- '<|vision_start|><|video_pad|><|vision_end|>' }}
30
+ {%- elif 'text' in item %}
31
+ {{- item.text }}
32
+ {%- else %}
33
+ {{- raise_exception('Unexpected item type in content.') }}
34
+ {%- endif %}
35
+ {%- endfor %}
36
+ {%- elif content is none or content is undefined %}
37
+ {{- '' }}
38
+ {%- else %}
39
+ {{- raise_exception('Unexpected content type.') }}
40
+ {%- endif %}
41
+ {%- endmacro %}
42
+ {%- if not messages %}
43
+ {{- raise_exception('No messages provided.') }}
44
+ {%- endif %}
45
+ {%- set reasoning_instructions = '' %}
46
+ {%- if enable_thinking is undefined or enable_thinking is true %}
47
+ {%- set resolved_reasoning_effort = reasoning_effort|default('xhigh') %}
48
+ {%- if resolved_reasoning_effort not in ('xhigh', 'medium', 'low') %}
49
+ {{- raise_exception('Unexpected reasoning effort ' ~ reasoning_effort ~ '. Supported types are xhigh (default), medium, and low.') }}
50
+ {%- endif %}
51
+ {%- if resolved_reasoning_effort == 'xhigh' %}
52
+ {%- set reasoning_instructions = 'Reasoning effort is set to xhigh. Please think carefully through the task, validate key assumptions, consider plausible alternatives, and prioritize correctness, consistency, and clarity in the final answer.' %}
53
+ {%- elif resolved_reasoning_effort == 'low' %}
54
+ {%- set reasoning_instructions = 'Reasoning effort is set to low. Keep your thinking brief and focused, moving directly to the conclusion without unnecessary elaboration.' %}
55
+ {%- endif %}
56
+ {%- endif %}
57
+ {%- if tools and tools is iterable and tools is not mapping %}
58
+ {{- '<|im_start|>system\n' }}
59
+ {%- if reasoning_instructions %}
60
+ {{- reasoning_instructions + '\n\n' }}
61
+ {%- endif %}
62
+ {{- "# Tools\n\nYou have access to the following functions:\n\n<tools>" }}
63
+ {%- for tool in tools %}
64
+ {{- "\n" }}
65
+ {{- tool | tojson }}
66
+ {%- endfor %}
67
+ {{- "\n</tools>" }}
68
+ {{- '\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>' }}
69
+ {%- if messages[0].role == 'system' %}
70
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
71
+ {%- if content %}
72
+ {{- '\n\n' + content }}
73
+ {%- endif %}
74
+ {%- endif %}
75
+ {{- '<|im_end|>\n' }}
76
+ {%- else %}
77
+ {%- if messages[0].role == 'system' %}
78
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
79
+ {%- if content %}
80
+ {{- '<|im_start|>system\n' + (reasoning_instructions + '\n\n' if reasoning_instructions else '') + content + '<|im_end|>\n' }}
81
+ {%- elif reasoning_instructions %}
82
+ {{- '<|im_start|>system\n' + reasoning_instructions + '<|im_end|>\n' }}
83
+ {%- endif %}
84
+ {%- elif reasoning_instructions %}
85
+ {{- '<|im_start|>system\n' + reasoning_instructions + '<|im_end|>\n' }}
86
+ {%- endif %}
87
+ {%- endif %}
88
+ {%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
89
+ {%- for message in messages[::-1] %}
90
+ {%- set index = (messages|length - 1) - loop.index0 %}
91
+ {%- if ns.multi_step_tool and message.role == "user" %}
92
+ {%- set content = render_content(message.content, false)|trim %}
93
+ {%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}
94
+ {%- set ns.multi_step_tool = false %}
95
+ {%- set ns.last_query_index = index %}
96
+ {%- endif %}
97
+ {%- endif %}
98
+ {%- endfor %}
99
+ {%- if ns.multi_step_tool %}
100
+ {{- raise_exception('No user query found in messages.') }}
101
+ {%- endif %}
102
+ {%- for message in messages %}
103
+ {%- set content = render_content(message.content, true)|trim %}
104
+ {%- if message.role == "system" %}
105
+ {%- if not loop.first %}
106
+ {{- raise_exception('System message must be at the beginning.') }}
107
+ {%- endif %}
108
+ {%- elif message.role == "user" %}
109
+ {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
110
+ {%- elif message.role == "assistant" %}
111
+ {%- set reasoning_content = '' %}
112
+ {%- if message.reasoning_content is string %}
113
+ {%- set reasoning_content = message.reasoning_content %}
114
+ {%- endif %}
115
+ {%- set reasoning_content = reasoning_content|trim %}
116
+ {%- if preserve_thinking is undefined or preserve_thinking is true or loop.index0 > ns.last_query_index %}
117
+ {{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content + '\n</think>\n\n' + content }}
118
+ {%- else %}
119
+ {{- '<|im_start|>' + message.role + '\n' + content }}
120
+ {%- endif %}
121
+ {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
122
+ {%- for tool_call in message.tool_calls %}
123
+ {%- if tool_call.function is defined %}
124
+ {%- set tool_call = tool_call.function %}
125
+ {%- endif %}
126
+ {%- if loop.first %}
127
+ {%- if content|trim %}
128
+ {{- '\n\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
129
+ {%- else %}
130
+ {{- '<tool_call>\n<function=' + tool_call.name + '>\n' }}
131
+ {%- endif %}
132
+ {%- else %}
133
+ {{- '\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
134
+ {%- endif %}
135
+ {%- if tool_call.arguments is defined and tool_call.arguments != '' %}
136
+ {%- for args_name, args_value in tool_call.arguments|items %}
137
+ {{- '<parameter=' + args_name + '>\n' }}
138
+ {%- set args_value = args_value | string if args_value is string else args_value | tojson | safe %}
139
+ {{- args_value }}
140
+ {{- '\n</parameter>\n' }}
141
+ {%- endfor %}
142
+ {%- endif %}
143
+ {{- '</function>\n</tool_call>' }}
144
+ {%- endfor %}
145
+ {%- endif %}
146
+ {{- '<|im_end|>\n' }}
147
+ {%- elif message.role == "tool" %}
148
+ {%- if loop.previtem and loop.previtem.role != "tool" %}
149
+ {{- '<|im_start|>user' }}
150
+ {%- endif %}
151
+ {{- '\n<tool_response>\n' }}
152
+ {{- content }}
153
+ {{- '\n</tool_response>' }}
154
+ {%- if not loop.last and loop.nextitem.role != "tool" %}
155
+ {{- '<|im_end|>\n' }}
156
+ {%- elif loop.last %}
157
+ {{- '<|im_end|>\n' }}
158
+ {%- endif %}
159
+ {%- else %}
160
+ {{- raise_exception('Unexpected message role.') }}
161
+ {%- endif %}
162
+ {%- endfor %}
163
+ {%- if add_generation_prompt %}
164
+ {{- '<|im_start|>assistant\n' }}
165
+ {%- if enable_thinking is defined and enable_thinking is false %}
166
+ {{- '<think>\n\n</think>\n\n' }}
167
+ {%- else %}
168
+ {{- '<think>\n' }}
169
+ {%- endif %}
170
+ {%- endif %}
chat_template.obliterated-original.jinja ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- for message in messages %}
2
+ {%- if message.role == "system" %}
3
+ <|im_start|>system
4
+ {{ message.content }}<|im_end|>
5
+ {%- elif message.role == "user" %}
6
+ <|im_start|>user
7
+ {{ message.content }}<|im_end|>
8
+ {%- elif message.role == "assistant" %}
9
+ <|im_start|>assistant
10
+ {{ message.content }}<|im_end|>
11
+ {%- endif %}
12
+ {%- endfor %}
13
+ {%- if add_generation_prompt %}
14
+ <|im_start|>assistant
15
+ <think>
16
+
17
+ </think>
18
+
19
+ {%- endif %}
config.json ADDED
@@ -0,0 +1,483 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen3_5ForConditionalGeneration"
4
+ ],
5
+ "dtype": "bfloat16",
6
+ "eos_token_id": 248046,
7
+ "image_token_id": 248056,
8
+ "language_model_only": false,
9
+ "model_type": "qwen3_5",
10
+ "pad_token_id": 248044,
11
+ "quantization_config": {
12
+ "config_groups": {
13
+ "group_0": {
14
+ "format": "pack-quantized",
15
+ "input_activations": null,
16
+ "output_activations": null,
17
+ "targets": [
18
+ "Linear"
19
+ ],
20
+ "weights": {
21
+ "actorder": null,
22
+ "block_structure": null,
23
+ "dynamic": false,
24
+ "group_size": 128,
25
+ "num_bits": 4,
26
+ "observer": "memoryless_minmax",
27
+ "observer_kwargs": {},
28
+ "scale_dtype": null,
29
+ "strategy": "group",
30
+ "symmetric": false,
31
+ "type": "int",
32
+ "zp_dtype": "torch.int8"
33
+ }
34
+ }
35
+ },
36
+ "format": "pack-quantized",
37
+ "global_compression_ratio": null,
38
+ "ignore": [
39
+ "model.visual.blocks.0.attn.qkv",
40
+ "model.visual.blocks.0.attn.proj",
41
+ "model.visual.blocks.0.mlp.linear_fc1",
42
+ "model.visual.blocks.0.mlp.linear_fc2",
43
+ "model.visual.blocks.1.attn.qkv",
44
+ "model.visual.blocks.1.attn.proj",
45
+ "model.visual.blocks.1.mlp.linear_fc1",
46
+ "model.visual.blocks.1.mlp.linear_fc2",
47
+ "model.visual.blocks.2.attn.qkv",
48
+ "model.visual.blocks.2.attn.proj",
49
+ "model.visual.blocks.2.mlp.linear_fc1",
50
+ "model.visual.blocks.2.mlp.linear_fc2",
51
+ "model.visual.blocks.3.attn.qkv",
52
+ "model.visual.blocks.3.attn.proj",
53
+ "model.visual.blocks.3.mlp.linear_fc1",
54
+ "model.visual.blocks.3.mlp.linear_fc2",
55
+ "model.visual.blocks.4.attn.qkv",
56
+ "model.visual.blocks.4.attn.proj",
57
+ "model.visual.blocks.4.mlp.linear_fc1",
58
+ "model.visual.blocks.4.mlp.linear_fc2",
59
+ "model.visual.blocks.5.attn.qkv",
60
+ "model.visual.blocks.5.attn.proj",
61
+ "model.visual.blocks.5.mlp.linear_fc1",
62
+ "model.visual.blocks.5.mlp.linear_fc2",
63
+ "model.visual.blocks.6.attn.qkv",
64
+ "model.visual.blocks.6.attn.proj",
65
+ "model.visual.blocks.6.mlp.linear_fc1",
66
+ "model.visual.blocks.6.mlp.linear_fc2",
67
+ "model.visual.blocks.7.attn.qkv",
68
+ "model.visual.blocks.7.attn.proj",
69
+ "model.visual.blocks.7.mlp.linear_fc1",
70
+ "model.visual.blocks.7.mlp.linear_fc2",
71
+ "model.visual.blocks.8.attn.qkv",
72
+ "model.visual.blocks.8.attn.proj",
73
+ "model.visual.blocks.8.mlp.linear_fc1",
74
+ "model.visual.blocks.8.mlp.linear_fc2",
75
+ "model.visual.blocks.9.attn.qkv",
76
+ "model.visual.blocks.9.attn.proj",
77
+ "model.visual.blocks.9.mlp.linear_fc1",
78
+ "model.visual.blocks.9.mlp.linear_fc2",
79
+ "model.visual.blocks.10.attn.qkv",
80
+ "model.visual.blocks.10.attn.proj",
81
+ "model.visual.blocks.10.mlp.linear_fc1",
82
+ "model.visual.blocks.10.mlp.linear_fc2",
83
+ "model.visual.blocks.11.attn.qkv",
84
+ "model.visual.blocks.11.attn.proj",
85
+ "model.visual.blocks.11.mlp.linear_fc1",
86
+ "model.visual.blocks.11.mlp.linear_fc2",
87
+ "model.visual.blocks.12.attn.qkv",
88
+ "model.visual.blocks.12.attn.proj",
89
+ "model.visual.blocks.12.mlp.linear_fc1",
90
+ "model.visual.blocks.12.mlp.linear_fc2",
91
+ "model.visual.blocks.13.attn.qkv",
92
+ "model.visual.blocks.13.attn.proj",
93
+ "model.visual.blocks.13.mlp.linear_fc1",
94
+ "model.visual.blocks.13.mlp.linear_fc2",
95
+ "model.visual.blocks.14.attn.qkv",
96
+ "model.visual.blocks.14.attn.proj",
97
+ "model.visual.blocks.14.mlp.linear_fc1",
98
+ "model.visual.blocks.14.mlp.linear_fc2",
99
+ "model.visual.blocks.15.attn.qkv",
100
+ "model.visual.blocks.15.attn.proj",
101
+ "model.visual.blocks.15.mlp.linear_fc1",
102
+ "model.visual.blocks.15.mlp.linear_fc2",
103
+ "model.visual.blocks.16.attn.qkv",
104
+ "model.visual.blocks.16.attn.proj",
105
+ "model.visual.blocks.16.mlp.linear_fc1",
106
+ "model.visual.blocks.16.mlp.linear_fc2",
107
+ "model.visual.blocks.17.attn.qkv",
108
+ "model.visual.blocks.17.attn.proj",
109
+ "model.visual.blocks.17.mlp.linear_fc1",
110
+ "model.visual.blocks.17.mlp.linear_fc2",
111
+ "model.visual.blocks.18.attn.qkv",
112
+ "model.visual.blocks.18.attn.proj",
113
+ "model.visual.blocks.18.mlp.linear_fc1",
114
+ "model.visual.blocks.18.mlp.linear_fc2",
115
+ "model.visual.blocks.19.attn.qkv",
116
+ "model.visual.blocks.19.attn.proj",
117
+ "model.visual.blocks.19.mlp.linear_fc1",
118
+ "model.visual.blocks.19.mlp.linear_fc2",
119
+ "model.visual.blocks.20.attn.qkv",
120
+ "model.visual.blocks.20.attn.proj",
121
+ "model.visual.blocks.20.mlp.linear_fc1",
122
+ "model.visual.blocks.20.mlp.linear_fc2",
123
+ "model.visual.blocks.21.attn.qkv",
124
+ "model.visual.blocks.21.attn.proj",
125
+ "model.visual.blocks.21.mlp.linear_fc1",
126
+ "model.visual.blocks.21.mlp.linear_fc2",
127
+ "model.visual.blocks.22.attn.qkv",
128
+ "model.visual.blocks.22.attn.proj",
129
+ "model.visual.blocks.22.mlp.linear_fc1",
130
+ "model.visual.blocks.22.mlp.linear_fc2",
131
+ "model.visual.blocks.23.attn.qkv",
132
+ "model.visual.blocks.23.attn.proj",
133
+ "model.visual.blocks.23.mlp.linear_fc1",
134
+ "model.visual.blocks.23.mlp.linear_fc2",
135
+ "model.visual.blocks.24.attn.qkv",
136
+ "model.visual.blocks.24.attn.proj",
137
+ "model.visual.blocks.24.mlp.linear_fc1",
138
+ "model.visual.blocks.24.mlp.linear_fc2",
139
+ "model.visual.blocks.25.attn.qkv",
140
+ "model.visual.blocks.25.attn.proj",
141
+ "model.visual.blocks.25.mlp.linear_fc1",
142
+ "model.visual.blocks.25.mlp.linear_fc2",
143
+ "model.visual.blocks.26.attn.qkv",
144
+ "model.visual.blocks.26.attn.proj",
145
+ "model.visual.blocks.26.mlp.linear_fc1",
146
+ "model.visual.blocks.26.mlp.linear_fc2",
147
+ "model.visual.merger.linear_fc1",
148
+ "model.visual.merger.linear_fc2",
149
+ "model.language_model.layers.0.linear_attn",
150
+ "model.language_model.layers.0.linear_attn.norm",
151
+ "model.language_model.layers.0.linear_attn.in_proj_b",
152
+ "model.language_model.layers.0.linear_attn.in_proj_a",
153
+ "model.language_model.layers.1.linear_attn",
154
+ "model.language_model.layers.1.linear_attn.norm",
155
+ "model.language_model.layers.1.linear_attn.in_proj_b",
156
+ "model.language_model.layers.1.linear_attn.in_proj_a",
157
+ "model.language_model.layers.2.linear_attn",
158
+ "model.language_model.layers.2.linear_attn.norm",
159
+ "model.language_model.layers.2.linear_attn.in_proj_b",
160
+ "model.language_model.layers.2.linear_attn.in_proj_a",
161
+ "model.language_model.layers.4.linear_attn",
162
+ "model.language_model.layers.4.linear_attn.norm",
163
+ "model.language_model.layers.4.linear_attn.in_proj_b",
164
+ "model.language_model.layers.4.linear_attn.in_proj_a",
165
+ "model.language_model.layers.5.linear_attn",
166
+ "model.language_model.layers.5.linear_attn.norm",
167
+ "model.language_model.layers.5.linear_attn.in_proj_b",
168
+ "model.language_model.layers.5.linear_attn.in_proj_a",
169
+ "model.language_model.layers.6.linear_attn",
170
+ "model.language_model.layers.6.linear_attn.norm",
171
+ "model.language_model.layers.6.linear_attn.in_proj_b",
172
+ "model.language_model.layers.6.linear_attn.in_proj_a",
173
+ "model.language_model.layers.8.linear_attn",
174
+ "model.language_model.layers.8.linear_attn.norm",
175
+ "model.language_model.layers.8.linear_attn.in_proj_b",
176
+ "model.language_model.layers.8.linear_attn.in_proj_a",
177
+ "model.language_model.layers.9.linear_attn",
178
+ "model.language_model.layers.9.linear_attn.norm",
179
+ "model.language_model.layers.9.linear_attn.in_proj_b",
180
+ "model.language_model.layers.9.linear_attn.in_proj_a",
181
+ "model.language_model.layers.10.linear_attn",
182
+ "model.language_model.layers.10.linear_attn.norm",
183
+ "model.language_model.layers.10.linear_attn.in_proj_b",
184
+ "model.language_model.layers.10.linear_attn.in_proj_a",
185
+ "model.language_model.layers.12.linear_attn",
186
+ "model.language_model.layers.12.linear_attn.norm",
187
+ "model.language_model.layers.12.linear_attn.in_proj_b",
188
+ "model.language_model.layers.12.linear_attn.in_proj_a",
189
+ "model.language_model.layers.13.linear_attn",
190
+ "model.language_model.layers.13.linear_attn.norm",
191
+ "model.language_model.layers.13.linear_attn.in_proj_b",
192
+ "model.language_model.layers.13.linear_attn.in_proj_a",
193
+ "model.language_model.layers.14.linear_attn",
194
+ "model.language_model.layers.14.linear_attn.norm",
195
+ "model.language_model.layers.14.linear_attn.in_proj_b",
196
+ "model.language_model.layers.14.linear_attn.in_proj_a",
197
+ "model.language_model.layers.16.linear_attn",
198
+ "model.language_model.layers.16.linear_attn.norm",
199
+ "model.language_model.layers.16.linear_attn.in_proj_b",
200
+ "model.language_model.layers.16.linear_attn.in_proj_a",
201
+ "model.language_model.layers.17.linear_attn",
202
+ "model.language_model.layers.17.linear_attn.norm",
203
+ "model.language_model.layers.17.linear_attn.in_proj_b",
204
+ "model.language_model.layers.17.linear_attn.in_proj_a",
205
+ "model.language_model.layers.18.linear_attn",
206
+ "model.language_model.layers.18.linear_attn.norm",
207
+ "model.language_model.layers.18.linear_attn.in_proj_b",
208
+ "model.language_model.layers.18.linear_attn.in_proj_a",
209
+ "model.language_model.layers.20.linear_attn",
210
+ "model.language_model.layers.20.linear_attn.norm",
211
+ "model.language_model.layers.20.linear_attn.in_proj_b",
212
+ "model.language_model.layers.20.linear_attn.in_proj_a",
213
+ "model.language_model.layers.21.linear_attn",
214
+ "model.language_model.layers.21.linear_attn.norm",
215
+ "model.language_model.layers.21.linear_attn.in_proj_b",
216
+ "model.language_model.layers.21.linear_attn.in_proj_a",
217
+ "model.language_model.layers.22.linear_attn",
218
+ "model.language_model.layers.22.linear_attn.norm",
219
+ "model.language_model.layers.22.linear_attn.in_proj_b",
220
+ "model.language_model.layers.22.linear_attn.in_proj_a",
221
+ "model.language_model.layers.24.linear_attn",
222
+ "model.language_model.layers.24.linear_attn.norm",
223
+ "model.language_model.layers.24.linear_attn.in_proj_b",
224
+ "model.language_model.layers.24.linear_attn.in_proj_a",
225
+ "model.language_model.layers.25.linear_attn",
226
+ "model.language_model.layers.25.linear_attn.norm",
227
+ "model.language_model.layers.25.linear_attn.in_proj_b",
228
+ "model.language_model.layers.25.linear_attn.in_proj_a",
229
+ "model.language_model.layers.26.linear_attn",
230
+ "model.language_model.layers.26.linear_attn.norm",
231
+ "model.language_model.layers.26.linear_attn.in_proj_b",
232
+ "model.language_model.layers.26.linear_attn.in_proj_a",
233
+ "model.language_model.layers.28.linear_attn",
234
+ "model.language_model.layers.28.linear_attn.norm",
235
+ "model.language_model.layers.28.linear_attn.in_proj_b",
236
+ "model.language_model.layers.28.linear_attn.in_proj_a",
237
+ "model.language_model.layers.29.linear_attn",
238
+ "model.language_model.layers.29.linear_attn.norm",
239
+ "model.language_model.layers.29.linear_attn.in_proj_b",
240
+ "model.language_model.layers.29.linear_attn.in_proj_a",
241
+ "model.language_model.layers.30.linear_attn",
242
+ "model.language_model.layers.30.linear_attn.norm",
243
+ "model.language_model.layers.30.linear_attn.in_proj_b",
244
+ "model.language_model.layers.30.linear_attn.in_proj_a",
245
+ "model.language_model.layers.32.linear_attn",
246
+ "model.language_model.layers.32.linear_attn.norm",
247
+ "model.language_model.layers.32.linear_attn.in_proj_b",
248
+ "model.language_model.layers.32.linear_attn.in_proj_a",
249
+ "model.language_model.layers.33.linear_attn",
250
+ "model.language_model.layers.33.linear_attn.norm",
251
+ "model.language_model.layers.33.linear_attn.in_proj_b",
252
+ "model.language_model.layers.33.linear_attn.in_proj_a",
253
+ "model.language_model.layers.34.linear_attn",
254
+ "model.language_model.layers.34.linear_attn.norm",
255
+ "model.language_model.layers.34.linear_attn.in_proj_b",
256
+ "model.language_model.layers.34.linear_attn.in_proj_a",
257
+ "model.language_model.layers.36.linear_attn",
258
+ "model.language_model.layers.36.linear_attn.norm",
259
+ "model.language_model.layers.36.linear_attn.in_proj_b",
260
+ "model.language_model.layers.36.linear_attn.in_proj_a",
261
+ "model.language_model.layers.37.linear_attn",
262
+ "model.language_model.layers.37.linear_attn.norm",
263
+ "model.language_model.layers.37.linear_attn.in_proj_b",
264
+ "model.language_model.layers.37.linear_attn.in_proj_a",
265
+ "model.language_model.layers.38.linear_attn",
266
+ "model.language_model.layers.38.linear_attn.norm",
267
+ "model.language_model.layers.38.linear_attn.in_proj_b",
268
+ "model.language_model.layers.38.linear_attn.in_proj_a",
269
+ "model.language_model.layers.40.linear_attn",
270
+ "model.language_model.layers.40.linear_attn.norm",
271
+ "model.language_model.layers.40.linear_attn.in_proj_b",
272
+ "model.language_model.layers.40.linear_attn.in_proj_a",
273
+ "model.language_model.layers.41.linear_attn",
274
+ "model.language_model.layers.41.linear_attn.norm",
275
+ "model.language_model.layers.41.linear_attn.in_proj_b",
276
+ "model.language_model.layers.41.linear_attn.in_proj_a",
277
+ "model.language_model.layers.42.linear_attn",
278
+ "model.language_model.layers.42.linear_attn.norm",
279
+ "model.language_model.layers.42.linear_attn.in_proj_b",
280
+ "model.language_model.layers.42.linear_attn.in_proj_a",
281
+ "model.language_model.layers.44.linear_attn",
282
+ "model.language_model.layers.44.linear_attn.norm",
283
+ "model.language_model.layers.44.linear_attn.in_proj_b",
284
+ "model.language_model.layers.44.linear_attn.in_proj_a",
285
+ "model.language_model.layers.45.linear_attn",
286
+ "model.language_model.layers.45.linear_attn.norm",
287
+ "model.language_model.layers.45.linear_attn.in_proj_b",
288
+ "model.language_model.layers.45.linear_attn.in_proj_a",
289
+ "model.language_model.layers.46.linear_attn",
290
+ "model.language_model.layers.46.linear_attn.norm",
291
+ "model.language_model.layers.46.linear_attn.in_proj_b",
292
+ "model.language_model.layers.46.linear_attn.in_proj_a",
293
+ "model.language_model.layers.48.linear_attn",
294
+ "model.language_model.layers.48.linear_attn.norm",
295
+ "model.language_model.layers.48.linear_attn.in_proj_b",
296
+ "model.language_model.layers.48.linear_attn.in_proj_a",
297
+ "model.language_model.layers.49.linear_attn",
298
+ "model.language_model.layers.49.linear_attn.norm",
299
+ "model.language_model.layers.49.linear_attn.in_proj_b",
300
+ "model.language_model.layers.49.linear_attn.in_proj_a",
301
+ "model.language_model.layers.50.linear_attn",
302
+ "model.language_model.layers.50.linear_attn.norm",
303
+ "model.language_model.layers.50.linear_attn.in_proj_b",
304
+ "model.language_model.layers.50.linear_attn.in_proj_a",
305
+ "model.language_model.layers.52.linear_attn",
306
+ "model.language_model.layers.52.linear_attn.norm",
307
+ "model.language_model.layers.52.linear_attn.in_proj_b",
308
+ "model.language_model.layers.52.linear_attn.in_proj_a",
309
+ "model.language_model.layers.53.linear_attn",
310
+ "model.language_model.layers.53.linear_attn.norm",
311
+ "model.language_model.layers.53.linear_attn.in_proj_b",
312
+ "model.language_model.layers.53.linear_attn.in_proj_a",
313
+ "model.language_model.layers.54.linear_attn",
314
+ "model.language_model.layers.54.linear_attn.norm",
315
+ "model.language_model.layers.54.linear_attn.in_proj_b",
316
+ "model.language_model.layers.54.linear_attn.in_proj_a",
317
+ "model.language_model.layers.56.linear_attn",
318
+ "model.language_model.layers.56.linear_attn.norm",
319
+ "model.language_model.layers.56.linear_attn.in_proj_b",
320
+ "model.language_model.layers.56.linear_attn.in_proj_a",
321
+ "model.language_model.layers.57.linear_attn",
322
+ "model.language_model.layers.57.linear_attn.norm",
323
+ "model.language_model.layers.57.linear_attn.in_proj_b",
324
+ "model.language_model.layers.57.linear_attn.in_proj_a",
325
+ "model.language_model.layers.58.linear_attn",
326
+ "model.language_model.layers.58.linear_attn.norm",
327
+ "model.language_model.layers.58.linear_attn.in_proj_b",
328
+ "model.language_model.layers.58.linear_attn.in_proj_a",
329
+ "model.language_model.layers.60.linear_attn",
330
+ "model.language_model.layers.60.linear_attn.norm",
331
+ "model.language_model.layers.60.linear_attn.in_proj_b",
332
+ "model.language_model.layers.60.linear_attn.in_proj_a",
333
+ "model.language_model.layers.61.linear_attn",
334
+ "model.language_model.layers.61.linear_attn.norm",
335
+ "model.language_model.layers.61.linear_attn.in_proj_b",
336
+ "model.language_model.layers.61.linear_attn.in_proj_a",
337
+ "model.language_model.layers.62.linear_attn",
338
+ "model.language_model.layers.62.linear_attn.norm",
339
+ "model.language_model.layers.62.linear_attn.in_proj_b",
340
+ "model.language_model.layers.62.linear_attn.in_proj_a",
341
+ "lm_head"
342
+ ],
343
+ "kv_cache_scheme": null,
344
+ "quant_method": "compressed-tensors",
345
+ "quantization_status": "compressed",
346
+ "sparsity_config": {},
347
+ "transform_config": {},
348
+ "version": "0.18.0"
349
+ },
350
+ "text_config": {
351
+ "attention_bias": false,
352
+ "attention_dropout": 0.0,
353
+ "attn_output_gate": true,
354
+ "bos_token_id": 248044,
355
+ "dtype": "bfloat16",
356
+ "eos_token_id": 248044,
357
+ "full_attention_interval": 4,
358
+ "head_dim": 256,
359
+ "hidden_act": "silu",
360
+ "hidden_size": 5120,
361
+ "initializer_range": 0.02,
362
+ "intermediate_size": 17408,
363
+ "layer_types": [
364
+ "linear_attention",
365
+ "linear_attention",
366
+ "linear_attention",
367
+ "full_attention",
368
+ "linear_attention",
369
+ "linear_attention",
370
+ "linear_attention",
371
+ "full_attention",
372
+ "linear_attention",
373
+ "linear_attention",
374
+ "linear_attention",
375
+ "full_attention",
376
+ "linear_attention",
377
+ "linear_attention",
378
+ "linear_attention",
379
+ "full_attention",
380
+ "linear_attention",
381
+ "linear_attention",
382
+ "linear_attention",
383
+ "full_attention",
384
+ "linear_attention",
385
+ "linear_attention",
386
+ "linear_attention",
387
+ "full_attention",
388
+ "linear_attention",
389
+ "linear_attention",
390
+ "linear_attention",
391
+ "full_attention",
392
+ "linear_attention",
393
+ "linear_attention",
394
+ "linear_attention",
395
+ "full_attention",
396
+ "linear_attention",
397
+ "linear_attention",
398
+ "linear_attention",
399
+ "full_attention",
400
+ "linear_attention",
401
+ "linear_attention",
402
+ "linear_attention",
403
+ "full_attention",
404
+ "linear_attention",
405
+ "linear_attention",
406
+ "linear_attention",
407
+ "full_attention",
408
+ "linear_attention",
409
+ "linear_attention",
410
+ "linear_attention",
411
+ "full_attention",
412
+ "linear_attention",
413
+ "linear_attention",
414
+ "linear_attention",
415
+ "full_attention",
416
+ "linear_attention",
417
+ "linear_attention",
418
+ "linear_attention",
419
+ "full_attention",
420
+ "linear_attention",
421
+ "linear_attention",
422
+ "linear_attention",
423
+ "full_attention",
424
+ "linear_attention",
425
+ "linear_attention",
426
+ "linear_attention",
427
+ "full_attention"
428
+ ],
429
+ "linear_conv_kernel_dim": 4,
430
+ "linear_key_head_dim": 128,
431
+ "linear_num_key_heads": 16,
432
+ "linear_num_value_heads": 48,
433
+ "linear_value_head_dim": 128,
434
+ "mamba_ssm_dtype": "float32",
435
+ "max_position_embeddings": 262144,
436
+ "model_type": "qwen3_5_text",
437
+ "mtp_num_hidden_layers": 1,
438
+ "mtp_use_dedicated_embeddings": false,
439
+ "num_attention_heads": 24,
440
+ "num_hidden_layers": 64,
441
+ "num_key_value_heads": 4,
442
+ "output_gate_type": "swish",
443
+ "pad_token_id": null,
444
+ "partial_rotary_factor": 0.25,
445
+ "rms_norm_eps": 1e-06,
446
+ "rope_parameters": {
447
+ "mrope_interleaved": true,
448
+ "mrope_section": [
449
+ 11,
450
+ 11,
451
+ 10
452
+ ],
453
+ "partial_rotary_factor": 0.25,
454
+ "rope_theta": 10000000,
455
+ "rope_type": "default"
456
+ },
457
+ "tie_word_embeddings": false,
458
+ "use_cache": true,
459
+ "vocab_size": 248320
460
+ },
461
+ "tie_word_embeddings": false,
462
+ "transformers_version": "5.14.1",
463
+ "video_token_id": 248057,
464
+ "vision_config": {
465
+ "deepstack_visual_indexes": [],
466
+ "depth": 27,
467
+ "dtype": "bfloat16",
468
+ "hidden_act": "gelu_pytorch_tanh",
469
+ "hidden_size": 1152,
470
+ "in_channels": 3,
471
+ "initializer_range": 0.02,
472
+ "intermediate_size": 4304,
473
+ "model_type": "qwen3_5_vision",
474
+ "num_heads": 16,
475
+ "num_position_embeddings": 2304,
476
+ "out_hidden_size": 5120,
477
+ "patch_size": 16,
478
+ "spatial_merge_size": 2,
479
+ "temporal_patch_size": 2
480
+ },
481
+ "vision_end_token_id": 248054,
482
+ "vision_start_token_id": 248053
483
+ }
generation_config.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 248044,
3
+ "do_sample": true,
4
+ "eos_token_id": [
5
+ 248046
6
+ ],
7
+ "pad_token_id": 248044,
8
+ "temperature": 1.0,
9
+ "top_k": 20,
10
+ "top_p": 0.95,
11
+ "transformers_version": "5.14.1"
12
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model-mtp.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:90fa0e3eed5a647c035c6df9ecabc416c0f8d573ff84ac12485b085f00a7cdf2
3
+ size 849400424
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1adf9ff5b3ce8b3566b2d89f3b70115b043904b05a8ac699a13424b6cfedc90b
3
+ size 18698467264
model.safetensors.index.json ADDED
The diff for this file is too large to render. See raw diff
 
preprocessor_config.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "size": {
3
+ "longest_edge": 16777216,
4
+ "shortest_edge": 65536
5
+ },
6
+ "patch_size": 16,
7
+ "temporal_patch_size": 2,
8
+ "merge_size": 2,
9
+ "image_mean": [
10
+ 0.5,
11
+ 0.5,
12
+ 0.5
13
+ ],
14
+ "image_std": [
15
+ 0.5,
16
+ 0.5,
17
+ 0.5
18
+ ],
19
+ "processor_class": "Qwen3VLProcessor",
20
+ "image_processor_type": "Qwen2VLImageProcessorFast"
21
+ }
processor_config.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "image_processor": {
3
+ "do_convert_rgb": true,
4
+ "do_normalize": true,
5
+ "do_rescale": true,
6
+ "do_resize": true,
7
+ "image_mean": [
8
+ 0.5,
9
+ 0.5,
10
+ 0.5
11
+ ],
12
+ "image_processor_type": "Qwen2VLImageProcessor",
13
+ "image_std": [
14
+ 0.5,
15
+ 0.5,
16
+ 0.5
17
+ ],
18
+ "merge_size": 2,
19
+ "patch_size": 16,
20
+ "resample": 3,
21
+ "rescale_factor": 0.00392156862745098,
22
+ "size": {
23
+ "longest_edge": 16777216,
24
+ "shortest_edge": 65536
25
+ },
26
+ "temporal_patch_size": 2
27
+ },
28
+ "processor_class": "Qwen3VLProcessor",
29
+ "video_processor": {
30
+ "do_convert_rgb": true,
31
+ "do_normalize": true,
32
+ "do_rescale": true,
33
+ "do_resize": true,
34
+ "do_sample_frames": true,
35
+ "fps": 2,
36
+ "image_mean": [
37
+ 0.5,
38
+ 0.5,
39
+ 0.5
40
+ ],
41
+ "image_std": [
42
+ 0.5,
43
+ 0.5,
44
+ 0.5
45
+ ],
46
+ "max_frames": 768,
47
+ "merge_size": 2,
48
+ "min_frames": 4,
49
+ "patch_size": 16,
50
+ "resample": 3,
51
+ "rescale_factor": 0.00392156862745098,
52
+ "return_metadata": false,
53
+ "size": {
54
+ "longest_edge": 25165824,
55
+ "shortest_edge": 4096
56
+ },
57
+ "temporal_patch_size": 2,
58
+ "video_processor_type": "Qwen3VLVideoProcessor"
59
+ }
60
+ }
recipe.yaml ADDED
@@ -0,0 +1,605 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ default_stage:
2
+ default_modifiers:
3
+ AWQModifier:
4
+ requires_calibration_data: true
5
+ mappings:
6
+ - smooth_layer: re:.*layers\.0\.input_layernorm$
7
+ balance_layers: ['re:.*layers\.0\.linear_attn\.in_proj_qkv$', 're:.*layers\.0\.linear_attn\.in_proj_z$']
8
+ activation_hook_target: null
9
+ - smooth_layer: re:.*layers\.0\.post_attention_layernorm$
10
+ balance_layers: ['re:.*layers\.0\.mlp\.gate_proj$', 're:.*layers\.0\.mlp\.up_proj$']
11
+ activation_hook_target: null
12
+ - smooth_layer: re:.*layers\.0\.mlp\.up_proj$
13
+ balance_layers: ['re:.*layers\.0\.mlp\.down_proj$']
14
+ activation_hook_target: null
15
+ - smooth_layer: re:.*layers\.1\.input_layernorm$
16
+ balance_layers: ['re:.*layers\.1\.linear_attn\.in_proj_qkv$', 're:.*layers\.1\.linear_attn\.in_proj_z$']
17
+ activation_hook_target: null
18
+ - smooth_layer: re:.*layers\.1\.post_attention_layernorm$
19
+ balance_layers: ['re:.*layers\.1\.mlp\.gate_proj$', 're:.*layers\.1\.mlp\.up_proj$']
20
+ activation_hook_target: null
21
+ - smooth_layer: re:.*layers\.1\.mlp\.up_proj$
22
+ balance_layers: ['re:.*layers\.1\.mlp\.down_proj$']
23
+ activation_hook_target: null
24
+ - smooth_layer: re:.*layers\.2\.input_layernorm$
25
+ balance_layers: ['re:.*layers\.2\.linear_attn\.in_proj_qkv$', 're:.*layers\.2\.linear_attn\.in_proj_z$']
26
+ activation_hook_target: null
27
+ - smooth_layer: re:.*layers\.2\.post_attention_layernorm$
28
+ balance_layers: ['re:.*layers\.2\.mlp\.gate_proj$', 're:.*layers\.2\.mlp\.up_proj$']
29
+ activation_hook_target: null
30
+ - smooth_layer: re:.*layers\.2\.mlp\.up_proj$
31
+ balance_layers: ['re:.*layers\.2\.mlp\.down_proj$']
32
+ activation_hook_target: null
33
+ - smooth_layer: re:.*layers\.3\.input_layernorm$
34
+ balance_layers: ['re:.*layers\.3\.self_attn\.q_proj$', 're:.*layers\.3\.self_attn\.k_proj$',
35
+ 're:.*layers\.3\.self_attn\.v_proj$']
36
+ activation_hook_target: null
37
+ - smooth_layer: re:.*layers\.3\.post_attention_layernorm$
38
+ balance_layers: ['re:.*layers\.3\.mlp\.gate_proj$', 're:.*layers\.3\.mlp\.up_proj$']
39
+ activation_hook_target: null
40
+ - smooth_layer: re:.*layers\.3\.mlp\.up_proj$
41
+ balance_layers: ['re:.*layers\.3\.mlp\.down_proj$']
42
+ activation_hook_target: null
43
+ - smooth_layer: re:.*layers\.4\.input_layernorm$
44
+ balance_layers: ['re:.*layers\.4\.linear_attn\.in_proj_qkv$', 're:.*layers\.4\.linear_attn\.in_proj_z$']
45
+ activation_hook_target: null
46
+ - smooth_layer: re:.*layers\.4\.post_attention_layernorm$
47
+ balance_layers: ['re:.*layers\.4\.mlp\.gate_proj$', 're:.*layers\.4\.mlp\.up_proj$']
48
+ activation_hook_target: null
49
+ - smooth_layer: re:.*layers\.4\.mlp\.up_proj$
50
+ balance_layers: ['re:.*layers\.4\.mlp\.down_proj$']
51
+ activation_hook_target: null
52
+ - smooth_layer: re:.*layers\.5\.input_layernorm$
53
+ balance_layers: ['re:.*layers\.5\.linear_attn\.in_proj_qkv$', 're:.*layers\.5\.linear_attn\.in_proj_z$']
54
+ activation_hook_target: null
55
+ - smooth_layer: re:.*layers\.5\.post_attention_layernorm$
56
+ balance_layers: ['re:.*layers\.5\.mlp\.gate_proj$', 're:.*layers\.5\.mlp\.up_proj$']
57
+ activation_hook_target: null
58
+ - smooth_layer: re:.*layers\.5\.mlp\.up_proj$
59
+ balance_layers: ['re:.*layers\.5\.mlp\.down_proj$']
60
+ activation_hook_target: null
61
+ - smooth_layer: re:.*layers\.6\.input_layernorm$
62
+ balance_layers: ['re:.*layers\.6\.linear_attn\.in_proj_qkv$', 're:.*layers\.6\.linear_attn\.in_proj_z$']
63
+ activation_hook_target: null
64
+ - smooth_layer: re:.*layers\.6\.post_attention_layernorm$
65
+ balance_layers: ['re:.*layers\.6\.mlp\.gate_proj$', 're:.*layers\.6\.mlp\.up_proj$']
66
+ activation_hook_target: null
67
+ - smooth_layer: re:.*layers\.6\.mlp\.up_proj$
68
+ balance_layers: ['re:.*layers\.6\.mlp\.down_proj$']
69
+ activation_hook_target: null
70
+ - smooth_layer: re:.*layers\.7\.input_layernorm$
71
+ balance_layers: ['re:.*layers\.7\.self_attn\.q_proj$', 're:.*layers\.7\.self_attn\.k_proj$',
72
+ 're:.*layers\.7\.self_attn\.v_proj$']
73
+ activation_hook_target: null
74
+ - smooth_layer: re:.*layers\.7\.post_attention_layernorm$
75
+ balance_layers: ['re:.*layers\.7\.mlp\.gate_proj$', 're:.*layers\.7\.mlp\.up_proj$']
76
+ activation_hook_target: null
77
+ - smooth_layer: re:.*layers\.7\.mlp\.up_proj$
78
+ balance_layers: ['re:.*layers\.7\.mlp\.down_proj$']
79
+ activation_hook_target: null
80
+ - smooth_layer: re:.*layers\.8\.input_layernorm$
81
+ balance_layers: ['re:.*layers\.8\.linear_attn\.in_proj_qkv$', 're:.*layers\.8\.linear_attn\.in_proj_z$']
82
+ activation_hook_target: null
83
+ - smooth_layer: re:.*layers\.8\.post_attention_layernorm$
84
+ balance_layers: ['re:.*layers\.8\.mlp\.gate_proj$', 're:.*layers\.8\.mlp\.up_proj$']
85
+ activation_hook_target: null
86
+ - smooth_layer: re:.*layers\.8\.mlp\.up_proj$
87
+ balance_layers: ['re:.*layers\.8\.mlp\.down_proj$']
88
+ activation_hook_target: null
89
+ - smooth_layer: re:.*layers\.9\.input_layernorm$
90
+ balance_layers: ['re:.*layers\.9\.linear_attn\.in_proj_qkv$', 're:.*layers\.9\.linear_attn\.in_proj_z$']
91
+ activation_hook_target: null
92
+ - smooth_layer: re:.*layers\.9\.post_attention_layernorm$
93
+ balance_layers: ['re:.*layers\.9\.mlp\.gate_proj$', 're:.*layers\.9\.mlp\.up_proj$']
94
+ activation_hook_target: null
95
+ - smooth_layer: re:.*layers\.9\.mlp\.up_proj$
96
+ balance_layers: ['re:.*layers\.9\.mlp\.down_proj$']
97
+ activation_hook_target: null
98
+ - smooth_layer: re:.*layers\.10\.input_layernorm$
99
+ balance_layers: ['re:.*layers\.10\.linear_attn\.in_proj_qkv$', 're:.*layers\.10\.linear_attn\.in_proj_z$']
100
+ activation_hook_target: null
101
+ - smooth_layer: re:.*layers\.10\.post_attention_layernorm$
102
+ balance_layers: ['re:.*layers\.10\.mlp\.gate_proj$', 're:.*layers\.10\.mlp\.up_proj$']
103
+ activation_hook_target: null
104
+ - smooth_layer: re:.*layers\.10\.mlp\.up_proj$
105
+ balance_layers: ['re:.*layers\.10\.mlp\.down_proj$']
106
+ activation_hook_target: null
107
+ - smooth_layer: re:.*layers\.11\.input_layernorm$
108
+ balance_layers: ['re:.*layers\.11\.self_attn\.q_proj$', 're:.*layers\.11\.self_attn\.k_proj$',
109
+ 're:.*layers\.11\.self_attn\.v_proj$']
110
+ activation_hook_target: null
111
+ - smooth_layer: re:.*layers\.11\.post_attention_layernorm$
112
+ balance_layers: ['re:.*layers\.11\.mlp\.gate_proj$', 're:.*layers\.11\.mlp\.up_proj$']
113
+ activation_hook_target: null
114
+ - smooth_layer: re:.*layers\.11\.mlp\.up_proj$
115
+ balance_layers: ['re:.*layers\.11\.mlp\.down_proj$']
116
+ activation_hook_target: null
117
+ - smooth_layer: re:.*layers\.12\.input_layernorm$
118
+ balance_layers: ['re:.*layers\.12\.linear_attn\.in_proj_qkv$', 're:.*layers\.12\.linear_attn\.in_proj_z$']
119
+ activation_hook_target: null
120
+ - smooth_layer: re:.*layers\.12\.post_attention_layernorm$
121
+ balance_layers: ['re:.*layers\.12\.mlp\.gate_proj$', 're:.*layers\.12\.mlp\.up_proj$']
122
+ activation_hook_target: null
123
+ - smooth_layer: re:.*layers\.12\.mlp\.up_proj$
124
+ balance_layers: ['re:.*layers\.12\.mlp\.down_proj$']
125
+ activation_hook_target: null
126
+ - smooth_layer: re:.*layers\.13\.input_layernorm$
127
+ balance_layers: ['re:.*layers\.13\.linear_attn\.in_proj_qkv$', 're:.*layers\.13\.linear_attn\.in_proj_z$']
128
+ activation_hook_target: null
129
+ - smooth_layer: re:.*layers\.13\.post_attention_layernorm$
130
+ balance_layers: ['re:.*layers\.13\.mlp\.gate_proj$', 're:.*layers\.13\.mlp\.up_proj$']
131
+ activation_hook_target: null
132
+ - smooth_layer: re:.*layers\.13\.mlp\.up_proj$
133
+ balance_layers: ['re:.*layers\.13\.mlp\.down_proj$']
134
+ activation_hook_target: null
135
+ - smooth_layer: re:.*layers\.14\.input_layernorm$
136
+ balance_layers: ['re:.*layers\.14\.linear_attn\.in_proj_qkv$', 're:.*layers\.14\.linear_attn\.in_proj_z$']
137
+ activation_hook_target: null
138
+ - smooth_layer: re:.*layers\.14\.post_attention_layernorm$
139
+ balance_layers: ['re:.*layers\.14\.mlp\.gate_proj$', 're:.*layers\.14\.mlp\.up_proj$']
140
+ activation_hook_target: null
141
+ - smooth_layer: re:.*layers\.14\.mlp\.up_proj$
142
+ balance_layers: ['re:.*layers\.14\.mlp\.down_proj$']
143
+ activation_hook_target: null
144
+ - smooth_layer: re:.*layers\.15\.input_layernorm$
145
+ balance_layers: ['re:.*layers\.15\.self_attn\.q_proj$', 're:.*layers\.15\.self_attn\.k_proj$',
146
+ 're:.*layers\.15\.self_attn\.v_proj$']
147
+ activation_hook_target: null
148
+ - smooth_layer: re:.*layers\.15\.post_attention_layernorm$
149
+ balance_layers: ['re:.*layers\.15\.mlp\.gate_proj$', 're:.*layers\.15\.mlp\.up_proj$']
150
+ activation_hook_target: null
151
+ - smooth_layer: re:.*layers\.15\.mlp\.up_proj$
152
+ balance_layers: ['re:.*layers\.15\.mlp\.down_proj$']
153
+ activation_hook_target: null
154
+ - smooth_layer: re:.*layers\.16\.input_layernorm$
155
+ balance_layers: ['re:.*layers\.16\.linear_attn\.in_proj_qkv$', 're:.*layers\.16\.linear_attn\.in_proj_z$']
156
+ activation_hook_target: null
157
+ - smooth_layer: re:.*layers\.16\.post_attention_layernorm$
158
+ balance_layers: ['re:.*layers\.16\.mlp\.gate_proj$', 're:.*layers\.16\.mlp\.up_proj$']
159
+ activation_hook_target: null
160
+ - smooth_layer: re:.*layers\.16\.mlp\.up_proj$
161
+ balance_layers: ['re:.*layers\.16\.mlp\.down_proj$']
162
+ activation_hook_target: null
163
+ - smooth_layer: re:.*layers\.17\.input_layernorm$
164
+ balance_layers: ['re:.*layers\.17\.linear_attn\.in_proj_qkv$', 're:.*layers\.17\.linear_attn\.in_proj_z$']
165
+ activation_hook_target: null
166
+ - smooth_layer: re:.*layers\.17\.post_attention_layernorm$
167
+ balance_layers: ['re:.*layers\.17\.mlp\.gate_proj$', 're:.*layers\.17\.mlp\.up_proj$']
168
+ activation_hook_target: null
169
+ - smooth_layer: re:.*layers\.17\.mlp\.up_proj$
170
+ balance_layers: ['re:.*layers\.17\.mlp\.down_proj$']
171
+ activation_hook_target: null
172
+ - smooth_layer: re:.*layers\.18\.input_layernorm$
173
+ balance_layers: ['re:.*layers\.18\.linear_attn\.in_proj_qkv$', 're:.*layers\.18\.linear_attn\.in_proj_z$']
174
+ activation_hook_target: null
175
+ - smooth_layer: re:.*layers\.18\.post_attention_layernorm$
176
+ balance_layers: ['re:.*layers\.18\.mlp\.gate_proj$', 're:.*layers\.18\.mlp\.up_proj$']
177
+ activation_hook_target: null
178
+ - smooth_layer: re:.*layers\.18\.mlp\.up_proj$
179
+ balance_layers: ['re:.*layers\.18\.mlp\.down_proj$']
180
+ activation_hook_target: null
181
+ - smooth_layer: re:.*layers\.19\.input_layernorm$
182
+ balance_layers: ['re:.*layers\.19\.self_attn\.q_proj$', 're:.*layers\.19\.self_attn\.k_proj$',
183
+ 're:.*layers\.19\.self_attn\.v_proj$']
184
+ activation_hook_target: null
185
+ - smooth_layer: re:.*layers\.19\.post_attention_layernorm$
186
+ balance_layers: ['re:.*layers\.19\.mlp\.gate_proj$', 're:.*layers\.19\.mlp\.up_proj$']
187
+ activation_hook_target: null
188
+ - smooth_layer: re:.*layers\.19\.mlp\.up_proj$
189
+ balance_layers: ['re:.*layers\.19\.mlp\.down_proj$']
190
+ activation_hook_target: null
191
+ - smooth_layer: re:.*layers\.20\.input_layernorm$
192
+ balance_layers: ['re:.*layers\.20\.linear_attn\.in_proj_qkv$', 're:.*layers\.20\.linear_attn\.in_proj_z$']
193
+ activation_hook_target: null
194
+ - smooth_layer: re:.*layers\.20\.post_attention_layernorm$
195
+ balance_layers: ['re:.*layers\.20\.mlp\.gate_proj$', 're:.*layers\.20\.mlp\.up_proj$']
196
+ activation_hook_target: null
197
+ - smooth_layer: re:.*layers\.20\.mlp\.up_proj$
198
+ balance_layers: ['re:.*layers\.20\.mlp\.down_proj$']
199
+ activation_hook_target: null
200
+ - smooth_layer: re:.*layers\.21\.input_layernorm$
201
+ balance_layers: ['re:.*layers\.21\.linear_attn\.in_proj_qkv$', 're:.*layers\.21\.linear_attn\.in_proj_z$']
202
+ activation_hook_target: null
203
+ - smooth_layer: re:.*layers\.21\.post_attention_layernorm$
204
+ balance_layers: ['re:.*layers\.21\.mlp\.gate_proj$', 're:.*layers\.21\.mlp\.up_proj$']
205
+ activation_hook_target: null
206
+ - smooth_layer: re:.*layers\.21\.mlp\.up_proj$
207
+ balance_layers: ['re:.*layers\.21\.mlp\.down_proj$']
208
+ activation_hook_target: null
209
+ - smooth_layer: re:.*layers\.22\.input_layernorm$
210
+ balance_layers: ['re:.*layers\.22\.linear_attn\.in_proj_qkv$', 're:.*layers\.22\.linear_attn\.in_proj_z$']
211
+ activation_hook_target: null
212
+ - smooth_layer: re:.*layers\.22\.post_attention_layernorm$
213
+ balance_layers: ['re:.*layers\.22\.mlp\.gate_proj$', 're:.*layers\.22\.mlp\.up_proj$']
214
+ activation_hook_target: null
215
+ - smooth_layer: re:.*layers\.22\.mlp\.up_proj$
216
+ balance_layers: ['re:.*layers\.22\.mlp\.down_proj$']
217
+ activation_hook_target: null
218
+ - smooth_layer: re:.*layers\.23\.input_layernorm$
219
+ balance_layers: ['re:.*layers\.23\.self_attn\.q_proj$', 're:.*layers\.23\.self_attn\.k_proj$',
220
+ 're:.*layers\.23\.self_attn\.v_proj$']
221
+ activation_hook_target: null
222
+ - smooth_layer: re:.*layers\.23\.post_attention_layernorm$
223
+ balance_layers: ['re:.*layers\.23\.mlp\.gate_proj$', 're:.*layers\.23\.mlp\.up_proj$']
224
+ activation_hook_target: null
225
+ - smooth_layer: re:.*layers\.23\.mlp\.up_proj$
226
+ balance_layers: ['re:.*layers\.23\.mlp\.down_proj$']
227
+ activation_hook_target: null
228
+ - smooth_layer: re:.*layers\.24\.input_layernorm$
229
+ balance_layers: ['re:.*layers\.24\.linear_attn\.in_proj_qkv$', 're:.*layers\.24\.linear_attn\.in_proj_z$']
230
+ activation_hook_target: null
231
+ - smooth_layer: re:.*layers\.24\.post_attention_layernorm$
232
+ balance_layers: ['re:.*layers\.24\.mlp\.gate_proj$', 're:.*layers\.24\.mlp\.up_proj$']
233
+ activation_hook_target: null
234
+ - smooth_layer: re:.*layers\.24\.mlp\.up_proj$
235
+ balance_layers: ['re:.*layers\.24\.mlp\.down_proj$']
236
+ activation_hook_target: null
237
+ - smooth_layer: re:.*layers\.25\.input_layernorm$
238
+ balance_layers: ['re:.*layers\.25\.linear_attn\.in_proj_qkv$', 're:.*layers\.25\.linear_attn\.in_proj_z$']
239
+ activation_hook_target: null
240
+ - smooth_layer: re:.*layers\.25\.post_attention_layernorm$
241
+ balance_layers: ['re:.*layers\.25\.mlp\.gate_proj$', 're:.*layers\.25\.mlp\.up_proj$']
242
+ activation_hook_target: null
243
+ - smooth_layer: re:.*layers\.25\.mlp\.up_proj$
244
+ balance_layers: ['re:.*layers\.25\.mlp\.down_proj$']
245
+ activation_hook_target: null
246
+ - smooth_layer: re:.*layers\.26\.input_layernorm$
247
+ balance_layers: ['re:.*layers\.26\.linear_attn\.in_proj_qkv$', 're:.*layers\.26\.linear_attn\.in_proj_z$']
248
+ activation_hook_target: null
249
+ - smooth_layer: re:.*layers\.26\.post_attention_layernorm$
250
+ balance_layers: ['re:.*layers\.26\.mlp\.gate_proj$', 're:.*layers\.26\.mlp\.up_proj$']
251
+ activation_hook_target: null
252
+ - smooth_layer: re:.*layers\.26\.mlp\.up_proj$
253
+ balance_layers: ['re:.*layers\.26\.mlp\.down_proj$']
254
+ activation_hook_target: null
255
+ - smooth_layer: re:.*layers\.27\.input_layernorm$
256
+ balance_layers: ['re:.*layers\.27\.self_attn\.q_proj$', 're:.*layers\.27\.self_attn\.k_proj$',
257
+ 're:.*layers\.27\.self_attn\.v_proj$']
258
+ activation_hook_target: null
259
+ - smooth_layer: re:.*layers\.27\.post_attention_layernorm$
260
+ balance_layers: ['re:.*layers\.27\.mlp\.gate_proj$', 're:.*layers\.27\.mlp\.up_proj$']
261
+ activation_hook_target: null
262
+ - smooth_layer: re:.*layers\.27\.mlp\.up_proj$
263
+ balance_layers: ['re:.*layers\.27\.mlp\.down_proj$']
264
+ activation_hook_target: null
265
+ - smooth_layer: re:.*layers\.28\.input_layernorm$
266
+ balance_layers: ['re:.*layers\.28\.linear_attn\.in_proj_qkv$', 're:.*layers\.28\.linear_attn\.in_proj_z$']
267
+ activation_hook_target: null
268
+ - smooth_layer: re:.*layers\.28\.post_attention_layernorm$
269
+ balance_layers: ['re:.*layers\.28\.mlp\.gate_proj$', 're:.*layers\.28\.mlp\.up_proj$']
270
+ activation_hook_target: null
271
+ - smooth_layer: re:.*layers\.28\.mlp\.up_proj$
272
+ balance_layers: ['re:.*layers\.28\.mlp\.down_proj$']
273
+ activation_hook_target: null
274
+ - smooth_layer: re:.*layers\.29\.input_layernorm$
275
+ balance_layers: ['re:.*layers\.29\.linear_attn\.in_proj_qkv$', 're:.*layers\.29\.linear_attn\.in_proj_z$']
276
+ activation_hook_target: null
277
+ - smooth_layer: re:.*layers\.29\.post_attention_layernorm$
278
+ balance_layers: ['re:.*layers\.29\.mlp\.gate_proj$', 're:.*layers\.29\.mlp\.up_proj$']
279
+ activation_hook_target: null
280
+ - smooth_layer: re:.*layers\.29\.mlp\.up_proj$
281
+ balance_layers: ['re:.*layers\.29\.mlp\.down_proj$']
282
+ activation_hook_target: null
283
+ - smooth_layer: re:.*layers\.30\.input_layernorm$
284
+ balance_layers: ['re:.*layers\.30\.linear_attn\.in_proj_qkv$', 're:.*layers\.30\.linear_attn\.in_proj_z$']
285
+ activation_hook_target: null
286
+ - smooth_layer: re:.*layers\.30\.post_attention_layernorm$
287
+ balance_layers: ['re:.*layers\.30\.mlp\.gate_proj$', 're:.*layers\.30\.mlp\.up_proj$']
288
+ activation_hook_target: null
289
+ - smooth_layer: re:.*layers\.30\.mlp\.up_proj$
290
+ balance_layers: ['re:.*layers\.30\.mlp\.down_proj$']
291
+ activation_hook_target: null
292
+ - smooth_layer: re:.*layers\.31\.input_layernorm$
293
+ balance_layers: ['re:.*layers\.31\.self_attn\.q_proj$', 're:.*layers\.31\.self_attn\.k_proj$',
294
+ 're:.*layers\.31\.self_attn\.v_proj$']
295
+ activation_hook_target: null
296
+ - smooth_layer: re:.*layers\.31\.post_attention_layernorm$
297
+ balance_layers: ['re:.*layers\.31\.mlp\.gate_proj$', 're:.*layers\.31\.mlp\.up_proj$']
298
+ activation_hook_target: null
299
+ - smooth_layer: re:.*layers\.31\.mlp\.up_proj$
300
+ balance_layers: ['re:.*layers\.31\.mlp\.down_proj$']
301
+ activation_hook_target: null
302
+ - smooth_layer: re:.*layers\.32\.input_layernorm$
303
+ balance_layers: ['re:.*layers\.32\.linear_attn\.in_proj_qkv$', 're:.*layers\.32\.linear_attn\.in_proj_z$']
304
+ activation_hook_target: null
305
+ - smooth_layer: re:.*layers\.32\.post_attention_layernorm$
306
+ balance_layers: ['re:.*layers\.32\.mlp\.gate_proj$', 're:.*layers\.32\.mlp\.up_proj$']
307
+ activation_hook_target: null
308
+ - smooth_layer: re:.*layers\.32\.mlp\.up_proj$
309
+ balance_layers: ['re:.*layers\.32\.mlp\.down_proj$']
310
+ activation_hook_target: null
311
+ - smooth_layer: re:.*layers\.33\.input_layernorm$
312
+ balance_layers: ['re:.*layers\.33\.linear_attn\.in_proj_qkv$', 're:.*layers\.33\.linear_attn\.in_proj_z$']
313
+ activation_hook_target: null
314
+ - smooth_layer: re:.*layers\.33\.post_attention_layernorm$
315
+ balance_layers: ['re:.*layers\.33\.mlp\.gate_proj$', 're:.*layers\.33\.mlp\.up_proj$']
316
+ activation_hook_target: null
317
+ - smooth_layer: re:.*layers\.33\.mlp\.up_proj$
318
+ balance_layers: ['re:.*layers\.33\.mlp\.down_proj$']
319
+ activation_hook_target: null
320
+ - smooth_layer: re:.*layers\.34\.input_layernorm$
321
+ balance_layers: ['re:.*layers\.34\.linear_attn\.in_proj_qkv$', 're:.*layers\.34\.linear_attn\.in_proj_z$']
322
+ activation_hook_target: null
323
+ - smooth_layer: re:.*layers\.34\.post_attention_layernorm$
324
+ balance_layers: ['re:.*layers\.34\.mlp\.gate_proj$', 're:.*layers\.34\.mlp\.up_proj$']
325
+ activation_hook_target: null
326
+ - smooth_layer: re:.*layers\.34\.mlp\.up_proj$
327
+ balance_layers: ['re:.*layers\.34\.mlp\.down_proj$']
328
+ activation_hook_target: null
329
+ - smooth_layer: re:.*layers\.35\.input_layernorm$
330
+ balance_layers: ['re:.*layers\.35\.self_attn\.q_proj$', 're:.*layers\.35\.self_attn\.k_proj$',
331
+ 're:.*layers\.35\.self_attn\.v_proj$']
332
+ activation_hook_target: null
333
+ - smooth_layer: re:.*layers\.35\.post_attention_layernorm$
334
+ balance_layers: ['re:.*layers\.35\.mlp\.gate_proj$', 're:.*layers\.35\.mlp\.up_proj$']
335
+ activation_hook_target: null
336
+ - smooth_layer: re:.*layers\.35\.mlp\.up_proj$
337
+ balance_layers: ['re:.*layers\.35\.mlp\.down_proj$']
338
+ activation_hook_target: null
339
+ - smooth_layer: re:.*layers\.36\.input_layernorm$
340
+ balance_layers: ['re:.*layers\.36\.linear_attn\.in_proj_qkv$', 're:.*layers\.36\.linear_attn\.in_proj_z$']
341
+ activation_hook_target: null
342
+ - smooth_layer: re:.*layers\.36\.post_attention_layernorm$
343
+ balance_layers: ['re:.*layers\.36\.mlp\.gate_proj$', 're:.*layers\.36\.mlp\.up_proj$']
344
+ activation_hook_target: null
345
+ - smooth_layer: re:.*layers\.36\.mlp\.up_proj$
346
+ balance_layers: ['re:.*layers\.36\.mlp\.down_proj$']
347
+ activation_hook_target: null
348
+ - smooth_layer: re:.*layers\.37\.input_layernorm$
349
+ balance_layers: ['re:.*layers\.37\.linear_attn\.in_proj_qkv$', 're:.*layers\.37\.linear_attn\.in_proj_z$']
350
+ activation_hook_target: null
351
+ - smooth_layer: re:.*layers\.37\.post_attention_layernorm$
352
+ balance_layers: ['re:.*layers\.37\.mlp\.gate_proj$', 're:.*layers\.37\.mlp\.up_proj$']
353
+ activation_hook_target: null
354
+ - smooth_layer: re:.*layers\.37\.mlp\.up_proj$
355
+ balance_layers: ['re:.*layers\.37\.mlp\.down_proj$']
356
+ activation_hook_target: null
357
+ - smooth_layer: re:.*layers\.38\.input_layernorm$
358
+ balance_layers: ['re:.*layers\.38\.linear_attn\.in_proj_qkv$', 're:.*layers\.38\.linear_attn\.in_proj_z$']
359
+ activation_hook_target: null
360
+ - smooth_layer: re:.*layers\.38\.post_attention_layernorm$
361
+ balance_layers: ['re:.*layers\.38\.mlp\.gate_proj$', 're:.*layers\.38\.mlp\.up_proj$']
362
+ activation_hook_target: null
363
+ - smooth_layer: re:.*layers\.38\.mlp\.up_proj$
364
+ balance_layers: ['re:.*layers\.38\.mlp\.down_proj$']
365
+ activation_hook_target: null
366
+ - smooth_layer: re:.*layers\.39\.input_layernorm$
367
+ balance_layers: ['re:.*layers\.39\.self_attn\.q_proj$', 're:.*layers\.39\.self_attn\.k_proj$',
368
+ 're:.*layers\.39\.self_attn\.v_proj$']
369
+ activation_hook_target: null
370
+ - smooth_layer: re:.*layers\.39\.post_attention_layernorm$
371
+ balance_layers: ['re:.*layers\.39\.mlp\.gate_proj$', 're:.*layers\.39\.mlp\.up_proj$']
372
+ activation_hook_target: null
373
+ - smooth_layer: re:.*layers\.39\.mlp\.up_proj$
374
+ balance_layers: ['re:.*layers\.39\.mlp\.down_proj$']
375
+ activation_hook_target: null
376
+ - smooth_layer: re:.*layers\.40\.input_layernorm$
377
+ balance_layers: ['re:.*layers\.40\.linear_attn\.in_proj_qkv$', 're:.*layers\.40\.linear_attn\.in_proj_z$']
378
+ activation_hook_target: null
379
+ - smooth_layer: re:.*layers\.40\.post_attention_layernorm$
380
+ balance_layers: ['re:.*layers\.40\.mlp\.gate_proj$', 're:.*layers\.40\.mlp\.up_proj$']
381
+ activation_hook_target: null
382
+ - smooth_layer: re:.*layers\.40\.mlp\.up_proj$
383
+ balance_layers: ['re:.*layers\.40\.mlp\.down_proj$']
384
+ activation_hook_target: null
385
+ - smooth_layer: re:.*layers\.41\.input_layernorm$
386
+ balance_layers: ['re:.*layers\.41\.linear_attn\.in_proj_qkv$', 're:.*layers\.41\.linear_attn\.in_proj_z$']
387
+ activation_hook_target: null
388
+ - smooth_layer: re:.*layers\.41\.post_attention_layernorm$
389
+ balance_layers: ['re:.*layers\.41\.mlp\.gate_proj$', 're:.*layers\.41\.mlp\.up_proj$']
390
+ activation_hook_target: null
391
+ - smooth_layer: re:.*layers\.41\.mlp\.up_proj$
392
+ balance_layers: ['re:.*layers\.41\.mlp\.down_proj$']
393
+ activation_hook_target: null
394
+ - smooth_layer: re:.*layers\.42\.input_layernorm$
395
+ balance_layers: ['re:.*layers\.42\.linear_attn\.in_proj_qkv$', 're:.*layers\.42\.linear_attn\.in_proj_z$']
396
+ activation_hook_target: null
397
+ - smooth_layer: re:.*layers\.42\.post_attention_layernorm$
398
+ balance_layers: ['re:.*layers\.42\.mlp\.gate_proj$', 're:.*layers\.42\.mlp\.up_proj$']
399
+ activation_hook_target: null
400
+ - smooth_layer: re:.*layers\.42\.mlp\.up_proj$
401
+ balance_layers: ['re:.*layers\.42\.mlp\.down_proj$']
402
+ activation_hook_target: null
403
+ - smooth_layer: re:.*layers\.43\.input_layernorm$
404
+ balance_layers: ['re:.*layers\.43\.self_attn\.q_proj$', 're:.*layers\.43\.self_attn\.k_proj$',
405
+ 're:.*layers\.43\.self_attn\.v_proj$']
406
+ activation_hook_target: null
407
+ - smooth_layer: re:.*layers\.43\.post_attention_layernorm$
408
+ balance_layers: ['re:.*layers\.43\.mlp\.gate_proj$', 're:.*layers\.43\.mlp\.up_proj$']
409
+ activation_hook_target: null
410
+ - smooth_layer: re:.*layers\.43\.mlp\.up_proj$
411
+ balance_layers: ['re:.*layers\.43\.mlp\.down_proj$']
412
+ activation_hook_target: null
413
+ - smooth_layer: re:.*layers\.44\.input_layernorm$
414
+ balance_layers: ['re:.*layers\.44\.linear_attn\.in_proj_qkv$', 're:.*layers\.44\.linear_attn\.in_proj_z$']
415
+ activation_hook_target: null
416
+ - smooth_layer: re:.*layers\.44\.post_attention_layernorm$
417
+ balance_layers: ['re:.*layers\.44\.mlp\.gate_proj$', 're:.*layers\.44\.mlp\.up_proj$']
418
+ activation_hook_target: null
419
+ - smooth_layer: re:.*layers\.44\.mlp\.up_proj$
420
+ balance_layers: ['re:.*layers\.44\.mlp\.down_proj$']
421
+ activation_hook_target: null
422
+ - smooth_layer: re:.*layers\.45\.input_layernorm$
423
+ balance_layers: ['re:.*layers\.45\.linear_attn\.in_proj_qkv$', 're:.*layers\.45\.linear_attn\.in_proj_z$']
424
+ activation_hook_target: null
425
+ - smooth_layer: re:.*layers\.45\.post_attention_layernorm$
426
+ balance_layers: ['re:.*layers\.45\.mlp\.gate_proj$', 're:.*layers\.45\.mlp\.up_proj$']
427
+ activation_hook_target: null
428
+ - smooth_layer: re:.*layers\.45\.mlp\.up_proj$
429
+ balance_layers: ['re:.*layers\.45\.mlp\.down_proj$']
430
+ activation_hook_target: null
431
+ - smooth_layer: re:.*layers\.46\.input_layernorm$
432
+ balance_layers: ['re:.*layers\.46\.linear_attn\.in_proj_qkv$', 're:.*layers\.46\.linear_attn\.in_proj_z$']
433
+ activation_hook_target: null
434
+ - smooth_layer: re:.*layers\.46\.post_attention_layernorm$
435
+ balance_layers: ['re:.*layers\.46\.mlp\.gate_proj$', 're:.*layers\.46\.mlp\.up_proj$']
436
+ activation_hook_target: null
437
+ - smooth_layer: re:.*layers\.46\.mlp\.up_proj$
438
+ balance_layers: ['re:.*layers\.46\.mlp\.down_proj$']
439
+ activation_hook_target: null
440
+ - smooth_layer: re:.*layers\.47\.input_layernorm$
441
+ balance_layers: ['re:.*layers\.47\.self_attn\.q_proj$', 're:.*layers\.47\.self_attn\.k_proj$',
442
+ 're:.*layers\.47\.self_attn\.v_proj$']
443
+ activation_hook_target: null
444
+ - smooth_layer: re:.*layers\.47\.post_attention_layernorm$
445
+ balance_layers: ['re:.*layers\.47\.mlp\.gate_proj$', 're:.*layers\.47\.mlp\.up_proj$']
446
+ activation_hook_target: null
447
+ - smooth_layer: re:.*layers\.47\.mlp\.up_proj$
448
+ balance_layers: ['re:.*layers\.47\.mlp\.down_proj$']
449
+ activation_hook_target: null
450
+ - smooth_layer: re:.*layers\.48\.input_layernorm$
451
+ balance_layers: ['re:.*layers\.48\.linear_attn\.in_proj_qkv$', 're:.*layers\.48\.linear_attn\.in_proj_z$']
452
+ activation_hook_target: null
453
+ - smooth_layer: re:.*layers\.48\.post_attention_layernorm$
454
+ balance_layers: ['re:.*layers\.48\.mlp\.gate_proj$', 're:.*layers\.48\.mlp\.up_proj$']
455
+ activation_hook_target: null
456
+ - smooth_layer: re:.*layers\.48\.mlp\.up_proj$
457
+ balance_layers: ['re:.*layers\.48\.mlp\.down_proj$']
458
+ activation_hook_target: null
459
+ - smooth_layer: re:.*layers\.49\.input_layernorm$
460
+ balance_layers: ['re:.*layers\.49\.linear_attn\.in_proj_qkv$', 're:.*layers\.49\.linear_attn\.in_proj_z$']
461
+ activation_hook_target: null
462
+ - smooth_layer: re:.*layers\.49\.post_attention_layernorm$
463
+ balance_layers: ['re:.*layers\.49\.mlp\.gate_proj$', 're:.*layers\.49\.mlp\.up_proj$']
464
+ activation_hook_target: null
465
+ - smooth_layer: re:.*layers\.49\.mlp\.up_proj$
466
+ balance_layers: ['re:.*layers\.49\.mlp\.down_proj$']
467
+ activation_hook_target: null
468
+ - smooth_layer: re:.*layers\.50\.input_layernorm$
469
+ balance_layers: ['re:.*layers\.50\.linear_attn\.in_proj_qkv$', 're:.*layers\.50\.linear_attn\.in_proj_z$']
470
+ activation_hook_target: null
471
+ - smooth_layer: re:.*layers\.50\.post_attention_layernorm$
472
+ balance_layers: ['re:.*layers\.50\.mlp\.gate_proj$', 're:.*layers\.50\.mlp\.up_proj$']
473
+ activation_hook_target: null
474
+ - smooth_layer: re:.*layers\.50\.mlp\.up_proj$
475
+ balance_layers: ['re:.*layers\.50\.mlp\.down_proj$']
476
+ activation_hook_target: null
477
+ - smooth_layer: re:.*layers\.51\.input_layernorm$
478
+ balance_layers: ['re:.*layers\.51\.self_attn\.q_proj$', 're:.*layers\.51\.self_attn\.k_proj$',
479
+ 're:.*layers\.51\.self_attn\.v_proj$']
480
+ activation_hook_target: null
481
+ - smooth_layer: re:.*layers\.51\.post_attention_layernorm$
482
+ balance_layers: ['re:.*layers\.51\.mlp\.gate_proj$', 're:.*layers\.51\.mlp\.up_proj$']
483
+ activation_hook_target: null
484
+ - smooth_layer: re:.*layers\.51\.mlp\.up_proj$
485
+ balance_layers: ['re:.*layers\.51\.mlp\.down_proj$']
486
+ activation_hook_target: null
487
+ - smooth_layer: re:.*layers\.52\.input_layernorm$
488
+ balance_layers: ['re:.*layers\.52\.linear_attn\.in_proj_qkv$', 're:.*layers\.52\.linear_attn\.in_proj_z$']
489
+ activation_hook_target: null
490
+ - smooth_layer: re:.*layers\.52\.post_attention_layernorm$
491
+ balance_layers: ['re:.*layers\.52\.mlp\.gate_proj$', 're:.*layers\.52\.mlp\.up_proj$']
492
+ activation_hook_target: null
493
+ - smooth_layer: re:.*layers\.52\.mlp\.up_proj$
494
+ balance_layers: ['re:.*layers\.52\.mlp\.down_proj$']
495
+ activation_hook_target: null
496
+ - smooth_layer: re:.*layers\.53\.input_layernorm$
497
+ balance_layers: ['re:.*layers\.53\.linear_attn\.in_proj_qkv$', 're:.*layers\.53\.linear_attn\.in_proj_z$']
498
+ activation_hook_target: null
499
+ - smooth_layer: re:.*layers\.53\.post_attention_layernorm$
500
+ balance_layers: ['re:.*layers\.53\.mlp\.gate_proj$', 're:.*layers\.53\.mlp\.up_proj$']
501
+ activation_hook_target: null
502
+ - smooth_layer: re:.*layers\.53\.mlp\.up_proj$
503
+ balance_layers: ['re:.*layers\.53\.mlp\.down_proj$']
504
+ activation_hook_target: null
505
+ - smooth_layer: re:.*layers\.54\.input_layernorm$
506
+ balance_layers: ['re:.*layers\.54\.linear_attn\.in_proj_qkv$', 're:.*layers\.54\.linear_attn\.in_proj_z$']
507
+ activation_hook_target: null
508
+ - smooth_layer: re:.*layers\.54\.post_attention_layernorm$
509
+ balance_layers: ['re:.*layers\.54\.mlp\.gate_proj$', 're:.*layers\.54\.mlp\.up_proj$']
510
+ activation_hook_target: null
511
+ - smooth_layer: re:.*layers\.54\.mlp\.up_proj$
512
+ balance_layers: ['re:.*layers\.54\.mlp\.down_proj$']
513
+ activation_hook_target: null
514
+ - smooth_layer: re:.*layers\.55\.input_layernorm$
515
+ balance_layers: ['re:.*layers\.55\.self_attn\.q_proj$', 're:.*layers\.55\.self_attn\.k_proj$',
516
+ 're:.*layers\.55\.self_attn\.v_proj$']
517
+ activation_hook_target: null
518
+ - smooth_layer: re:.*layers\.55\.post_attention_layernorm$
519
+ balance_layers: ['re:.*layers\.55\.mlp\.gate_proj$', 're:.*layers\.55\.mlp\.up_proj$']
520
+ activation_hook_target: null
521
+ - smooth_layer: re:.*layers\.55\.mlp\.up_proj$
522
+ balance_layers: ['re:.*layers\.55\.mlp\.down_proj$']
523
+ activation_hook_target: null
524
+ - smooth_layer: re:.*layers\.56\.input_layernorm$
525
+ balance_layers: ['re:.*layers\.56\.linear_attn\.in_proj_qkv$', 're:.*layers\.56\.linear_attn\.in_proj_z$']
526
+ activation_hook_target: null
527
+ - smooth_layer: re:.*layers\.56\.post_attention_layernorm$
528
+ balance_layers: ['re:.*layers\.56\.mlp\.gate_proj$', 're:.*layers\.56\.mlp\.up_proj$']
529
+ activation_hook_target: null
530
+ - smooth_layer: re:.*layers\.56\.mlp\.up_proj$
531
+ balance_layers: ['re:.*layers\.56\.mlp\.down_proj$']
532
+ activation_hook_target: null
533
+ - smooth_layer: re:.*layers\.57\.input_layernorm$
534
+ balance_layers: ['re:.*layers\.57\.linear_attn\.in_proj_qkv$', 're:.*layers\.57\.linear_attn\.in_proj_z$']
535
+ activation_hook_target: null
536
+ - smooth_layer: re:.*layers\.57\.post_attention_layernorm$
537
+ balance_layers: ['re:.*layers\.57\.mlp\.gate_proj$', 're:.*layers\.57\.mlp\.up_proj$']
538
+ activation_hook_target: null
539
+ - smooth_layer: re:.*layers\.57\.mlp\.up_proj$
540
+ balance_layers: ['re:.*layers\.57\.mlp\.down_proj$']
541
+ activation_hook_target: null
542
+ - smooth_layer: re:.*layers\.58\.input_layernorm$
543
+ balance_layers: ['re:.*layers\.58\.linear_attn\.in_proj_qkv$', 're:.*layers\.58\.linear_attn\.in_proj_z$']
544
+ activation_hook_target: null
545
+ - smooth_layer: re:.*layers\.58\.post_attention_layernorm$
546
+ balance_layers: ['re:.*layers\.58\.mlp\.gate_proj$', 're:.*layers\.58\.mlp\.up_proj$']
547
+ activation_hook_target: null
548
+ - smooth_layer: re:.*layers\.58\.mlp\.up_proj$
549
+ balance_layers: ['re:.*layers\.58\.mlp\.down_proj$']
550
+ activation_hook_target: null
551
+ - smooth_layer: re:.*layers\.59\.input_layernorm$
552
+ balance_layers: ['re:.*layers\.59\.self_attn\.q_proj$', 're:.*layers\.59\.self_attn\.k_proj$',
553
+ 're:.*layers\.59\.self_attn\.v_proj$']
554
+ activation_hook_target: null
555
+ - smooth_layer: re:.*layers\.59\.post_attention_layernorm$
556
+ balance_layers: ['re:.*layers\.59\.mlp\.gate_proj$', 're:.*layers\.59\.mlp\.up_proj$']
557
+ activation_hook_target: null
558
+ - smooth_layer: re:.*layers\.59\.mlp\.up_proj$
559
+ balance_layers: ['re:.*layers\.59\.mlp\.down_proj$']
560
+ activation_hook_target: null
561
+ - smooth_layer: re:.*layers\.60\.input_layernorm$
562
+ balance_layers: ['re:.*layers\.60\.linear_attn\.in_proj_qkv$', 're:.*layers\.60\.linear_attn\.in_proj_z$']
563
+ activation_hook_target: null
564
+ - smooth_layer: re:.*layers\.60\.post_attention_layernorm$
565
+ balance_layers: ['re:.*layers\.60\.mlp\.gate_proj$', 're:.*layers\.60\.mlp\.up_proj$']
566
+ activation_hook_target: null
567
+ - smooth_layer: re:.*layers\.60\.mlp\.up_proj$
568
+ balance_layers: ['re:.*layers\.60\.mlp\.down_proj$']
569
+ activation_hook_target: null
570
+ - smooth_layer: re:.*layers\.61\.input_layernorm$
571
+ balance_layers: ['re:.*layers\.61\.linear_attn\.in_proj_qkv$', 're:.*layers\.61\.linear_attn\.in_proj_z$']
572
+ activation_hook_target: null
573
+ - smooth_layer: re:.*layers\.61\.post_attention_layernorm$
574
+ balance_layers: ['re:.*layers\.61\.mlp\.gate_proj$', 're:.*layers\.61\.mlp\.up_proj$']
575
+ activation_hook_target: null
576
+ - smooth_layer: re:.*layers\.61\.mlp\.up_proj$
577
+ balance_layers: ['re:.*layers\.61\.mlp\.down_proj$']
578
+ activation_hook_target: null
579
+ - smooth_layer: re:.*layers\.62\.input_layernorm$
580
+ balance_layers: ['re:.*layers\.62\.linear_attn\.in_proj_qkv$', 're:.*layers\.62\.linear_attn\.in_proj_z$']
581
+ activation_hook_target: null
582
+ - smooth_layer: re:.*layers\.62\.post_attention_layernorm$
583
+ balance_layers: ['re:.*layers\.62\.mlp\.gate_proj$', 're:.*layers\.62\.mlp\.up_proj$']
584
+ activation_hook_target: null
585
+ - smooth_layer: re:.*layers\.62\.mlp\.up_proj$
586
+ balance_layers: ['re:.*layers\.62\.mlp\.down_proj$']
587
+ activation_hook_target: null
588
+ - smooth_layer: re:.*layers\.63\.input_layernorm$
589
+ balance_layers: ['re:.*layers\.63\.self_attn\.q_proj$', 're:.*layers\.63\.self_attn\.k_proj$',
590
+ 're:.*layers\.63\.self_attn\.v_proj$']
591
+ activation_hook_target: null
592
+ - smooth_layer: re:.*layers\.63\.post_attention_layernorm$
593
+ balance_layers: ['re:.*layers\.63\.mlp\.gate_proj$', 're:.*layers\.63\.mlp\.up_proj$']
594
+ activation_hook_target: null
595
+ - smooth_layer: re:.*layers\.63\.mlp\.up_proj$
596
+ balance_layers: ['re:.*layers\.63\.mlp\.down_proj$']
597
+ activation_hook_target: null
598
+ duo_scaling: true
599
+ n_grid: 20
600
+ QuantizationModifier:
601
+ targets: [Linear]
602
+ ignore: [lm_head, 're:.*visual.*', 're:mtp\..*', 're:.*in_proj_a$', 're:.*in_proj_b$']
603
+ scheme: W4A16_ASYM
604
+ bypass_divisibility_checks: false
605
+ requires_calibration_data: false
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:06b9509352d2af50381ab2247e083b80d32d5c0aba91c272ca9ff729b6a0e523
3
+ size 19989325
tokenizer_config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "audio_bos_token": "<|audio_start|>",
4
+ "audio_eos_token": "<|audio_end|>",
5
+ "audio_token": "<|audio_pad|>",
6
+ "backend": "tokenizers",
7
+ "bos_token": null,
8
+ "clean_up_tokenization_spaces": false,
9
+ "eos_token": "<|im_end|>",
10
+ "errors": "replace",
11
+ "image_token": "<|image_pad|>",
12
+ "is_local": true,
13
+ "local_files_only": false,
14
+ "model_max_length": 262144,
15
+ "model_specific_special_tokens": {
16
+ "audio_bos_token": "<|audio_start|>",
17
+ "audio_eos_token": "<|audio_end|>",
18
+ "audio_token": "<|audio_pad|>",
19
+ "image_token": "<|image_pad|>",
20
+ "video_token": "<|video_pad|>",
21
+ "vision_bos_token": "<|vision_start|>",
22
+ "vision_eos_token": "<|vision_end|>"
23
+ },
24
+ "pad_token": "<|endoftext|>",
25
+ "pretokenize_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+",
26
+ "split_special_tokens": false,
27
+ "tokenizer_class": "Qwen2Tokenizer",
28
+ "unk_token": null,
29
+ "video_token": "<|video_pad|>",
30
+ "vision_bos_token": "<|vision_start|>",
31
+ "vision_eos_token": "<|vision_end|>"
32
+ }
video_preprocessor_config.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "size": {
3
+ "longest_edge": 25165824,
4
+ "shortest_edge": 4096
5
+ },
6
+ "patch_size": 16,
7
+ "temporal_patch_size": 2,
8
+ "merge_size": 2,
9
+ "image_mean": [
10
+ 0.5,
11
+ 0.5,
12
+ 0.5
13
+ ],
14
+ "image_std": [
15
+ 0.5,
16
+ 0.5,
17
+ 0.5
18
+ ],
19
+ "processor_class": "Qwen3VLProcessor",
20
+ "video_processor_type": "Qwen3VLVideoProcessor"
21
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff