Downloads · 30 days
74
13% of all-time downloads
TheUnderscore/Qwen3.8-Queen-27B-W4A16-AWQ
Qwen3.8-Queen-27B-W4A16-AWQ is a image-text-to-text model from TheUnderscore. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
W4A16 (4-bit weights, 16-bit activations) AWQ compressed-tensors quantization of aifeifei798/Qwen3.8-Queen-27B.
Downloads · 30 days
74
13% of all-time downloads
All-time downloads
568
Public
Parameters
27.8B
34.8 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors19.5 GB · 100%
How the weights are stored.
I3224.3B · 88%
From the Hugging Face model README
W4A16 (4-bit weights, 16-bit activations) AWQ compressed-tensors quantization
of aifeifei798/Qwen3.8-Queen-27B.
W4A16_ASYM — 4-bit asymmetric per-group quantization (group size 128) of all Linear weights, stored in the compressed-tensors pack-quantized format (weight_packed / weight_scale / weight_zero_point / weight_shape), which LMDeploy turbomind auto-detects and loads natively (including the MTP heads and vision tower, which stay BF16).compressed_tensors.offload.load_offloaded_model), so the full-precision source fits on a 2×16 GB VRAM setup.AWQModifier with the layer-scoped hybrid-attention mappings from build_hybrid_attention_mappings — full-attention input_layernorm → self_attn.q/k/v, post_attention_layernorm → mlp.gate/up, and mlp.up_proj → mlp.down_proj, with duo_scaling="both" and CPU offload, followed by W4A16 quantization. This layer-scoped recipe is required for hybrid-attention (Qwen3.5-family) architectures — grouped-regex smoothing or mismatched mappings corrupt decoding.lm_head, norms, linear_attn.in_proj_a/b, the vision tower, and MTP heads.train_sft split) — chosen over STEM-skewed instruction data to match the model's open-domain creative/roleplay focus.Tested with LMDeploy turbomind:
from lmdeploy import pipeline, TurbomindEngineConfig
pipe = pipeline(
"TheUnderscore/Qwen3.8-Queen-27B-W4A16-AWQ",
backend_config=TurbomindEngineConfig(
tp=2,
model_format="compressed-tensors",
language_model_only=True,
cpu_realtime_conversion=True,
),
)
print(pipe("Hello, who are you?").text)
quantize-awq-hybrid.py — the script used to produce this quantization (CPU-offloaded, DDP/torchrun, produces properly numbered -of-N shards). --offload_dir selects where per-rank CPU offload temp folders live (defaults to the current working directory).model-nonquant.safetensors — unquantized tensors (mtp.* and model.visual.*) preserved BF16 so the full model architecture is loadable.