Instructions to use HivenetQuant/Qwen3.6-27B-NVFP4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use HivenetQuant/Qwen3.6-27B-NVFP4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="HivenetQuant/Qwen3.6-27B-NVFP4") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("HivenetQuant/Qwen3.6-27B-NVFP4") model = AutoModelForMultimodalLM.from_pretrained("HivenetQuant/Qwen3.6-27B-NVFP4", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use HivenetQuant/Qwen3.6-27B-NVFP4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "HivenetQuant/Qwen3.6-27B-NVFP4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "HivenetQuant/Qwen3.6-27B-NVFP4", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/HivenetQuant/Qwen3.6-27B-NVFP4
- SGLang
How to use HivenetQuant/Qwen3.6-27B-NVFP4 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "HivenetQuant/Qwen3.6-27B-NVFP4" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "HivenetQuant/Qwen3.6-27B-NVFP4", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "HivenetQuant/Qwen3.6-27B-NVFP4" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "HivenetQuant/Qwen3.6-27B-NVFP4", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use HivenetQuant/Qwen3.6-27B-NVFP4 with Docker Model Runner:
docker model run hf.co/HivenetQuant/Qwen3.6-27B-NVFP4
HivenetQuant/Qwen3.6-27B-NVFP4
NVFP4 (nvfp4) W4A4 quantization of Qwen/Qwen3.6-27B — FP4 (E2M1) weights and activations with FP8 block scales. The MLP is the 4-bit tier; the attention and recurrent (DeltaNet) layers the search protects are kept at FP8. The per-layer split is chosen automatically by a weight-sensitivity search and applied with GPTQ.
The checkpoint targets NVIDIA Blackwell's native FP4 tensor cores (e.g. RTX 5090); the benchmark below compares it against the original FP16 weights across the evaluated tasks.
Preserved (kept in BF16, not quantized): the vision encoder (model.visual*) and the MTP speculative-decoding head (mtp.*), plus lm_head and norm/router layers. So multimodal understanding and MTP speculative decoding are fully retained — see the vision (MMMU-Pro / AI2D) and MTP accept-rate row(s) in the benchmark below.
Serving with vLLM
Runs on NVIDIA Blackwell (e.g. RTX 5090) with native NVFP4. This is the exact configuration the benchmarks below were validated on (FP8 KV cache, 128k context):
vllm serve HivenetQuant/Qwen3.6-27B-NVFP4 \
--tensor-parallel-size 2 \
--max-model-len 131072 \
--gpu-memory-utilization 0.90 \
--kv-cache-dtype fp8 \
--reasoning-parser qwen3 \
--enable-auto-tool-choice \
--tool-call-parser hermes
With MTP speculative decoding (the multi-token-prediction head is preserved) add one flag for faster decoding:
--speculative-config '{"method":"mtp","num_speculative_tokens":3}'
All numbers below were produced with this serve config — NVFP4 weights, FP8 KV cache, 128k context.
Quantization recipe
- Method: post-training quantization with llm-compressor → compressed-tensors. The per-layer NVFP4-vs-FP8 split is chosen automatically by a weight-sensitivity search (ModelOpt supernet probe + Kneedle elbow), then the NVFP4 weights are recovered with GPTQ block-wise reconstruction. The exact per-layer tiers are in
recipe_summary.json. - Precision (quantized tier): W4A4 — FP4 (E2M1) weights and activations with FP8 per-block scales, group size 16. 160 attention/recurrent layers are kept at FP8 (the protection tier); 207 modules stay BF16 (
lm_head/norms, the vision tower, the MTP head). - Protection axis: this is the FP8-protected release — the smaller, faster of the two (attention/recurrent at FP8).
- Baseline = FP16, not FP8. Every Δ in the benchmark below is measured against the original full-precision weights — a stricter reference than cards that quantize from, and compare against, an already-lossy FP8 checkpoint.
Scope of this evaluation
This card reports a paired FP16 ↔ NVFP4 comparison — identical prompts, harness and decoding run head-to-head on both precisions — across a diverse task set. The goal is to show that NVFP4 quantization introduces no meaningful degradation versus the original weights, not to re-establish the base model's absolute capability.
A paired delta is detectable at far smaller sample sizes than an absolute score, so we evaluate a representative sample per task (exact sizes and decoding settings are in REPRODUCIBILITY.md) rather than every full benchmark set — a statistically sound degradation check that avoids the considerable compute and energy of re-running suites the base model has already published.
For absolute capability and full-suite results, see the base model Qwen/Qwen3.6-27B and independent leaderboards: NVFP4 tracks FP16 within noise on every dimension tested here, so those numbers carry over.
Benchmark vs FP16
| Dataset | FP16 | NVFP4 | Δ |
|---|---|---|---|
mmlu_pro |
84.91 | 83.66 | -1.25 |
gpqa_diamond_cot_zeroshot |
85.66 | 84.24 | -1.41 |
aime25 |
90.67 | 90.67 | +0.00 |
ifeval (ifeval_safe) |
91.31 | 90.20 | -1.11 |
mmmu_pro_standard_cot |
73.53 | 73.07 | -0.47 |
ai2d_no_mask |
89.33 | 86.93 | -2.40 |
livecodebench (codegen v6) |
85.42 | 81.60 | -3.82 |
bfcl (tool-calling) |
83.19 | 81.41 | -1.79 |
niah |
100.00 | 99.50 | -0.50 |
mtp |
70.21 | 70.38 | +0.17 |
Speed
Measured with vLLM bench serve (synthetic random prompts, --ignore-eos) — vllm bench serve. Input lengths 1,024, 10,000 tokens, 512 output tokens, concurrency 1, 10, at TP4. Served with FP8 KV cache, max-model-len 131,072, gpu-mem 0.9, on NVIDIA GeForce RTX 5090, vllm/vllm-openai:v0.23.0. FP16 is measured identically at the same TP, so each ratio isolates the quantization effect.
| operating point | FP16 | this model (NVFP4) | speedup |
|---|---|---|---|
| decode · 1k ctx · 1 stream (tok/s) | 83 | 116 | 1.40× |
| prefill · 1k ctx (tok/s) | 5661 | 5843 | 1.03× |
| decode · 10k ctx · 1 stream (tok/s) | 67 | 95 | 1.42× |
| prefill · 10k ctx (tok/s) | 6266 | 8701 | 1.39× |
| throughput · 1k ctx · ×10 (tok/s) | 484 | 688 | 1.42× |
decode = single-stream (batch 1) output rate; prefill = prompt ingestion (input tokens ÷ time-to-first-token); throughput = aggregate output rate under concurrent load.
With MTP speculative decoding enabled (the --speculative-config flag above), single-stream decode is substantially faster still — the preserved MTP head accepts ~70% of drafted tokens (see the MTP row in the benchmark).
Reproducing these numbers — the serving config, pinned harness versions, and per-dataset sampling / seeds / decisions contract are in REPRODUCIBILITY.md (standard open-source tools, no proprietary harness).
About
Published by HivenetQuant, the Hugging Face account for Hivenet's model-optimization work. Hivenet is Antimatter's cloud and AI-inference platform. Antimatter brings together energy and power infrastructure through Antimatter US, modular data centers through Policloud, and cloud software and AI inference through Hivenet.
This checkpoint was quantized and benchmarked by Hivenet's AI Products team on Antimatter's Policloud infrastructure. We publish the precision plan, benchmark results, serving configuration, and reproducibility details so developers can examine the trade-offs and run the model on compatible NVIDIA Blackwell hardware. Our broader aim is to make high-performance inference easier to deploy on infrastructure that operators can choose and control.
- Downloads last month
- -
Model tree for HivenetQuant/Qwen3.6-27B-NVFP4
Base model
Qwen/Qwen3.6-27B