Downloads · 30 days
352
30% of all-time downloads
LostGentoo/Qwen3.5-4B-AWQ
Qwen3.5-4B-AWQ is a image-text-to-text model from LostGentoo. 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.
AWQ 4-bit (W4A16) quantization of Qwen/Qwen3.5-4B, built with llm-compressor in compressed-tensors format for native vLLM loading (Marlin kernels).
Downloads · 30 days
352
30% of all-time downloads
All-time downloads
1.2K
Public
Parameters
5.2B
5.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors5.3 GB · 100%
How the weights are stored.
I323.6B · 69%
From the Hugging Face model README
AWQ 4-bit (W4A16) quantization of Qwen/Qwen3.5-4B,
built with llm-compressor in
compressed-tensors format for native vLLM loading (Marlin kernels).
Qwen3.5-4B is a hybrid-attention VLM: interleaved full self-attention + Gated-DeltaNet linear attention, a vision tower, and an MTP head for speculative decoding.
| Component | Precision |
|---|---|
LM Linear layers (MLP, full-attn q/k/v/o_proj, linear-attn projections) | INT4 W4A16, g128, symmetric |
| Vision tower + merger/projector | BF16 |
Embeddings, tied lm_head, RMSNorms | BF16 |
MTP head (mtp.*) | BF16 (post-quant splice via save_mtp_tensors_to_checkpoint) |
OpenLLM-lite, n=200 per task, greedy logprob MC scoring on RTX 5060 Ti (sm_120):
| Task | BF16 | AWQ | Recovery |
|---|---|---|---|
| MMLU | 0.710 | 0.700 | 98.6% |
| ARC-Challenge | 0.545 | 0.555 | 101.8% |
| HellaSwag | 0.705 | 0.670 | 95.0% |
| Winogrande | 0.685 | 0.675 | 98.5% |
| TruthfulQA MC1 | 0.295 | 0.285 | 96.6% |
| WikiText-2 PPL | 16.77 | 18.54 | +10.6% |
Mean MC recovery: 98.1%.
Full AWQ vs BF16 dump: LostGentoo/awq-quant-evals
(qwen35_4b_awq_vs_bf16.json, plus combined quant_quality_evals.json).
compressed-tensors is auto-detected - do not pass --quantization awq.
vllm serve LostGentoo/Qwen3.5-4B-AWQ \
--trust-remote-code \
--max-model-len 32768 \
--gpu-memory-utilization 0.90 \
--limit-mm-per-prompt '{"image":1}' \
--default-chat-template-kwargs '{"enable_thinking": false}' \
--generation-config vllm \
--mamba-cache-mode align \
--speculative-config '{"method":"mtp","num_speculative_tokens":3}'
Notes:
model_mtp.safetensors (included). Older docs may say
qwen3_5_mtp; current vLLM remaps that to mtp.--mamba-cache-mode align: needed for hybrid Gated-DeltaNet + MTP /
prefix-cache paths (all is unsupported for Qwen3.5 MTP)."enable_thinking": true and raise
max_tokens.--limit-mm-per-prompt '{"image":1}' so the VLM path is
enabled; omit only for text-only deployments.--enforce-eager only if
first bring-up hits compile issues.from vllm import LLM, SamplingParams
llm = LLM(
model="LostGentoo/Qwen3.5-4B-AWQ",
trust_remote_code=True,
max_model_len=8192,
limit_mm_per_prompt={"image": 1},
speculative_config={"method": "mtp", "num_speculative_tokens": 3},
)
sp = SamplingParams(temperature=0.7, top_p=0.8, top_k=20, max_tokens=256)
print(llm.generate(["Explain entropy in one sentence."], sp)[0].outputs[0].text)
curl http://127.0.0.1:8000/v1/chat/completions \
-H 'Content-Type: application/json' \
-d '{
"model": "LostGentoo/Qwen3.5-4B-AWQ",
"messages": [{"role":"user","content":"In one sentence, what is entropy?"}],
"max_tokens": 128,
"temperature": 0.7,
"chat_template_kwargs": {"enable_thinking": false}
}'
AWQModifier(duo_scaling=False) + QuantizationModifier(W4A16)re:.*visual.*, re:.*lm_head, re:.*mtp.*lmms-lab/flickr30k, seq 2048Qwen/Qwen3.5-4BApache-2.0, inherited from the base model.