Raon-1-mini-dflash2-nvfp4
Pilcothink quantized KRAFTON AI's five-layer DFlash2 draft model to NVFP4 W4A4 using NVIDIA Model Optimizer. This release includes a separate output head. Original DFlash2 checkpoint
Quantization
| Component | Format |
|---|---|
Target-feature projection (fc) |
NVFP4 W4A4 |
Attention projections (q_proj, k_proj, v_proj, o_proj) |
NVFP4 W4A4 |
MLP projections (gate_proj, up_proj, down_proj) |
NVFP4 W4A4 |
Draft output head (lm_head) |
NVFP4 W4A4 |
The checkpoint contains 36 quantized body projections and one quantized output head. The candidate selector, convolution and normalization tensors retain their original values.
Calibration ran in two passes. The first measured input ranges for the body projections. The second used the quantized body to measure inputs to the output head. The head weights come from the MXFP8 lm_head in KRAFTON's NVFP4 target checkpoint. Target checkpoint
Usage
Use this checkpoint as the DFlash2 draft alongside KRAFTON/Raon-1-mini-nvfp4 for speculative decoding. In Pilcothink's Raon vLLM 0.34.0 serving image, set speculative_config.method to dflash and speculative_config.model to the downloaded draft directory. Keep both Safetensors files and their index together.
DGX Spark
The Spark recipe includes the Docker image, model downloads, serving command and a verification request. Single DGX Spark serving recipe for vLLM 0.34
RTX 5090 PC
On a Linux PC with Docker and NVIDIA GPU support, replace /path/to/models with the absolute directory where you store checkpoints. Download both checkpoints and pull the PC image once.
hf download KRAFTON/Raon-1-mini-nvfp4 \
--local-dir /path/to/models/Raon-1-mini-nvfp4
hf download Pilcothink/Raon-1-mini-dflash2-nvfp4 \
--local-dir /path/to/models/Raon-1-mini-dflash2-nvfp4
docker pull pilcothink/vllm_pc:raon-1-mini
Start the server with the RTX 5090 settings used in the comparison below.
docker run --rm -it \
--gpus all \
--network host \
--ipc=host \
--hostname raon-pc \
--ulimit memlock=-1 \
--ulimit stack=67108864 \
--mount type=bind,src=/path/to/models/Raon-1-mini-nvfp4,dst=/models/target,readonly \
--mount type=bind,src=/path/to/models/Raon-1-mini-dflash2-nvfp4,dst=/models/draft,readonly \
-e CUTE_DSL_ARCH=sm_120a \
-e VLLM_WORKER_MULTIPROC_METHOD=spawn \
pilcothink/vllm_pc:raon-1-mini \
/models/target \
--served-model-name Raon-1-mini \
--host 0.0.0.0 \
--port 8000 \
--trust-remote-code \
--dtype bfloat16 \
--load-format safetensors \
--linear-backend b12x \
--moe-backend b12x \
--no-enable-flashinfer-autotune \
--attention-backend B12X_MLA \
--attention-config '{"flash_attn_version":2,"mla_prefill_backend":"FLASH_ATTN"}' \
--kv-cache-dtype fp8_e4m3 \
--gpu-memory-utilization 0.6 \
--kv-cache-memory-bytes 4000000000 \
--enable-prefix-caching \
--enable-chunked-prefill \
--async-scheduling \
--max-model-len 32768 \
--max-num-seqs 5 \
--max-num-batched-tokens 2048 \
--compilation-config '{"mode":0,"cudagraph_mode":"FULL_DECODE_ONLY"}' \
--speculative-config '{"method":"dflash","model":"/models/draft","num_speculative_tokens":4,"draft_sample_method":"probabilistic","rejection_sample_method":"block","attention_backend":"FLASH_ATTN","kv_cache_dtype":"auto","moe_backend":"auto"}' \
--reasoning-parser raon_1 \
--tool-call-parser raon_1 \
--enable-auto-tool-choice \
--default-chat-template-kwargs '{"enable_thinking":true,"truncate_history_thinking":false}'
License
Apache License 2.0. KRAFTON AI created the original Raon models. Pilcothink produced this community quantization. License
NVFP4 Flash benchmarks
Throughput change from the original DFlash2 setup (Marlin, 7 draft tokens) to NVFP4 Flash (B12X, 4 draft tokens). Both use the same Raon-1-mini NVFP4 target.
| Device | Workload | Decode | Prefill |
|---|---|---|---|
| DGX Spark | Single request | +34.25% | +14.47% |
| DGX Spark | 10 concurrent requests | +48.66% | β3.33% |
| DGX Spark | 50 concurrent requests | +89.50% | +17.43% |
| DGX Spark | Single request, 100K context depth | +91.55% | β5.71% |
| RTX 5090 | Single request | +19.54% | +5.64% |
| RTX 5090 | 5 concurrent requests | +100.85% | +404.39% |
The single-request summary uses the geometric mean of six matched tests on each device. The 100K test is reported separately. Concurrent results use total tokens per second across requests.
Measured throughput
Each pair shows original DFlash2 β NVFP4 Flash in mean tokens per second. All tests use a 2,048-token prompt. βDefaultβ indicates that the benchmark specified no additional context depth. For concurrent requests, both columns report total throughput.
DGX Spark
| Context depth | Output tokens | Concurrent requests | Decode (tok/s) | Prefill (tok/s) |
|---|---|---|---|---|
| Default | 128 | 1 | 49.77 β 72.89 | 4,862.06 β 5,958.28 |
| Default | 1,024 | 1 | 51.26 β 67.58 | 5,250.20 β 5,859.84 |
| 1,024 | 128 | 1 | 51.93 β 71.18 | 5,889.72 β 6,654.76 |
| 1,024 | 1,024 | 1 | 56.26 β 70.20 | 5,936.91 β 6,492.97 |
| 4,096 | 128 | 1 | 52.33 β 69.92 | 6,293.96 β 7,230.28 |
| 4,096 | 1,024 | 1 | 49.84 β 66.14 | 6,256.57 β 7,249.53 |
| 1,024 | 256 | 1 | 64.10 β 73.02 | 5,764.61 β 6,507.06 |
| 1,024 | 256 | 10 | 117.56 β 174.76 | 5,994.12 β 5,794.68 |
| 1,024 | 256 | 50 | 135.27 β 256.33 | 4,727.37 β 5,551.19 |
| 100,000 | 512 | 1 | 26.40 β 50.57 | 4,230.24 β 3,988.79 |
RTX 5090
| Context depth | Output tokens | Concurrent requests | Decode (tok/s) | Prefill (tok/s) |
|---|---|---|---|---|
| Default | 128 | 1 | 272.64 β 306.11 | 16,184.07 β 13,238.91 |
| Default | 1,024 | 1 | 262.90 β 299.38 | 16,594.00 β 13,005.27 |
| 1,024 | 128 | 1 | 258.70 β 325.27 | 19,368.17 β 19,105.80 |
| 1,024 | 1,024 | 1 | 236.20 β 286.81 | 14,980.92 β 18,928.36 |
| 4,096 | 128 | 1 | 240.63 β 303.20 | 17,745.69 β 26,566.48 |
| 4,096 | 1,024 | 1 | 246.31 β 292.14 | 22,876.78 β 26,577.91 |
| 1,024 | 256 | 1 | 260.81 β 319.10 | 19,524.78 β 19,738.68 |
| 1,024 | 256 | 5 | 361.82 β 726.72 | 5,301.79 β 26,741.96 |
Sources and Credits
- KRAFTON AI released the Raon-1-mini NVFP4 target model and the original DFlash2 draft.
- Pilcothink published the NVFP4 DFlash2 draft and PC serving guide and the DGX Spark serving guide.
- Quantization used NVIDIA Model Optimizer. The serving images use vLLM 0.34.0 and FlashInfer.
- The B12X kernels were developed by Local Inference Lab and its contributors. The serving images use B12X in FlashInfer and dense MLA kernels from Local Inference Labβs FlashInfer fork.
- Downloads last month
- 45