coder3101 commited on
Commit
981bec5
·
verified ·
1 Parent(s): 4c04144

Add model card README

Browse files
Files changed (1) hide show
  1. README.md +208 -0
README.md ADDED
@@ -0,0 +1,208 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: Qwen/Qwen3.6-27B
4
+ tags:
5
+ - safetensors
6
+ - qwen3_5
7
+ - 4-bit
8
+ - auto-round
9
+ - quantized
10
+ pipeline_tag: image-text-to-text
11
+ ---
12
+
13
+ # Qwen3.6-27B-int4-AutoRound
14
+
15
+ This is an Int4 [AutoRound](https://github.com/intel/auto-round) quantization of [Qwen/Qwen3.6-27B](https://huggingface.co/Qwen/Qwen3.6-27B), produced using [spark-auto-round](https://github.com/whpthomas/spark-auto-round).
16
+
17
+ ## Quantization Details
18
+
19
+ | Parameter | Value |
20
+ |---|---|
21
+ | **Original Model** | [Qwen/Qwen3.6-27B](https://huggingface.co/Qwen/Qwen3.6-27B) |
22
+ | **Quantization Method** | AutoRound (W4A16, symmetric) |
23
+ | **Bits** | 4 |
24
+ | **Group Size** | 128 |
25
+ | **Calibration Dataset** | [opencode-instruct](https://huggingface.co/nvidia/OpenCodeInstruct) |
26
+ | **Calibration Samples** | 512 |
27
+ | **Calibration Sequence Length** | 2048 |
28
+ | **Tuning Iterations** | 1000 |
29
+ | **Batch Size** | 8 |
30
+ | **Packing Format** | `auto_round:auto_gptq` |
31
+ | **AutoRound Version** | 0.14.2 |
32
+ | **Model Size** | ~19 GB |
33
+
34
+ ### Layers Kept in FP16
35
+
36
+ The `linear_attn.in_proj_a` and `linear_attn.in_proj_b` projections across all DeltaNet layers, as well as `mtp.fc`, are kept at FP16 precision for quality preservation.
37
+
38
+ ## Quantization Report
39
+
40
+ All 64 transformer blocks passed sensitivity analysis (63 PASS, 1 WARN at layer 58).
41
+
42
+ | Layer Range | Cosine Similarity | PSNR (dB) |
43
+ |---|---|---|
44
+ | Layers 0-10 | 0.9999 - 1.0000 | 80.7 - 84.0 |
45
+ | Layers 11-20 | 0.9995 - 0.9999 | 74.9 - 81.5 |
46
+ | Layers 21-30 | 0.9988 - 0.9995 | 73.6 - 78.7 |
47
+ | Layers 31-40 | 0.9976 - 0.9986 | 69.4 - 73.2 |
48
+ | Layers 41-50 | 0.9943 - 0.9976 | 60.2 - 69.2 |
49
+ | Layers 51-63 | 0.9883 - 0.9934 | 53.4 - 66.5 |
50
+
51
+ Full per-layer reports are available in the repository: [`quantization-report.txt`](quantization-report.txt) and [`quantization-report.csv`](quantization-report.csv).
52
+
53
+ ### Memory Usage During Quantization
54
+
55
+ - Peak RAM: 36.13 GB
56
+ - Peak VRAM: 43.13 GB
57
+
58
+ ## How to Use
59
+
60
+ ### With vLLM
61
+
62
+ ```bash
63
+ vllm serve coder3101/Qwen3.6-27B-int4-AutoRound
64
+ ```
65
+
66
+ ### With Transformers
67
+
68
+ ```python
69
+ from transformers import AutoModelForCausalLM, AutoTokenizer
70
+
71
+ model_name = "coder3101/Qwen3.6-27B-int4-AutoRound"
72
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
73
+ model = AutoModelForCausalLM.from_pretrained(model_name, device_map="auto")
74
+
75
+ prompt = "Explain the theory of relativity in simple terms."
76
+ messages = [{"role": "user", "content": prompt}]
77
+ text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
78
+ inputs = tokenizer(text, return_tensors="pt").to(model.device)
79
+ outputs = model.generate(**inputs, max_new_tokens=512)
80
+ print(tokenizer.decode(outputs[0], skip_special_tokens=True))
81
+ ```
82
+
83
+ ## Acknowledgments
84
+
85
+ - Quantization performed using [spark-auto-round](https://github.com/whpthomas/spark-auto-round) by [@whpthomas](https://github.com/whpthomas)
86
+ - Based on [AutoRound](https://github.com/intel/auto-round) by Intel
87
+
88
+ ---
89
+
90
+ # Original Model Card -- Qwen3.6-27B
91
+
92
+ > Below is the original model card from [Qwen/Qwen3.6-27B](https://huggingface.co/Qwen/Qwen3.6-27B).
93
+
94
+ ## Qwen3.6-27B
95
+
96
+ ### Highlights
97
+
98
+ Qwen3.6-27B follows the Qwen3.5 series with key upgrades:
99
+
100
+ - **Agentic Coding**: Handles frontend workflows and repo-level reasoning with greater fluency.
101
+ - **Thinking Preservation**: New option to retain reasoning context from historical messages, reducing overhead in iterative development.
102
+
103
+ ### Model Architecture
104
+
105
+ | Property | Value |
106
+ |---|---|
107
+ | Type | Causal Language Model with Vision Encoder |
108
+ | Parameters | 27B |
109
+ | Hidden Dimension | 5120 |
110
+ | Token Embedding | 248320 (Padded) |
111
+ | Number of Layers | 64 |
112
+ | Hidden Layout | `16 x (3 x (Gated DeltaNet -> FFN) -> 1 x (Gated Attention -> FFN))` |
113
+ | FFN Intermediate Dimension | 17408 |
114
+ | Context Length | 262,144 (natively), up to 1,010,000 with YaRN |
115
+
116
+ **Gated DeltaNet**: 48 linear attention heads for V, 16 for QK (head dim: 128)
117
+ **Gated Attention**: 24 heads for Q, 4 for KV (head dim: 256, RoPE dim: 64)
118
+
119
+ ### Benchmark Results -- Language
120
+
121
+ | Benchmark | Qwen3.5-27B | Qwen3.5-397B-A17B | Gemma4-31B | Claude 4.5 Opus | Qwen3.6-35B-A3B | **Qwen3.6-27B** |
122
+ |---|---|---|---|---|---|---|
123
+ | SWE-bench Verified | 75.0 | 76.2 | 52.0 | 80.9 | 73.4 | **77.2** |
124
+ | SWE-bench Pro | 51.2 | 50.9 | 35.7 | 57.1 | 49.5 | **53.5** |
125
+ | SWE-bench Multilingual | 69.3 | 69.3 | 51.7 | 77.5 | 67.2 | **71.3** |
126
+ | Terminal-Bench 2.0 | 41.6 | 52.5 | 42.9 | 59.3 | 51.5 | **59.3** |
127
+ | SkillsBench Avg5 | 27.2 | 30.0 | 23.6 | 45.3 | 28.7 | **48.2** |
128
+ | QwenWebBench | 1068 | 1186 | 1197 | 1536 | 1397 | **1487** |
129
+ | NL2Repo | 27.3 | 32.2 | 15.5 | 43.2 | 29.4 | **36.2** |
130
+ | Claw-Eval Avg | 64.3 | 70.7 | 48.5 | 76.6 | 68.7 | **72.4** |
131
+ | Claw-Eval Pass^3 | 46.2 | 48.1 | 25.0 | 59.6 | 50.0 | **60.6** |
132
+ | QwenClawBench | 52.2 | 51.8 | 41.7 | 52.3 | 52.6 | **53.4** |
133
+ | MMLU-Pro | 86.1 | 87.8 | 85.2 | 89.5 | 85.2 | **86.2** |
134
+ | MMLU-Redux | 93.2 | 94.9 | 93.7 | 95.6 | 93.3 | **93.5** |
135
+ | SuperGPQA | 65.6 | 70.4 | 65.7 | 70.6 | 64.7 | **66.0** |
136
+ | C-Eval | 90.5 | 93.0 | 82.6 | 92.2 | 90.0 | **91.4** |
137
+ | GPQA Diamond | 85.5 | 88.4 | 84.3 | 87.0 | 86.0 | **87.8** |
138
+ | HLE | 24.3 | 28.7 | 19.5 | 30.8 | 21.4 | **24.0** |
139
+ | LiveCodeBench v6 | 80.7 | 83.6 | 80.0 | 84.8 | 80.4 | **83.9** |
140
+ | HMMT Feb 25 | 92.0 | 94.8 | 88.7 | 92.9 | 90.7 | **93.8** |
141
+ | HMMT Nov 25 | 89.8 | 92.7 | 87.5 | 93.3 | 89.1 | **90.7** |
142
+ | HMMT Feb 26 | 84.3 | 87.9 | 77.2 | 85.3 | 83.6 | **84.3** |
143
+ | IMOAnswerBench | 79.9 | 80.9 | 74.5 | 84.0 | 78.9 | **80.8** |
144
+ | AIME26 | 92.6 | 93.3 | 89.2 | 95.1 | 92.7 | **94.1** |
145
+
146
+ ### Benchmark Results -- Vision Language
147
+
148
+ | Benchmark | Qwen3.5-27B | Qwen3.5-397B-A17B | Gemma4-31B | Claude 4.5 Opus | Qwen3.6-35B-A3B | **Qwen3.6-27B** |
149
+ |---|---|---|---|---|---|---|
150
+ | MMMU | 82.3 | 85.0 | 80.4 | 80.7 | 81.7 | **82.9** |
151
+ | MMMU-Pro | 75.0 | 79.0 | 76.9 | 70.6 | 75.3 | **75.8** |
152
+ | MathVista mini | 87.8 | -- | 79.3 | -- | 86.4 | **87.4** |
153
+ | DynaMath | 87.7 | 86.3 | 79.5 | 79.7 | 82.8 | **85.6** |
154
+ | VlmsAreBlind | 96.9 | -- | 87.2 | -- | 96.6 | **97.0** |
155
+ | RealWorldQA | 83.7 | 83.9 | 72.3 | 77.0 | 85.3 | **84.1** |
156
+ | MMStar | 81.0 | 83.8 | 77.3 | 73.2 | 80.7 | **81.4** |
157
+ | MMBenchEN-DEV-v1.1 | 92.6 | -- | 90.9 | -- | 92.8 | **92.3** |
158
+ | SimpleVQA | 56.0 | 67.1 | 52.9 | 65.7 | 58.9 | **56.1** |
159
+ | CharXiv RQ | 79.5 | 80.8 | 67.9 | 68.5 | 78.0 | **78.4** |
160
+ | CC-OCR | 81.0 | 82.0 | 75.7 | 76.9 | 81.9 | **81.2** |
161
+ | OCRBench | 89.4 | -- | 86.1 | -- | 90.0 | **89.4** |
162
+ | ERQA | 60.5 | 67.5 | 57.5 | 46.8 | 61.8 | **62.5** |
163
+ | CountBench | 97.8 | 97.2 | 96.1 | 90.6 | 96.1 | **97.8** |
164
+ | RefCOCO avg | 90.9 | 92.3 | -- | -- | 92.0 | **92.5** |
165
+ | EmbSpatialBench | 84.5 | -- | -- | -- | 84.3 | **84.6** |
166
+ | RefSpatialBench | 67.7 | -- | 4.7 | -- | 64.3 | **70.0** |
167
+ | VideoMME (w sub.) | 87.0 | 87.5 | -- | 77.7 | 86.6 | **87.7** |
168
+ | VideoMMMU | 82.3 | 84.7 | 81.6 | 84.4 | 83.7 | **84.4** |
169
+ | MLVU | 85.9 | 86.7 | -- | 81.7 | 86.2 | **86.6** |
170
+ | MVBench | 74.6 | 77.6 | -- | 67.2 | 74.6 | **75.5** |
171
+ | V* | 93.7 | 95.8 | -- | 67.0 | 90.1 | **94.7** |
172
+ | AndroidWorld | 64.2 | -- | -- | -- | -- | **70.3** |
173
+
174
+ ### Serving Frameworks
175
+
176
+ - **SGLang** (>=0.5.10)
177
+ - **vLLM** (>=0.19.0)
178
+ - **KTransformers**
179
+ - **HuggingFace Transformers**
180
+
181
+ ### Sampling Parameters
182
+
183
+ | Mode | Temperature | top_p | top_k | min_p | presence_penalty |
184
+ |---|---|---|---|---|---|
185
+ | Thinking (general) | 1.0 | 0.95 | 20 | 0.0 | 0.0 |
186
+ | Thinking (precise coding/WebDev) | 0.6 | 0.95 | 20 | -- | -- |
187
+ | Non-thinking / Instruct | 0.7 | 0.80 | 20 | -- | 1.5 |
188
+
189
+ ### Key Features
190
+
191
+ - **Thinking mode** is on by default; can be disabled via `enable_thinking: False`.
192
+ - Does **not** support soft switch (`/think` and `/nothink` from Qwen3).
193
+ - **Preserve Thinking**: `preserve_thinking: True` retains reasoning traces from history.
194
+ - Supports text, image, and video inputs.
195
+ - Multi-Token Prediction (MTP) supported.
196
+ - Native context length: 262,144 tokens; extensible to 1,010,000 tokens with YaRN RoPE scaling.
197
+
198
+ ### Citation
199
+
200
+ ```bibtex
201
+ @misc{qwen3.6-27b,
202
+ title = {{Qwen3.6-27B}: Flagship-Level Coding in a {27B} Dense Model},
203
+ author = {{Qwen Team}},
204
+ month = {April},
205
+ year = {2026},
206
+ url = {https://qwen.ai/blog?id=qwen3.6-27b}
207
+ }
208
+ ```