What is quantized
Quantized to 4-bit:
- routed experts
mlp.experts.*.{gate,up,down}_proj (all layers)
- shared expert
{gate,up,down}_proj
- full-attention
self_attn.{q,k,v,o}_proj
Kept in BF16: GatedDeltaNet linear_attn (mamba) layers, MoE router mlp.gate + shared_expert_gate, vision tower (model.visual.*, 27 blocks), token embeddings, lm_head, all norms.
Calibration
Data-free — weight-only (model_free_ptq, round-to-nearest); no calibration data. Weights are quantized by streaming the safetensors from disk.
Usage (vLLM)
from vllm import LLM, SamplingParams # This is a multimodal checkpoint: the vision tower is kept in BF16# (only the text / MoE weights are 4-bit). vLLM builds the full model.llm = LLM( model="sahilchachra/Agents-A1-W4A16", trust_remote_code=True,)out = llm.chat( [{"role": "user", "content": "Hello!"}], SamplingParams(temperature=0.6, top_p=0.95, max_tokens=512),)print(out[0].outputs[0].text)
Serving via the CLI, pass the flag directly:
vllm serve sahilchachra/Agents-A1-W4A16 \ --trust-remote-code \ --max-model-len 262144 --reasoning-parser qwen3