Downloads · 30 days
538
17% of all-time downloads
ababaka/Huihui-Qwen3.8-27B-Abliterated-W4A16-AutoRound
Huihui-Qwen3.8-27B-Abliterated-W4A16-AutoRound is a machine learning model from ababaka. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
Quantized from scratch (FP16 → W4A16) version of huihui-ai/Huihui-Qwen3.8-27B-abliterated in compressed-tensors pack-quantized format, following the recipe of dbirk/Qwen3.8-27B-W4A16-AutoRound.
Downloads · 30 days
538
17% of all-time downloads
All-time downloads
3.2K
Public
Parameters
6.3B
29.6 GB on disk
Likes
3
Public
Click a slice to open those files.
.safetensors16.7 GB · 100%
How the weights are stored.
I3227.5B · 98%
From the Hugging Face model README
Quantized from scratch (FP16 → W4A16) version of huihui-ai/Huihui-Qwen3.8-27B-abliterated in compressed-tensors pack-quantized format, following the recipe of dbirk/Qwen3.8-27B-W4A16-AutoRound.
Update 2026-08-25: re-quantized from the refreshed upstream base (updated 2026-08-24, commit
739e3c5b8984). Previous weights remain in the repo git history.
Fully loadable by vLLM 0.27+ out of the box (quant_method: compressed-tensors),
with the MTP (multi-token-prediction) speculative-decoding pipeline applied:
lm_head / embed_tokens / MTP module quantized to int8 and a 40k-token
draft-vocabulary draft head for fast speculation.
Средняя скорость генерации на RTX 3090 (24 GB): ≈80 tok/s декод с MTP k=3 (live-мониторинг: средняя во время активной генерации ~81, медиана 84, пики до 121 tok/s при acceptance MTP ~65–90%; на длинных контекстах acceptance падает до 5–30% → ~40–55 tok/s; префилл 1.8–7.6k tok/s). Без MTP — примерно втрое медленнее.
<details> <summary><b>Как сделана модель</b> (рецепт, пайплайн, формат)</summary>Полный цикл конвертации FP16 → vLLM-ready на RTX 3090 занимает ≈2 ч 45 мин (квантование 64 слоёв ≈2 ч 37 мин при ~137–155 с/слой + пост-пайплайн ≈6 мин; пики: VRAM 15.5 GB / RAM 23 GB).
| Параметр | Значение |
|---|---|
| Toolchain | auto-round 0.14.2, transformers 5.15.0, torch 2.13+cu130, compressed-tensors |
| Scheme | W4A16, int4, group 128, symmetric (pack-quantized) |
| Dataset | NeelNanda/pile-10k, 128 samples, seqlen 2048, batch 4 |
| Iters | 200 |
| seed / trust_remote_code | 42 / True |
| quant_nontext_module | False (vision tower не трогается) |
| Export format | llm_compressor |
Остались в BF16 через layer_config: linear_attn.in_proj_a/b (все 48 слоёв),
вся vision-башня visual.*, модуль mtp и lm_head.
| Шаг | Что |
|---|---|
quant_lm_head | lm_head → int8 g128 (−1.3 GB VRAM) |
quant_embed | embed_tokens → int8 g128 (untied, ещё −1.3 GB) |
quant_mtp | mtp.fc + 7 Linear MTP → int8 g128 |
build_draft_vocab | draft head на 40960 токенов для MTP-спекуляции (частотный топ) |
config_groups (порядок важен для матчинга compressed-tensors):
group_0 targets=["Linear"] int4 g128 sym — основной корпус
group_1 targets=["re:.*lm_head$"] int8 g128 — lm_head + mtp.draft_lm_head
group_2 targets=["re:.*embed_tokens$"] int8 g128 — embed_tokens
group_3 targets=["re:^mtp\\..*"] int8 g128 — модуль MTP
Веса: weight_packed int32 + weight_scale fp16 (bf16 для embedding) + weight_shape.
MTP и draft head лежат в model_extra_tensors.safetensors, рядом
mtp_draft_vocab_ids.pt (карта id для урезанного словаря драфтера).
qwen3_5), 27B, 64 слоя (48 linear-attention DeltaNet +
16 full attention), словарь 248k, модуль MTP, vision-башня.lm_head и embed_tokens — отдельные матрицы.python -m vllm.entrypoints.openai.api_server \
--model ababaka/Huihui-Qwen3.8-27B-Abliterated-W4A16-AutoRound \
--served-model-name qwen3.8-27b \
--host 0.0.0.0 --port 18020 \
--gpu-memory-utilization 0.93 \
--max-model-len 150000 \
--max-num-seqs 8 \
--kv-cache-dtype fp8 \
--mamba-ssm-cache-dtype float16 \
--max-num-batched-tokens 2048 \
--language-model-only \
--speculative-config '{"method":"mtp","num_speculative_tokens":3,"draft_sample_method":"probabilistic"}'
Ключевые флаги:
| Флаг | Зачем |
|---|---|
--mamba-ssm-cache-dtype float16 | обязателен: конфиг модели просит float32, дефолт не влезает в 24 GB |
--kv-cache-dtype fp8 | KV-кэш fp8 (вместе с attention-блоком 832 токена) |
--max-num-seqs 8 | >8 не влезает: Mamba-блоки по 1 на последовательность |
--speculative-config | MTP-спекуляция k=3 с урезанным 40k словарём драфтера |
curl http://localhost:18020/v1/chat/completions \
-H "Authorization: Bearer <ключ>" -H "Content-Type: application/json" \
-d '{"model":"qwen3.8-27b","messages":[{"role":"user","content":"Hi!"}],"max_tokens":64}'
Ожидаемый старт: загрузка весов ~0.2 с, torch.compile ~26 с (первый раз), KV-пул 151–178k токенов, декод ~80 tok/s в среднем с MTP (пики 121, на длинных контекстах 40–55).