base_model: sakamakismile/Huihui-Qwen3.8-27B-abliterated-NVFP4
license: apache-2.0
tags:
- basalt
- nvfp4
- dense
- abliterated
- uncensored
- qwen3.8
- vision
library_name: basalt
Huihui Qwen3.8-27B abliterated for Basalt on Blackwell
Model file for Basalt, a local inference engine for NVIDIA Blackwell (sm_120) with
OpenAI- and Anthropic-compatible APIs. The model is
huihui-ai's abliterated Qwen3.8-27B, quantized to NVFP4
by sakamakismile. It is a dense model and
runs on one GPU. Built and tested with Basalt 0.5.5.
All credit for the abliteration goes to huihui-ai, and for the NVFP4 quantization to
sakamakismile. This repo only repackages their weights in Basalt's format, with no
further training or changes.
Huihui-Qwen3.8-27B-abliterated-NVFP4.basalt (19.7 GiB) is self-contained: weights, tokenizer, MTP layer, DFlash 2 block
drafter and vision tower. It was converted with Basalt's tools/convert/convert.py, exactly as the
Qwen3.8-27B pack is:
- GDN, attention and MLP projections: sakamakismile's NVFP4 (compressed-tensors, W4A4, group 16), bit for bit.
- Output head: the checkpoint's BF16 head as FP8 rows, rounded once.
- GDN a/b projections: BF16, rounded once from their NVFP4 values. Token embedding and vision tower: BF16, as stored.
- MTP layer and block drafter: Q8_0. They only draft, and the model checks every draft, so they cannot change output.
- Tokenizer: the upstream Qwen3.8
tokenizer.json. The quantized repo's copy was re-saved with an older pre-tokenizer
rule that Basalt rejects. Vocabulary, merges, added tokens and chat template are identical; abliteration does not touch
the tokenizer.
SHA-256: 14fa516922b97ed067589bae7e5b574304ae2af9d4b3cd8110ac008227becc5a (21,149,505,481 bytes).
Speed
basalt-bench (Basalt 0.5.5) on one RTX 5090 at a 500 W power limit, --kv fp16, --seed 1, one cold run each, tokens/s.
The second column is Basalt's QUASAR Qwen3.8-27B pack, measured on the same machine the same day.
| this pack | QUASAR pack | |
|---|---|---|
| Prompt read, 4k / 16k / 32k / 64k tokens | 15,402 / 12,635 / 9,818 / 6,721 | 14,804 / 12,694 / 10,128 / 6,928 |
Decode, plain (--spec 0): chat / structured / prose |
94 / 93 / 93 | 94 / 92 / 93 |
| Decode, drafted: chat / structured / prose | 245 / 784 / 195 | 266 / 830 / 198 |
| Draft acceptance: chat / structured / prose | 40% / 85% / 30% | 41% / 88% / 36% |
The DFlash 2 drafter was trained on the original Qwen3.8-27B, so it accepts slightly fewer tokens on the abliterated
weights, and drafted decode is 3–6% slower. Greedy output with drafting is exactly plain greedy output. Sampled requests
keep drafts by speculative sampling, so the tokens follow the model's distribution exactly.
Quality
Not measured yet. Basalt's quality gate (basalt-bench --quality) compares against a BF16 reference of the same model.
The published reference is for the original Qwen3.8-27B, so it does not apply to the abliterated weights.
A smoke test passed: text generation, image input (shapes, colors and printed text read correctly, on par with the QUASAR
pack on the same image) and drafted decode.
Run
Build or download the engine as described in the Basalt README, then:
hf download MLXBits/Huihui-Qwen3.8-27B-abliterated-Basalt Huihui-Qwen3.8-27B-abliterated-NVFP4.basalt --local-dir models
basalt_config.json:
{
"version": 2,
"models": [{ "model": "models/Huihui-Qwen3.8-27B-abliterated-NVFP4.basalt", "kv": "int8", "max-context": 150000, "vision": "dynamic" }],
"server": { "port": 8080 }
}
bin/basalt serve --config basalt_config.json
To build the same file yourself:
hf download sakamakismile/Huihui-Qwen3.8-27B-abliterated-NVFP4 --revision 36276309 --local-dir huihui-nvfp4
hf download z-lab/Qwen3.8-27B-DFlash2 --revision 50307d4c --local-dir dflash2
hf download QUASAR-QAT/Qwen3.8-27B-QUASAR-NVFP4 --revision 4a22293a tokenizer.json tokenizer_config.json --local-dir qwen-tok
# The converter wants model-NNNNN-of-NNNNN shard names and the upstream tokenizer: link them into one directory.
mkdir huihui-shards && cd huihui-shards
for f in ../huihui-nvfp4/*; do ln -s "$f" .; done
rm model.safetensors model-mtp-bf16.safetensors tokenizer.json tokenizer_config.json
ln -s ../huihui-nvfp4/model.safetensors model-00001-of-00002.safetensors
ln -s ../huihui-nvfp4/model-mtp-bf16.safetensors model-00002-of-00002.safetensors
ln -s ../qwen-tok/tokenizer.json ../qwen-tok/tokenizer_config.json .
cd ..
python3 tools/convert/convert.py --checkpoint huihui-shards --drafter dflash2 \
--out Huihui-Qwen3.8-27B-abliterated-NVFP4.basalt --name "Huihui Qwen3.8-27B abliterated NVFP4"
Usage warnings
This model's refusal behaviour has been removed, as huihui-ai's card explains:
- It can produce sensitive, controversial or inappropriate content. Review its output.
- It is not suitable for all audiences or for public-facing deployments without your own filtering.
- You are responsible for using it lawfully and ethically.
- It is intended for research and controlled environments, and comes with no safety guarantees.
Sources
- Abliterated model: huihui-ai/Huihui-Qwen3.8-27B-abliterated
("Latest update 3", per the quantizer's card), from Qwen/Qwen3.8-27B. - NVFP4 quantization: sakamakismile/Huihui-Qwen3.8-27B-abliterated-NVFP4
(revision36276309). - Block drafter: z-lab/Qwen3.8-27B-DFlash2 (revision
50307d4c). - Tokenizer files: upstream Qwen3.8, via QUASAR-QAT/Qwen3.8-27B-QUASAR-NVFP4
(revision4a22293a). - Format and converter: Basalt v0.5.5.
License
Qwen3.8-27B, huihui-ai's abliterated model, sakamakismile's quantization and the DFlash 2 drafter are all Apache-2.0. This
file is distributed under the same LICENSE. The Basalt engine itself is MIT.