ghgdhhsacd empero-ai commited on
Commit
8f04294
·
0 Parent(s):

Duplicate from empero-ai/Qwen3.8-27B-Ridge-GGUF

Browse files

Co-authored-by: Empero <empero-ai@users.noreply.huggingface.co>

.gitattributes ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz filter=lfs diff=lfs merge=lfs -text
33
+ *.zip filter=lfs diff=lfs merge=lfs -text
34
+ *.zst filter=lfs diff=lfs merge=lfs -text
35
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ Qwen3.8-27B-Ridge-3.0.gguf filter=lfs diff=lfs merge=lfs -text
37
+ mmproj-Qwen3.8-27B-BF16.gguf filter=lfs diff=lfs merge=lfs -text
38
+ Qwen3.8-27B-Ridge-3.7bpw.gguf filter=lfs diff=lfs merge=lfs -text
Qwen3.8-27B-Ridge-3.7bpw.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:95580dbdaad579582ee898257116abc18d7f3625a00c16a15735d41444a09f5e
3
+ size 12599187008
README.md ADDED
@@ -0,0 +1,288 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: Qwen/Qwen3.8-27B
4
+ base_model_relation: quantized
5
+ language:
6
+ - en
7
+ - zh
8
+ library_name: gguf
9
+ pipeline_tag: image-text-to-text
10
+ tags:
11
+ - gguf
12
+ - llama.cpp
13
+ - quantized
14
+ - qwen3.8
15
+ - qwen3.5
16
+ - ridge
17
+ - gated-deltanet
18
+ - imatrix
19
+ - reasoning
20
+ - multimodal
21
+ - vision
22
+ - mtp
23
+ - long-context
24
+ ---
25
+
26
+ # Qwen3.8-27B-Ridge-3.7bpw
27
+
28
+ **Developed by [Empero](https://empero.org)**
29
+
30
+ A Gated-DeltaNet-aware mixed GGUF of official
31
+ **[Qwen/Qwen3.8-27B](https://huggingface.co/Qwen/Qwen3.8-27B)** (`1d4bf0f2`)
32
+ for [llama.cpp](https://github.com/ggml-org/llama.cpp), Ollama, LM Studio,
33
+ jan, KoboldCpp, and other stock GGUF runtimes.
34
+
35
+ This is a quantization of the Qwen3.8-27B checkpoint. Ridge is a probed mix of types
36
+ written for this architecture: 64 layers =
37
+ 16 × `(3 × GatedDeltaNet → FFN + 1 × GatedAttn → FFN)`. Generic `IQ2_XS`
38
+ and UD-IQ2 do not treat GDN state (`ssm_alpha` / `ssm_beta`) or
39
+ the GDN mixers as first-class. We fixed that.
40
+
41
+ Nothing was stripped to make the file fit. The native MTP draft head
42
+ (`blk.64` / `nextn`) stays in the GGUF. Vision is a separate BF16
43
+ `mmproj`.
44
+
45
+ > [!Note]
46
+ > This card is about choosing the file and running it. The official
47
+ > capability writeup lives on the
48
+ > **[base model card](https://huggingface.co/Qwen/Qwen3.8-27B)**.
49
+
50
+ ---
51
+
52
+ ## Files
53
+
54
+ The repository is `Qwen3.8-27B-Ridge-GGUF`. Use the exact filenames below
55
+ when downloading or passing `-m`.
56
+
57
+ | File | Quant | Size | Notes |
58
+ |---|---|---:|---|
59
+ | `Qwen3.8-27B-Ridge-3.7bpw.gguf` | Ridge mix, **3.69 bpw** | **11.73 GiB / 12.59 GB** | **this release** — text + native MTP |
60
+ | `mmproj-Qwen3.8-27B-BF16.gguf` | BF16 | 0.87 GiB / 0.93 GB | vision encoder + projector; **required for images** |
61
+
62
+ If you only want text, download the Ridge GGUF. Add the `mmproj` for image input.
63
+
64
+ ### What fits on a GPU?
65
+
66
+ These are practical **weight-size-based estimates**, not a VRAM benchmark.
67
+ They assume a modest context and leave room for runtime and the KV cache.
68
+ Image input adds the 0.87 GiB `mmproj`. The native 262k window and the
69
+ 1M YaRN extension — make KV the dominant cost and may need offload
70
+ regardless of weight quant.
71
+
72
+ **Measured:** `Qwen3.8-27B-Ridge-3.7bpw.gguf` fully offloaded to a single
73
+ **RTX PRO 6000 Blackwell (96 GB)** runs at **~54 tok/s generation,
74
+ ~130 tok/s prompt** (llama.cpp CUDA, `-ngl 99`, short smoke). One data
75
+ point on one card, not a sweep — but a 27B at 11.7 GiB is comfortably
76
+ interactive on a 16–24 GB card at modest context.
77
+
78
+ | File | Approximate hardware guidance at modest context |
79
+ |---|---|
80
+ | Ridge-3.7bpw | The practical 16 GB starting point; 24 GB is comfortable once you add KV and (optionally) the mmproj. |
81
+ | + mmproj | Add ~1 GiB. Still a 24 GB card for everyday use. |
82
+
83
+ ---
84
+
85
+ ## Recipe
86
+
87
+ Qwen3.8 is a hybrid: three Gated-DeltaNet layers for every full-attention
88
+ layer. GDN state is disproportionately sensitive to low-bit quantization,
89
+ so Ridge holds that path high and spends the saved bits by dropping
90
+ mid-stack FFN.
91
+
92
+ **The Gated-DeltaNet state path is Q8_0.** Mixers are Q4_K, not IQ2.
93
+ That is the difference between this file and a flat 2-bit dump of the
94
+ same model.
95
+
96
+ Built with llama.cpp `adb55e5`, CUDA, importance matrix on 80 × 512-token
97
+ chunks (`--process-output`, wikitext + code). MTP tensors are unused
98
+ during calibration and have **no** imatrix — IQ2/IQ3 on `blk.64` will
99
+ abort, so the draft head stays Q6_K.
100
+
101
+ ---
102
+
103
+ ## Measured
104
+
105
+ Same box, same calibration file, `llama-perplexity`, 80 chunks,
106
+ `-c 512 -b 512`. BF16 is our convert of the same official checkpoint.
107
+
108
+ | Candidate | Size | BPW | Wiki-style PPL | vs BF16 |
109
+ |---|---:|---:|---:|---|
110
+ | BF16 GGUF (this convert) | 50.89 GiB | 16.00 | **7.15 ± 0.12** | — |
111
+ | **Ridge-3.7bpw** | **11.73 GiB** | **3.69** | **7.82 ± 0.14** | **+9.3 %** |
112
+
113
+ ---
114
+
115
+ ## Comparison
116
+
117
+ Published Hugging Face file sizes as of 2026-08-15. PPL is filled only
118
+ where we measured the file ourselves.
119
+
120
+ | File | Publisher | Size | Nominal band | PPL vs this BF16 |
121
+ |---|---|---:|---|---|
122
+ | BF16 | this convert | 50.89 GiB | 16 bpw | **7.15** |
123
+ | `UD-IQ2_XXS` | [unsloth](https://huggingface.co/unsloth/Qwen3.8-27B-GGUF) | 8.39 GiB | ~2.1 bpw | *not measured here* (Unsloth quotes 82.5 % top-1 vs BF16) |
124
+ | `UD-IQ2_M` | unsloth | 9.61 GiB | ~2.4 bpw | *not measured* |
125
+ | `IQ2_XXS` | [bartowski](https://huggingface.co/bartowski/Qwen3.8-27B-GGUF) | 8.75 GiB | ~2.2 bpw | *not measured* |
126
+ | `Q3_K_S` | unsloth | 11.71 GiB | ~3.1 bpw | *not measured* |
127
+ | **Ridge-3.7bpw** | **empero-ai** | **11.73 GiB** | **3.69 bpw** | **7.82 (+9 %)** |
128
+ | `IQ3_XXS` | bartowski | 11.76 GiB | ~2.9 bpw | *not measured* |
129
+ | `UD-Q3_K_XL` | unsloth | 12.52 GiB | ~3.4 bpw | *not measured* |
130
+
131
+ ---
132
+
133
+ ## Quick start
134
+
135
+ ### llama.cpp (`llama-cli`)
136
+
137
+ Sampling from the official Qwen3.8 card. Thinking is on by default.
138
+
139
+ ```bash
140
+ # thinking
141
+ llama-cli \
142
+ -m Qwen3.8-27B-Ridge-3.7bpw.gguf \
143
+ -ngl 99 -n 16384 \
144
+ --temp 1.0 --top-p 0.95 --top-k 20 \
145
+ -p "Explain the design tradeoffs in a Gated-DeltaNet hybrid model."
146
+
147
+ # instruct (thinking off)
148
+ llama-cli \
149
+ -m Qwen3.8-27B-Ridge-3.7bpw.gguf \
150
+ -ngl 99 --reasoning off \
151
+ --temp 0.7 --top-p 0.80 --top-k 20 --presence-penalty 1.5 \
152
+ -p "Say hello in one short sentence."
153
+ ```
154
+
155
+ ### llama.cpp (`llama-server`)
156
+
157
+ ```bash
158
+ llama-server \
159
+ -m Qwen3.8-27B-Ridge-3.7bpw.gguf \
160
+ -c 16384 --port 8080
161
+ ```
162
+
163
+ ### Ollama
164
+
165
+ ```bash
166
+ ollama run hf.co/empero-ai/Qwen3.8-27B-Ridge-GGUF
167
+ ```
168
+
169
+ Or a local Modelfile:
170
+
171
+ ```
172
+ FROM ./Qwen3.8-27B-Ridge-3.7bpw.gguf
173
+ PARAMETER temperature 0.7
174
+ PARAMETER top_p 0.8
175
+ PARAMETER top_k 20
176
+ ```
177
+
178
+ ```bash
179
+ ollama create qwen38-ridge -f Modelfile
180
+ ollama run qwen38-ridge
181
+ ```
182
+
183
+ ### LM Studio / jan / KoboldCpp
184
+
185
+ Download `Qwen3.8-27B-Ridge-3.7bpw.gguf` and load it. Preserve the
186
+ embedded Qwen3.8 chat template if the runtime asks you to select one.
187
+
188
+ ### llama.cpp with MTP draft speculation
189
+
190
+ The Ridge GGUF keeps the native MTP head. Use a recent llama.cpp build
191
+ that supports `--spec-type draft-mtp`:
192
+
193
+ ```bash
194
+ llama-server \
195
+ -m Qwen3.8-27B-Ridge-3.7bpw.gguf \
196
+ --spec-type draft-mtp \
197
+ --spec-draft-n-max 6 \
198
+ -c 16384 --port 8080
199
+ ```
200
+
201
+ If your runtime does not support MTP, the file still runs as a normal
202
+ 27B — you just will not get the draft speedup.
203
+
204
+ ---
205
+
206
+ ## Vision (image input)
207
+
208
+ Download the text GGUF and `mmproj-Qwen3.8-27B-BF16.gguf`.
209
+
210
+ ### llama.cpp (`llama-mtmd-cli`)
211
+
212
+ ```bash
213
+ llama-mtmd-cli \
214
+ -m Qwen3.8-27B-Ridge-3.7bpw.gguf \
215
+ --mmproj mmproj-Qwen3.8-27B-BF16.gguf \
216
+ --image ./photo.jpg \
217
+ -p "Describe this image in detail." \
218
+ --temp 0.7 --top-p 0.80 --top-k 20 \
219
+ -c 16384
220
+ ```
221
+
222
+ ### llama.cpp server
223
+
224
+ ```bash
225
+ llama-server \
226
+ -m Qwen3.8-27B-Ridge-3.7bpw.gguf \
227
+ --mmproj mmproj-Qwen3.8-27B-BF16.gguf \
228
+ -c 16384 --port 8080
229
+ ```
230
+
231
+ ---
232
+
233
+ ## Sampling
234
+
235
+ Qwen3.8 is a hybrid thinking model. Responses open with a
236
+ `<think>…</think>` block unless thinking is disabled.
237
+
238
+ | Mode | temperature | top_p | top_k | presence_penalty |
239
+ |---|---|---|---|---|
240
+ | Thinking (default) | 1.0 | 0.95 | 20 | 0.0 |
241
+ | Instruct (thinking off) | 0.7 | 0.80 | 20 | 1.5 |
242
+
243
+ Use the runtime chat/completions path rather than hand-rolling a
244
+ different prompt format. The embedded template is Qwen3.8's, including
245
+ tool-use (`<tool_call>…</tool_call>`).
246
+
247
+ ## Long context
248
+
249
+ Native context is **262,144** tokens, extensible to **1,000,000** with
250
+ YaRN. Set `-c` to what you actually need — the KV cache, not the
251
+ 11.7 GiB weights, is what blows up a 16–24 GB card at long context.
252
+
253
+ ---
254
+
255
+ ## Limitations
256
+
257
+ - **Not lossless.** +9 % wiki-style PPL vs our BF16 convert
258
+ - **Context costs memory.** Weight size is only part of the hardware
259
+ budget.
260
+ - **MTP is runtime-dependent.** The head is in the file; the speedup
261
+ needs a runtime that knows `draft-mtp`.
262
+
263
+ ## Stay in the loop
264
+
265
+ Sign up for the Empero newsletter at **[empero.org](https://empero.org)**
266
+ for releases, evals, and research notes.
267
+
268
+ ## Support / Donate
269
+
270
+ If this model helped you, consider supporting the project:
271
+
272
+ - **BTC**: `bc1qx6zepu6sfkvshgdmc4ewu6pk6rpadvpgffpp7v`
273
+ - **LTC**: `ltc1qv2mefzps2vtjcpwfx8xxdrpplrcvltswm68r7x`
274
+ - **XMR**: `42Dbm5xg5Nq26fdyzfEU7KBnAJfhi7Cvz5J2ex5CzHXkfKuNEJzYCcmJ1GTbgjFZ5MBx72sdG1G9239Cd6rsZfv4QeDkYJY`
275
+
276
+ ---
277
+
278
+ ## Provenance & licensing
279
+
280
+ Quantization of **[Qwen/Qwen3.8-27B](https://huggingface.co/Qwen/Qwen3.8-27B)**
281
+ @ `1d4bf0f2ff6012fd82039f2fa52739d0dd7c60c0`. Weights are **Apache-2.0**,
282
+ inherited from the Qwen base, shared as-is.
283
+
284
+ ## Acknowledgements
285
+
286
+ - Developed and released by [Empero](https://empero.org)
287
+ - Base model: [Qwen3.8-27B](https://huggingface.co/Qwen/Qwen3.8-27B) (Alibaba Qwen team)
288
+ - GGUF quantization: [llama.cpp](https://github.com/ggml-org/llama.cpp) (ggml-org)
SHA256SUMS ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ 95580dbdaad579582ee898257116abc18d7f3625a00c16a15735d41444a09f5e Qwen3.8-27B-Ridge-3.7bpw.gguf
2
+ 52228402ce4823f10705d901813cd43ced71859524cf2d8bf83305ad6b7dcbc2 mmproj-Qwen3.8-27B-BF16.gguf
3
+ 6ca14f4d28b9a5a657e57fafbe320fe8c4d28813d8fa803514302b7d8e199069 README.md
mmproj-Qwen3.8-27B-BF16.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:52228402ce4823f10705d901813cd43ced71859524cf2d8bf83305ad6b7dcbc2
3
+ size 931145952