Views
No views yet
| Parameter | Value |
|---|---|
| Method | NVIDIA ModelOpt PTQ (Post-Training Quantization) |
| MLP weights | NV-FP4 (2,1)-bit, block size 16, dynamic scale |
| KV Cache | FP8 static calibration, per-tensor |
| Visual encoder | Not quantized (kept in bf16) |
| LM head | Not quantized |
| Calibration dataset | nvidia/nemotron-post-training-dataset-v2 |
| Calibration samples | 2048 |
| Calibration seq length | 3072 tokens |
language_model.layers.*.mlp.* (gate/up/down projections) — NV-FP4self_attn.k/v_bmm_quantizer on standard attention layers — FP8 KV cachemodel.visual.* — visual encoder kept at bf16 (too sensitive to quantization)linear_attn (Mamba-style) layers — non-standard architecture, excluded automaticallylm_head, mtp.layers.0 — standard practice, excluded automatically| Component | Recommended |
|---|---|
| GPU VRAM (inference) | 6–8 GB (vs ~18 GB for bf16 original) |
| GPU architecture | NVIDIA Ada Lovelace / Hopper (RTX 40xx, RTX 50xx, H100) |
| CUDA | 12.1+ |
Note: NV-FP4 requires hardware support for FP4 tensor cores. RTX 4090, RTX 5070 Ti and newer Ada/Hopper GPUs are fully supported. Older architectures will fall back to FP8 or FP16 emulation.
Input: During a Toupet fundoplication, a 270-degree posterior wrap is performed...
Before: Correct answer E — full explanation preserved
After: Correct answer E — equivalent reasoning quality1# Build engine
2trtllm-build \
3 --checkpoint_dir ./Qwen3.5-9B-Claude-Opus-nvfp4 \
4 --output_dir ./engine \
5 --gemm_plugin nvfp4 \
6 --kv_cache_type fp8 \
7 --max_input_len 8192 \
8 --max_output_len 4096
9
10# Run inference
11python examples/run.py \
12 --engine_dir ./engine \
13 --max_output_len 2048 \
14 --input_text "Let me analyze this step by step:"1from vllm import LLM, SamplingParams
2
3llm = LLM(
4 model="YOUR_HF_USERNAME/Qwen3.5-9B-Claude-Opus-nvfp4-fp8kv",
5 quantization="modelopt",
6 dtype="auto",
7 gpu_memory_utilization=0.85,
8)
9
10sampling_params = SamplingParams(
11 temperature=0.6,
12 top_p=0.9,
13 max_tokens=4096,
14)
15
16outputs = llm.generate(
17 ["<|im_start|>user\nExplain quantum entanglement step by step.<|im_end|>\n<|im_start|>assistant\n"],
18 sampling_params,
19)
20print(outputs[0].outputs[0].text)1import sglang as sgl
2
3@sgl.function
4def reasoning_chain(s, question):
5 s += sgl.user(question)
6 s += sgl.assistant(
7 sgl.gen("answer", max_new_tokens=4096, temperature=0.6)
8 )
9
10runtime = sgl.Runtime(
11 model_path="YOUR_HF_USERNAME/Qwen3.5-9B-Claude-Opus-nvfp4-fp8kv",
12 quantization="modelopt-fp4",
13)
14sgl.set_default_backend(runtime)
15
16state = reasoning_chain.run(
17 question="Solve this step by step: what is the derivative of x^3 * sin(x)?"
18)
19print(state["answer"])<think> blocks:<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
{your question}<|im_end|>
<|im_start|>assistant
<think>
{internal step-by-step reasoning}
</think>
{final answer}<think> tags before producing a final response. This structured reasoning pattern is the core capability distilled from Claude 4.6 Opus.<think> sequencesnohurry/Opus-4.6-Reasoning-3000x-filtered + TeichAI/claude-4.5-opus-high-reasoning-250x