cognitivers commited on
Commit
50b392c
·
verified ·
1 Parent(s): 028cd2a

Rewrite the card: single-pass measurements with error bars, provenance evidence, changelog

Browse files
Files changed (1) hide show
  1. README.md +109 -82
README.md CHANGED
@@ -1,82 +1,109 @@
1
- ---
2
- license: apache-2.0
3
- base_model: OBLITERATUS/Qwen3.8-27B-OBLITERATED
4
- library_name: gguf
5
- tags:
6
- - gguf
7
- - imatrix
8
- - qwen3_5
9
- - qwen3.8
10
- - abliterated
11
- - uncensored
12
- - low-vram
13
- - iq2
14
- quantized_by: cognitivers
15
- ---
16
-
17
- ![New weights incoming](assets/notice-banner.png)
18
-
19
- # Qwen3.8-27B-OBLITERATED — low-bit imatrix GGUFs (runs on 12 GB VRAM)
20
-
21
-
22
- > ### ⚠️ Rebuild in progress (2026-08-23)
23
- >
24
- > **The files currently in this repo were quantized from the base repo's `Q8_0` as it stood on 2026-08-22, before the author fixed his GGUF conversion pipeline.**
25
- >
26
- > On 2026-08-23 the author of the base model [stated publicly](https://x.com/elder_plinius/status/2091339694303068467) that the GGUFs published before that date "weren't being properly converted" (the bf16 safetensors were always fine), and re-uploaded a corrected `Q8_0` (commit `V3: fixed merge (abliterated weights, not stock)`, 2026-08-23 00:10 UTC). Two further upstream fixes, to `config.json` (a pad token inside `eos_token_id` caused early stopping) and to `chat_template.jinja`, also postdate every file here.
27
- >
28
- > We are rebuilding the entire ladder from the corrected V3 `Q8_0`, with a fresh importance matrix and the current template/eos metadata patched into each GGUF. **The files will be replaced in this same repo, so these URLs and the `-hf` / Ollama commands below keep working.** Until that lands, read the numbers in the table as measured against the old baseline, and expect the abliteration to be weaker than the author intends.
29
-
30
- First working IQ2/IQ3_XXS quantizations of [OBLITERATUS/Qwen3.8-27B-OBLITERATED](https://huggingface.co/OBLITERATUS/Qwen3.8-27B-OBLITERATED), sized so **12 GB (and even 10 GB) GPUs run this 27B fully offloaded**. Until now the smallest GGUF anywhere for this model was Q2_K at 10.9 GB — with no VRAM headroom for context on a 12 GB card, and no IQ-class quants at all.
31
-
32
- **Why no one had published these levels:** the public imatrix for this model is missing entries for several tensors, so `llama-quantize` refuses to produce any IQ2/IQ3-class quant from it ("the result will be garbage"). Two separate causes, both solved here:
33
- 1. imatrix collection for hybrid SSM+attention models was buggy before llama.cpp [#14994](https://github.com/ggml-org/llama.cpp/pull/14994) we computed a **fresh imatrix** (included in this repo) on current master with the single-sequence batching workaround, giving full coverage of all executed tensors.
34
- 2. `blk.64` is an **MTP (multi-token-prediction) layer** that never runs during normal inference, so no imatrix data can exist for it; its 8 weight tensors are pinned to `q4_K` via `--tensor-type` (+~120 MB, zero quality impact on normal decoding).
35
-
36
- ![A 27B model on a 12 GB GPU](assets/bench-vram-12gb.png)
37
-
38
- ## Benchmarks (measured, not estimated)
39
-
40
- Perplexity on wikitext-2 (120 chunks, ctx 512), against the official Q8_0 as baseline. VRAM is the **measured peak** (`nvidia-smi`, 1 s sampling) with `-ngl 999 -c 8192 -fa on -ctk q8_0 -ctv q8_0` on an RTX A4000/A40.
41
-
42
- | File | Size | PPL | ΔPPL vs Q8_0 | Peak VRAM @ 8k ctx | tg128 / pp512 (RTX A4000) | Target cards |
43
- |---|---|---|---|---|---|---|
44
- | IQ3_XXS | 11.4 GB | 7.99 ± 0.12 | **+6.2 %** | 11.7 GiB | 25.7 / 690 t/s | 12 GB (headless, or ctx ≤4k with desktop) |
45
- | IQ2_M | 10.2 GB | 8.42 ± 0.12 | **+12.0 %** | 10.8 GiB | 26.1 / 609 t/s | 12 GB, comfortable |
46
- | IQ2_S | 9.6 GB | 8.82 ± 0.13 | **+17.3 %** | 10.0 GiB | 26.6 / 600 t/s | 10–12 GB |
47
- | IQ2_XXS | 8.7 GB | 9.70 ± 0.15 | **+29.0 %** | 9.2 GiB | 28.1 / 694 t/s | 8–10 GB — usable, clearly degraded |
48
- | Q8_0 (reference) | 29.0 GB | 7.52 ± 0.11 | — | — | — | not in this repo |
49
-
50
- ![Quality cost vs decode speed](assets/bench-quality-vs-speed.png)
51
-
52
- Speeds via `llama-bench -fa 1 -r 3` on an RTX A4000 (448 GB/s comparable bandwidth to an RTX 3060 12GB/4070 class). Every file was additionally smoke-tested end-to-end: downloaded from this repo, loaded fully on GPU, generated correct output — in both llama.cpp and **Ollama** (hybrid `qwen3_5` arch confirmed working in Ollama's engine).
53
-
54
- **Pick:** on a 12 GB card, `IQ3_XXS` for best quality or `IQ2_M` for context headroom / desktop use. `IQ2_XXS` exists so 8–10 GB cards can run the model at all — expect visibly degraded long-form coherence, code and math.
55
-
56
- ## How to run
57
-
58
- ```bash
59
- # llama.cpp
60
- llama-server -hf cognitivers/Qwen3.8-27B-OBLITERATED-12GB-GGUF:IQ2_M \
61
- -ngl 999 -c 8192 -fa on -ctk q8_0 -ctv q8_0
62
-
63
- # Ollama
64
- ollama run hf.co/cognitivers/Qwen3.8-27B-OBLITERATED-12GB-GGUF:IQ2_M
65
- ```
66
-
67
- Also works in LM Studio, Jan and koboldcpp. The base model is multimodal; these files are **text-only** — for vision add `mmproj-model-bf16.gguf` from the [original repo](https://huggingface.co/OBLITERATUS/Qwen3.8-27B-OBLITERATED/tree/main) (~1 GB extra VRAM).
68
-
69
- ## Provenance
70
-
71
- - Source: official `Q8_0` GGUF from the base repo (Q8_0 ≈ lossless vs bf16; requantized with `--allow-requantize`).
72
- - Importance matrix: `imatrix.gguf` in this repo — computed by us on the abliterated weights (llama.cpp master ≥ #14994, `-c 512 -b 512 -ub 512`, bartowski's calibration_datav3, 100 % coverage of executed 2-D tensors, verified programmatically).
73
- - Quantized with `llama-quantize` b10567: `--imatrix` + `--tensor-type blk.64.*=q4_K` (MTP layer, see above).
74
- - Reproducible: same inputs + same build → same bytes.
75
-
76
- At 2-bit levels quantization loss is real (see table). These quants exist to make the model *runnable* on mainstream GPUs, not to replace Q4+ if your hardware fits them.
77
-
78
- ## Credits
79
-
80
- - [OBLITERATUS](https://huggingface.co/OBLITERATUS) original abliterated model.
81
- - [mradermacher](https://huggingface.co/mradermacher) — first GGUF/imatrix work on this model; their repo documents the missing-tensor problem these files solve.
82
- - [llama.cpp](https://github.com/ggml-org/llama.cpp) and compilade's hybrid-model imatrix fix (#14994).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: OBLITERATUS/Qwen3.8-27B-OBLITERATED
4
+ library_name: gguf
5
+ tags:
6
+ - gguf
7
+ - imatrix
8
+ - qwen3_5
9
+ - qwen3.8
10
+ - abliterated
11
+ - uncensored
12
+ - low-vram
13
+ - iq2
14
+ quantized_by: cognitivers
15
+ ---
16
+
17
+ ![New weights published](assets/notice-banner.png)
18
+
19
+ # Qwen3.8-27B-OBLITERATED — low-bit imatrix GGUFs (runs on 12 GB VRAM)
20
+
21
+ > ### Rebuilt 2026-08-23 — re-download if you pulled these before that date
22
+ >
23
+ > The author of the base model [stated publicly](https://x.com/elder_plinius/status/2091339694303068467) on 2026-08-23 that every GGUF he had published until then "weren't being properly converted", and his repo carries the commit `V3: fixed merge (abliterated weights, not stock)`. The files that were in this repo were quantized on 2026-08-22, before both.
24
+ >
25
+ > **Every file here has been rebuilt from the corrected `Q8_0`**, with a fresh importance matrix computed on the corrected weights and the current upstream chat template baked in. Filenames and URLs are unchanged, so `-hf` and Ollama commands keep working. The previous files remain reachable in this repo's git history at revision `ad034226` — their sha256 are listed in the changelog at the bottom.
26
+
27
+ IQ2/IQ3_XXS quantizations of [OBLITERATUS/Qwen3.8-27B-OBLITERATED](https://huggingface.co/OBLITERATUS/Qwen3.8-27B-OBLITERATED), sized so **12 GB (and even 10 GB) GPUs run this 27B fully offloaded**. The smallest GGUF in the base repo is Q2_K at 10.9 GB, with no headroom for context on a 12 GB card and no IQ-class quants at all.
28
+
29
+ ![Sizes against a 12 GB budget](assets/bench-size.png)
30
+
31
+ ## Why these levels need work that the base repo does not do
32
+
33
+ 1. The public imatrix for this model is missing entries for several tensors, so `llama-quantize` refuses to produce any IQ2/IQ3-class quant from it. imatrix collection for hybrid SSM+attention models was buggy before llama.cpp [#14994](https://github.com/ggml-org/llama.cpp/pull/14994); we compute a **fresh imatrix** (shipped here as `imatrix.gguf`) on current master with the single-sequence batching workaround.
34
+ 2. `blk.64` is an **MTP (multi-token-prediction) layer** that never runs during normal decoding, so no imatrix data can exist for it and the IQ quantizers abort. Its 8 weight tensors are pinned to `q4_K` via `--tensor-type`. That costs roughly 120 MB of file size for weights a plain llama.cpp decode never executes; it is kept so speculative-decoding front-ends still find the head.
35
+
36
+ ## Benchmarks
37
+
38
+ | File | Size | PPL (wikitext-2) | vs corrected Q8_0 | Fits a 12 GB card |
39
+ |---|---|---|---|---|
40
+ | **IQ3_XXS** | 11.43 GB | 8.2767 ± 0.124 | **+6.6 %** | headless, or ctx ≤4k with a desktop |
41
+ | **IQ2_M** | 10.24 GB | 8.8054 ± 0.133 | **+13.4 %** | yes, comfortably |
42
+ | **IQ2_S** | 9.60 GB | 9.2450 ± 0.140 | **+19.1 %** | yes, with context headroom |
43
+ | **IQ2_XXS** | 8.67 GB | 10.2938 ± 0.159 | **+32.6 %** | 8-10 GB cards, visibly degraded |
44
+ | Q8_0 (base repo, our source) | 29.05 GB | 7.7630 ± 0.116 | | no |
45
+
46
+ **Pick:** `IQ3_XXS` for best quality on a 12 GB card, `IQ2_M` if you want context headroom or run a desktop on the same GPU. `IQ2_XXS` exists so 8-10 GB cards can run the model at all; expect visibly weaker long-form coherence, code and maths.
47
+
48
+ ![Quality cost per level](assets/bench-quality.png)
49
+
50
+ ### The rebuild, measured
51
+
52
+ Perplexity alone cannot tell you the old files came from a different model, so here is the direct test: how often each model picks a **different top token** than the corrected `Q8_0`, over the same text.
53
+
54
+ ![Provenance](assets/bench-provenance.png)
55
+
56
+ | Comparison | Same top token | Median KLD | RMS Δp |
57
+ |---|---|---|---|
58
+ | Old `Q8_0` vs corrected `Q8_0` | **89.26 ± 0.43 %** | 0.0328 | 6.94 % |
59
+ | Our rebuilt IQ2_M vs its own `Q8_0` | 81.86 ± 0.54 % | 0.0911 | 13.28 % |
60
+
61
+ Two `Q8_0` quantizations of the *same* weights agree on the top token about 99.9 % of the time. These two disagree **10.7 %** of the time, so they are not the same model. For scale, quantizing all the way from 8-bit to 2-bit costs 18.1 % disagreement: **the upstream merge fix is worth 59 % of that**.
62
+
63
+ One counter-intuitive detail worth stating plainly: the **old** `Q8_0` scores a *better* perplexity (7.3158 ± 0.108 vs 7.7630 ± 0.116). That is consistent with the upstream commit message `V3: fixed merge (abliterated weights, not stock)` — the old file sat closer to the stock model, which reads better on wikitext and is worse at the one thing this model exists for. The same applies to the IQ2_M we previously shipped (8.2428 ± 0.122).
64
+
65
+ We are not claiming the old files were broken in use. We did not measure a refusal difference and we are not publishing one. The case for the rebuild is the author's own statement, his commit history, and the 10.7 % top-token divergence above.
66
+
67
+ ## How to run
68
+
69
+ ```bash
70
+ # llama.cpp
71
+ llama-server -hf cognitivers/Qwen3.8-27B-OBLITERATED-12GB-GGUF:IQ2_M \
72
+ -ngl 999 -c 8192 -fa on -ctk q8_0 -ctv q8_0
73
+
74
+ # Ollama
75
+ ollama run hf.co/cognitivers/Qwen3.8-27B-OBLITERATED-12GB-GGUF:IQ2_M
76
+ ```
77
+
78
+ Also works in LM Studio, Jan and koboldcpp. The base model is multimodal; these files are **text-only** — for vision add `mmproj-model-bf16.gguf` from the [original repo](https://huggingface.co/OBLITERATUS/Qwen3.8-27B-OBLITERATED/tree/main) (~1 GB extra VRAM).
79
+
80
+ The author's recommended sampling for this model: `temp 0`, `repetition_penalty 1.15`, no system prompt, thinking off for coding.
81
+
82
+ ## Provenance & reproducibility
83
+
84
+ - Source: `Qwen3.8-27B-OBLITERATED-Q8_0.gguf` from the base repo, **as of 2026-08-23** (the corrected merge). Requantized with `--allow-requantize`.
85
+ - Importance matrix: `imatrix.gguf` here, computed by us on the corrected weights with bartowski's `calibration_datav3` (129 chunks, `-c 512 -b 512 -ub 512 --parse-special`). The calibration corpus is deliberately **not** the evaluation corpus.
86
+ - `llama-quantize` from llama.cpp commit `c060ca9`, with `--imatrix` and `--tensor-type "blk\.64\..*=q4_K"`.
87
+ - Chat template: patched with `gguf_new_metadata` from the upstream `chat_template.jinja` of 2026-08-23 17:42, verified byte-identical inside every shipped file (sha256 `58b76d2f9875fb3e9359a686567d2e30`). `eos_token_id=248046`, `padding_token_id=248044`.
88
+ - Evaluation: wikitext-2 raw test, 120 chunks, `-c 512 -fa on`, same binary for every row of the table. Perplexity is reported with its standard error; differences smaller than the error bars are not meaningful.
89
+
90
+ ## Changelog
91
+
92
+ **2026-08-23 — all four files rebuilt.**
93
+ Source changed from the base repo's `Q8_0` as of 2026-08-22 to the corrected one of 2026-08-23. New importance matrix, upstream chat template patched in. Filenames unchanged.
94
+
95
+ The previous files are still reachable at revision [`ad034226`](https://huggingface.co/cognitivers/Qwen3.8-27B-OBLITERATED-12GB-GGUF/tree/ad034226d179088ccdd04b226961a6f802d69d65) of this repo, so anything you pinned still resolves:
96
+
97
+ | File | sha256 before | sha256 now |
98
+ |---|---|---|
99
+ | IQ3_XXS | `3b7ac301cba8bc56…` | `83cef0f72449b8c0…` |
100
+ | IQ2_M | `e4978299d3d97900…` | `2b4552dbb7f6d410…` |
101
+ | IQ2_S | `b3f540d3786e666d…` | `9f00561bd9d9a706…` |
102
+ | IQ2_XXS | `7efc31c3b158ab2d…` | `3edb134e49153c27…` |
103
+
104
+ ## Credits
105
+
106
+ - [OBLITERATUS](https://huggingface.co/OBLITERATUS) — original abliterated model, and for publicly flagging the conversion bug that prompted this rebuild.
107
+ - [mradermacher](https://huggingface.co/mradermacher) — first GGUF/imatrix work on this model.
108
+ - [llama.cpp](https://github.com/ggml-org/llama.cpp) — and compilade's hybrid-model imatrix fix (#14994).
109
+ - [bartowski](https://huggingface.co/bartowski) — the `calibration_datav3` corpus.