luxuansang empero-ai commited on
Commit
af0d124
Β·
0 Parent(s):

Duplicate from empero-ai/Qwythos-9B-v2-GGUF

Browse files

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

.gitattributes ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ mmproj-Qwythos-9B-v2-BF16.gguf filter=lfs diff=lfs merge=lfs -text
37
+ Qwythos-9B-v2-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
38
+ Qwythos-9B-v2-MTP-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
39
+ Qwythos-9B-v2-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
40
+ Qwythos-9B-v2-MTP-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
41
+ Qwythos-9B-v2-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
42
+ Qwythos-9B-v2-MTP-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
43
+ Qwythos-9B-v2-MTP-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
44
+ Qwythos-9B-v2-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
45
+ Qwythos-9B-v2-MTP-BF16.gguf filter=lfs diff=lfs merge=lfs -text
46
+ Qwythos-9B-v2-BF16.gguf filter=lfs diff=lfs merge=lfs -text
Qwythos-9B-v2-BF16.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:663e4694583caf7b3e5bdeb76c27aebb7ea86bcc2760419fea82e51e2d8087c7
3
+ size 17920697088
Qwythos-9B-v2-MTP-BF16.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2c46b135e2fef3c4d4b2a0e98394ae5ac5cdec54b1a5451c74ea568fbafb6075
3
+ size 18407321280
Qwythos-9B-v2-MTP-Q4_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cfdd00ac1c1dc9ced33f23817fb4282f2594067e02e34d82e3e63bc0ea275b05
3
+ size 5903822528
Qwythos-9B-v2-MTP-Q5_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d8ea0d2289793401a6ec546e713c885fba9e27d14cd70a36c570f975e383e659
3
+ size 6710963904
Qwythos-9B-v2-MTP-Q6_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:24271fb6e16b2b8f581d192cf77d947453d7852f965ce6801fefa6964bbea060
3
+ size 7666069184
Qwythos-9B-v2-MTP-Q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6d72e896721f2be249b2584fb06a007a8f8ce506e592ea54c103952303a5f11f
3
+ size 9786060480
Qwythos-9B-v2-Q4_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c0a588704f422b713eca29b2c1f192ae6f69aea3f9e7cb64f9ecdb76ff7a85f4
3
+ size 5736063744
Qwythos-9B-v2-Q5_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fc5251e8e3e87d58946522833eb896c84375a715b6f89c54cdd10082ecc6ea8d
3
+ size 6523806464
Qwythos-9B-v2-Q6_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dd39e148823f0bab858e946d603e4bf424240aae34435580be820f09c75ca379
3
+ size 7458300672
Qwythos-9B-v2-Q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3324ac1a7260fbb484d10373df7d54d156ff6c4f5c577d87dbd0218928beab89
3
+ size 9527501568
README.md ADDED
@@ -0,0 +1,199 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: empero-ai/Qwythos-9B-v2
4
+ base_model_relation: quantized
5
+ language:
6
+ - en
7
+ pipeline_tag: image-text-to-text
8
+ library_name: gguf
9
+ tags:
10
+ - gguf
11
+ - llama.cpp
12
+ - quantized
13
+ - qwythos
14
+ - qwen3.5
15
+ - ftpo
16
+ - reasoning
17
+ - uncensored
18
+ - long-context
19
+ - 1M-context
20
+ - function-calling
21
+ - multimodal
22
+ - vision
23
+ ---
24
+
25
+ <p align="center">
26
+ <img src="https://huggingface.co/empero-ai/Qwythos-9B-v2/resolve/main/qwythos_v2.png" alt="Qwythos-9B-v2" width="640"/>
27
+ </p>
28
+
29
+ <p align="center"><b>Empero AI</b></p>
30
+
31
+ # Qwythos-9B-v2-GGUF
32
+
33
+ GGUF quantizations of **[empero-ai/Qwythos-9B-v2](https://huggingface.co/empero-ai/Qwythos-9B-v2)** for [llama.cpp](https://github.com/ggml-org/llama.cpp), Ollama, LM Studio, jan, KoboldCpp, and other GGUF runtimes.
34
+
35
+ **Qwythos-9B-v2 is the new and improved Qwythos** β€” all the deep chain-of-thought reasoning of the base Qwythos, with the **looping behavior fixed**. The looping/degeneration that showed up under greedy or low-temperature decoding is trained out (**6.7% β†’ 0%**), the native **MTP head is restored**, and the identity prompt is cleaned up β€” while knowledge and reasoning are held at (or above) the base Qwythos level.
36
+
37
+ The fix uses **FTPO (Final-Token Preference Optimization)**: the exact token that *starts* a repetition loop is identified and the model is gently trained to prefer coherent alternatives at that one position, leaving the rest of the distribution β€” and therefore its knowledge and reasoning β€” untouched.
38
+
39
+ For full training details, evaluation numbers, and sample generations, see the **[base model card](https://huggingface.co/empero-ai/Qwythos-9B-v2)**.
40
+
41
+ ---
42
+
43
+ ## What's new vs. the base Qwythos
44
+
45
+ - πŸ” **Looping behavior eliminated** β€” repetition under greedy / low-temp decoding dropped **6.7% β†’ 0%**. **Greedy decoding is now safe** β€” you no longer need `repeat-penalty` as a band-aid.
46
+ - 🧩 **MTP head restored** β€” the native multi-token-prediction module is back in the `-MTP-` files, so speculative-decoding (`--spec-type draft-mtp`) works.
47
+ - 🧠 **Reasoning preserved** β€” MMLU / GSM8K / GPQA / ARC held at or above the base Qwythos level (see the model card).
48
+ - πŸͺͺ **Cleaner identity** β€” states who it is once, only when asked.
49
+ - πŸ”“ Still intentionally **uncensored**, still **1M-token context** (YaRN), still **multimodal-capable** (Qwen3.5 vision tower).
50
+
51
+ ---
52
+
53
+ ## Files
54
+
55
+ ### Normal text weights β€” trunk only (32 blocks)
56
+
57
+ | File | Quant | Size | Notes |
58
+ |---|---|---|---|
59
+ | `Qwythos-9B-v2-Q4_K_M.gguf` | Q4_K_M | 5.34 GiB / 5.74 GB | **recommended default** β€” smallest practical, good quality |
60
+ | `Qwythos-9B-v2-Q5_K_M.gguf` | Q5_K_M | 6.08 GiB / 6.52 GB | balanced quality / size |
61
+ | `Qwythos-9B-v2-Q6_K.gguf` | Q6_K | 6.95 GiB / 7.46 GB | high quality |
62
+ | `Qwythos-9B-v2-Q8_0.gguf` | Q8_0 | 8.87 GiB / 9.53 GB | near-lossless |
63
+ | `Qwythos-9B-v2-BF16.gguf` | BF16 | 16.69 GiB / 17.92 GB | full precision (conversion base) |
64
+
65
+ If you don't know which to pick, **Q4_K_M is the right starting point.**
66
+
67
+ ### MTP-enabled text weights (33 blocks, `nextn_predict_layers = 1`)
68
+
69
+ These embed the restored Qwen3.5-compatible MTP head. Use them with llama.cpp builds that support MTP draft speculation (`--spec-type draft-mtp`). The MTP matrices are retained at **Q8_0** in every quantized variant.
70
+
71
+ | File | Quant | Size | Notes |
72
+ |---|---|---|---|
73
+ | `Qwythos-9B-v2-MTP-Q4_K_M.gguf` | Q4_K_M + MTP | 5.50 GiB / 5.90 GB | **recommended MTP default** |
74
+ | `Qwythos-9B-v2-MTP-Q5_K_M.gguf` | Q5_K_M + MTP | 6.25 GiB / 6.71 GB | balanced quality / size |
75
+ | `Qwythos-9B-v2-MTP-Q6_K.gguf` | Q6_K + MTP | 7.14 GiB / 7.67 GB | high quality |
76
+ | `Qwythos-9B-v2-MTP-Q8_0.gguf` | Q8_0 + MTP | 9.11 GiB / 9.79 GB | near-lossless |
77
+ | `Qwythos-9B-v2-MTP-BF16.gguf` | BF16 + MTP | 17.14 GiB / 18.41 GB | full precision (conversion base) |
78
+
79
+ ### Vision projector β€” for image input
80
+
81
+ | File | Size | Notes |
82
+ |---|---|---|
83
+ | `mmproj-Qwythos-9B-v2-BF16.gguf` | 0.86 GiB / 0.92 GB | CLIP-style vision encoder + projector at **BF16** native precision; **required for images**, pairs with any text quant above |
84
+
85
+ The vision tower is inherited **unchanged from Qwen3.5-9B** β€” it was frozen through both the base Qwythos SFT and the v2 FTPO fine-tune, so image behavior matches base Qwen3.5-9B. This mmproj is interchangeable with any Qwen3.5-9B `mmproj-*.gguf`.
86
+
87
+ ---
88
+
89
+ ## Hybrid-precision quantization (Gated-DeltaNet / SSM tensors)
90
+
91
+ Qwythos is a **hybrid** model β€” a 3:1 mix of Gated-DeltaNet linear-attention (SSM) blocks and full-attention blocks. The linear-attention state tensors are disproportionately sensitive to low-bit quantization, so the K-quants here keep them at higher precision than the surrounding weights:
92
+
93
+ | Quant | `ssm_alpha` | `ssm_beta` | `ssm_out` |
94
+ |---|---|---|---|
95
+ | **Q6_K** | Q8_0 | Q8_0 | Q8_0 |
96
+ | **Q5_K_M** | Q8_0 | Q8_0 | Q6_K |
97
+ | **Q4_K_M** | Q8_0 | Q8_0 | Q6_K |
98
+
99
+ The remaining SSM state tensors (`ssm_a`, `ssm_conv1d`, `ssm_dt`, `ssm_norm`) are kept at **F32** by the converter. This preserves the hybrid/SSM blocks for a small (~2–4%) increase in file size over a flat K-quant. `Q8_0` and `BF16` are uniform and need no overrides.
100
+
101
+ ---
102
+
103
+ ## Quick start
104
+
105
+ ### llama.cpp
106
+
107
+ ```bash
108
+ llama-cli \
109
+ -m Qwythos-9B-v2-Q4_K_M.gguf \
110
+ -p "Walk through the biochemistry of how organophosphate nerve agents inhibit acetylcholinesterase." \
111
+ -n 8192 \
112
+ --temp 0.6 --top-p 0.95 --top-k 20 --repeat-penalty 1.05 \
113
+ -c 16384
114
+ ```
115
+
116
+ Because v2's looping is trained out, `--repeat-penalty` is now optional and **greedy decoding (`--temp 0`) stays coherent.**
117
+
118
+ ### Ollama
119
+
120
+ ```bash
121
+ ollama run hf.co/empero-ai/Qwythos-9B-v2-GGUF:Q4_K_M
122
+ ```
123
+
124
+ ### LM Studio / jan / KoboldCpp
125
+
126
+ Drop any `.gguf` into your runtime's model directory. Qwythos uses the standard Qwen3.5 chat template; modern GGUF runtimes load it automatically from the file.
127
+
128
+ ### MTP draft speculation
129
+
130
+ ```bash
131
+ llama-server \
132
+ -m Qwythos-9B-v2-MTP-Q4_K_M.gguf \
133
+ --spec-type draft-mtp \
134
+ --spec-draft-n-max 6 \
135
+ -c 16384 --port 8080
136
+ ```
137
+
138
+ MTP support requires a recent llama.cpp build. If your runtime doesn't support MTP yet, use the normal files.
139
+
140
+ ---
141
+
142
+ ## Vision (image input)
143
+
144
+ Download a text quant **plus** the `mmproj-*.gguf`, then run llama.cpp's multimodal CLI/server:
145
+
146
+ ```bash
147
+ llama-mtmd-cli \
148
+ -m Qwythos-9B-v2-Q4_K_M.gguf \
149
+ --mmproj mmproj-Qwythos-9B-v2-BF16.gguf \
150
+ --image ./photo.jpg \
151
+ -p "Describe this image in detail." \
152
+ --temp 0.6 --top-p 0.95 --top-k 20 -c 16384
153
+ ```
154
+
155
+ **Honest note:** all Qwythos training (base SFT and v2 FTPO) was **text-only** β€” the vision tower was never fine-tuned, so image-grounded reasoning inherits base Qwen3.5-9B behavior and has not been independently evaluated for this release.
156
+
157
+ ---
158
+
159
+ ## Sampling recommendations
160
+
161
+ Qwythos is a reasoning model β€” every response opens with a `<think>...</think>` block before the answer.
162
+
163
+ | Parameter | Value |
164
+ |---|---|
165
+ | `temperature` | 0.6 |
166
+ | `top_p` | 0.95 |
167
+ | `top_k` | 20 |
168
+ | `repeat_penalty` | 1.05 (optional in v2) |
169
+ | `max_new_tokens` | 16384 |
170
+
171
+ Unlike the base Qwythos, **v2 does not loop under greedy / low-temperature decoding** β€” you can use `--temp 0` for deterministic runs without repetition. The 0.6-temperature settings above still match Qwen3.5's official thinking-mode recommendations for best quality.
172
+
173
+ ---
174
+
175
+ ## Long context (1M tokens)
176
+
177
+ The GGUFs ship with YaRN rope-scaling baked in for a **1,048,576-token context window** (4Γ— the 262,144 native). Set `-c` up to `1048576`; lower it to reduce KV-cache memory for shorter prompts. A single H100/H200-class GPU comfortably handles 256k–512k; the full 1M typically needs multi-GPU or aggressive KV-cache offload.
178
+
179
+ ---
180
+
181
+ ## Conversion & verification
182
+
183
+ - Converted and quantized with **llama.cpp** (`convert_hf_to_gguf.py`, `llama-quantize`), architecture `qwen35`, GGUF v3.
184
+ - MTP variants: default conversion (33-block, `nextn_predict_layers = 1`, 15 MTP tensors, MTP matrices pinned Q8_0). Normal variants: `--no-mtp` (32-block trunk-only). mmproj: `--mmproj --outtype bf16`.
185
+ - Hybrid-precision overrides applied per the table above.
186
+ - Structurally verified (arch / block count / `nextn` key / per-tensor types) and smoke-tested for load + coherent generation.
187
+ - `shasum -a 256 -c SHA256SUMS` covers all 11 artifacts.
188
+
189
+ ---
190
+
191
+ ## License & acknowledgements
192
+
193
+ Apache-2.0, inherited from Qwen3.5-9B. Shared for research and experimentation, as-is.
194
+
195
+ - Developed and released by **Empero AI**
196
+ - Base model: **Qwen3.5-9B** (Alibaba Qwen team)
197
+ - Looping fixed with **FTPO (Final-Token Preference Optimization)**
198
+ - Quantization: **llama.cpp** (ggml-org)
199
+ - HF model: [empero-ai/Qwythos-9B-v2](https://huggingface.co/empero-ai/Qwythos-9B-v2)
SHA256SUMS ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 663e4694583caf7b3e5bdeb76c27aebb7ea86bcc2760419fea82e51e2d8087c7 Qwythos-9B-v2-BF16.gguf
2
+ 2c46b135e2fef3c4d4b2a0e98394ae5ac5cdec54b1a5451c74ea568fbafb6075 Qwythos-9B-v2-MTP-BF16.gguf
3
+ cfdd00ac1c1dc9ced33f23817fb4282f2594067e02e34d82e3e63bc0ea275b05 Qwythos-9B-v2-MTP-Q4_K_M.gguf
4
+ d8ea0d2289793401a6ec546e713c885fba9e27d14cd70a36c570f975e383e659 Qwythos-9B-v2-MTP-Q5_K_M.gguf
5
+ 24271fb6e16b2b8f581d192cf77d947453d7852f965ce6801fefa6964bbea060 Qwythos-9B-v2-MTP-Q6_K.gguf
6
+ 6d72e896721f2be249b2584fb06a007a8f8ce506e592ea54c103952303a5f11f Qwythos-9B-v2-MTP-Q8_0.gguf
7
+ c0a588704f422b713eca29b2c1f192ae6f69aea3f9e7cb64f9ecdb76ff7a85f4 Qwythos-9B-v2-Q4_K_M.gguf
8
+ fc5251e8e3e87d58946522833eb896c84375a715b6f89c54cdd10082ecc6ea8d Qwythos-9B-v2-Q5_K_M.gguf
9
+ dd39e148823f0bab858e946d603e4bf424240aae34435580be820f09c75ca379 Qwythos-9B-v2-Q6_K.gguf
10
+ 3324ac1a7260fbb484d10373df7d54d156ff6c4f5c577d87dbd0218928beab89 Qwythos-9B-v2-Q8_0.gguf
11
+ 0d1687cb33124c78acab788b342d4a2eaf85b3035e87c3abe4ee9d0b84ddb4f5 mmproj-Qwythos-9B-v2-BF16.gguf
mmproj-Qwythos-9B-v2-BF16.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0d1687cb33124c78acab788b342d4a2eaf85b3035e87c3abe4ee9d0b84ddb4f5
3
+ size 921704512