Views
No views yet
mage_vl, custom architecture): a Mage-ViT visual encoder + a Qwen3-4B-Instruct language backbone, with native support for proactive streaming and neural-codec video. Only the Qwen3 LM backbone is quantized here; the vision encoder is kept in BF16.llm-compressor (AWQModifier + QuantizationModifier) -> compressed-tensors pack-quantizedThis is a quantized derivative. Weights, behavior, and license follow the base model — see the original card for full details, benchmarks, and citation.
model.language_model.*.self_attn.{q,k,v,o}_projmodel.language_model.*.mlp.{gate,up,down}_proj (all 36 layers)model.visual.*), token embeddings, lm_head, all norms (incl. q_norm / k_norm).transformers generate(), single 448px image + text prompt, greedy (do_sample=False), 96 new tokens, GPU otherwise idle:| Variant | Decode speed | On-disk size |
|---|---|---|
| BF16 (base) | ~16.8 tok/s | ~9.5 GB |
| NVFP4A16 | ~14.0 tok/s | ~6.0 GB |
| AWQ W4A16 | ~11.7 tok/s | ~3.9 GB |
transformers path, decode is compute / vision-encoder bound rather than weight-bandwidth bound, so 4-bit weights bring no bandwidth win and the on-the-fly dequant (FP4→BF16 for NVFP4, int4-unpack for AWQ) adds a little overhead — so the quantized variants are actually slightly slower than BF16 in this setup. The benefit is memory / disk footprint (AWQ ≈ 40% of BF16). Turning that size reduction into a throughput win would require a serving stack with native 4-bit kernels (vLLM / TensorRT-LLM), which do not yet implement the mage_vl architecture.transformers + trust_remote_code=True and the repo's AutoProcessor (custom mage_vl code); vLLM has no mage_vl implementation yet.mage_vl architecture — load with trust_remote_code=True and the repo's AutoProcessor. OpenAI-style messages with image content, e.g. messages=[{"role":"user","content":[{"type":"image"},{"type":"text","text":"Describe this image."}]}], rendered via processor.apply_chat_template(...), images passed as PIL objects via images=[...]. The card recommends do_sample=False for deterministic outputs. Note: vLLM does not yet implement mage_vl, so run it via transformers.do_sample=False (deterministic) per the model card; max_new_tokens per use case.1from vllm import LLM, SamplingParams
2
3# Weight-only quantized (custom architecture -> requires trust_remote_code).
4# Load like the original model in any runtime that implements this arch.
5llm = LLM(
6 model="sahilchachra/Mage-VL-AWQ",
7 trust_remote_code=True,
8)
9out = llm.chat(
10 [{"role": "user", "content": "Hello!"}],
11 SamplingParams(temperature=0.6, top_p=0.95, max_tokens=512),
12)
13print(out[0].outputs[0].text)1vllm serve sahilchachra/Mage-VL-AWQ \
2 --trust-remote-code \
3 --max-model-len 262144