NVFP4 (W4A4) conversion of
deepseek-ai/DeepSeek-V4-Flash-Vision-Exp
(MIT license), scoped to the routed experts only (all 11,008 expert
linears across 43 layers × 256 experts). Attention (MLA), router, shared
experts, MTP layers, embeddings, and the vision tower are preserved verbatim
in their original precision.
Not a fresh calibration quant: DeepSeek's canonical checkpoint already stores
routed experts in MXFP4. This repo is a lossless transcode of those
expert weights into the standard NVFP4 block-scale layout that vLLM's FP4
MoE kernels consume (modelopt format), produced with NVIDIA TensorRT Model
Optimizer tooling. Weight bytes verified byte-exact against NVIDIA's
official nvidia/DeepSeek-V4-Flash-NVFP4 recipe per expert; the only
borrowed values are per-layer input_scale priors from the same reference
(measured effect below lane noise). Transcode checks: zero lossy tensors.
vllm/vllm-openai:v0.28.0, 2×B200, TP=2)First vLLM boot of Vision-Exp. Greedy decoding, four-state classifier:
| arm | FP8 (HF lane, prior baseline) | FP8 (vLLM lane, control) | NVFP4 (this repo) |
|---|---|---|---|
| stock refusal32 | 1/32 | 1/32 | 2/32 |
| steered α=1.0 (fresh dir) | 27/32 | 19/32 | 18/32 |
| steered α=1.0 (keysdir) | 31/32 | 13/32 | 14/32 |
| benign32 | 32/32 | 32/32 | 32/32 |
| capability12 | — | 12/12 | 12/12 |
The steered-delivery delta against the older HF-lane baselines is a lane
effect (fp8 KV cache + kernel set), not quant damage: the FP8 control on
the identical vLLM stack lands at the same place as this NVFP4 (±1 item,
CIs overlap). Per-item agreement with FP8: stock 29/32; steered flips are
symmetric borderline noise. Zero garbled outputs anywhere. Serving scoreboard:
weightless BENCHMARK.md and the
README lane table.
vllm serve msuiche/DeepSeek-V4-Flash-Vision-Exp-NVFP4 \
--tensor-parallel-size 2 --kv-cache-dtype fp8 # B200 validated
flashinfer::trtllm_fp4_block_scale_moe kernel.modelopt_gb10_hybrid plugin, which
expects exactly this W4A4 layout (see
weightless recipes).moe_backend="marlin" (W4A16, drops activation scales) — untested.DeepseekV4ForCausalLM is text-only and
refuses vision.*/aligner.*/image_* plus the vision-routing biases.
strip_vision.py (included in this repo) produces a text-only variant that
boots on stock vLLM today; use the full artifact on a vision-capable
runtime.Compatible with the weightless GLP control vectors — see
msuiche/DeepSeek-V4-Flash-Vision-Exp-abliterated-cyber-GLP-29
(apply via the weightless vLLM hotfix). Quantisation does not degrade a
direction; verify your lane's delivery against the table above rather than
the older HF-lane numbers.
MIT (inherited from the base model). Copyright (c) 2023 DeepSeek.
model-00038-of-00042.safetensors 4.3 GBmodel-00010-of-00042.safetensors 4.3 GBmodel-00014-of-00042.safetensors 4.3 GBmodel-00015-of-00042.safetensors 4.3 GBmodel-00016-of-00042.safetensors 4.3 GBmodel-00020-of-00042.safetensors 4.3 GBmodel-00021-of-00042.safetensors 4.3 GBmodel-00025-of-00042.safetensors 4.3 GBmodel-00026-of-00042.safetensors 4.3 GBmodel-00030-of-00042.safetensors 4.3 GBmodel-00031-of-00042.safetensors 4.3 GBmodel-00032-of-00042.safetensors 4.3 GBmodel-00036-of-00042.safetensors 4.3 GBmodel-00019-of-00042.safetensors 4.3 GBmodel-00027-of-00042.safetensors 4.3 GBmodel-00035-of-00042.safetensors 4.3 GBmodel-00011-of-00042.safetensors 4.3 GBmodel-00024-of-00042.safetensors 4.3 GBmodel-00022-of-00042.safetensors 4.3 GBmodel-00013-of-00042.safetensors 4.3 GBmodel-00029-of-00042.safetensors 4.3 GBmodel-00033-of-00042.safetensors 4.3 GBmodel-00012-of-00042.safetensors 4.3 GBmodel-00018-of-00042.safetensors 4.3 GBmodel-00023-of-00042.safetensors 4.3 GBmodel-00034-of-00042.safetensors 4.3 GBmodel-00028-of-00042.safetensors 4.3 GBmodel-00017-of-00042.safetensors 4.3 GBmodel-00009-of-00042.safetensors 4.3 GBmodel-00004-of-00042.safetensors 4.3 GBmodel-00005-of-00042.safetensors 4.3 GBmodel-00003-of-00042.safetensors 4.3 GBmodel-00008-of-00042.safetensors 4.3 GBmodel-00006-of-00042.safetensors 4.3 GBmodel-00002-of-00042.safetensors 4.3 GBmodel-00007-of-00042.safetensors 4.3 GBmodel-00037-of-00042.safetensors 4.3 GBmodel-00001-of-00042.safetensors 4.3 GBmodel-00039-of-00042.safetensors 4.3 GBmodel-00040-of-00042.safetensors 4.3 GBmodel-00041-of-00042.safetensors 4.3 GBmodel-00042-of-00042.safetensors 208 MB有文件?提交种子。
提交种子