sleepyeldrazi commited on
Commit
f490ab9
·
verified ·
1 Parent(s): 6ebe1e1

Correct NVFP4 speed claims and document managed memory throughput cost

Browse files
Files changed (1) hide show
  1. README.md +8 -6
README.md CHANGED
@@ -60,11 +60,12 @@ profile (273 GB/s LPDDR5X, ~97 GB/s managed-memory serving path):
60
  ### Why this mix?
61
 
62
  The bottleneck in MoE decode is gate+up expert projection (~2/3 of expert bytes).
63
- The donor GGUF uses IQ2_XXS here — but IQ2_XXS is **dequant-compute-bound** at
64
- ~59 GB/s on GB10. NVFP4 reads more bytes (4.50 vs 2.06 bpw) but dequant is cheap
65
- (bandwidth-ish at ~140 GB/s), making it ~2.4× faster on the expert path. Down
66
- experts stay Q2_K (already saturating at ~160 GB/s). Attention and shared experts
67
- stay Q8_0 for quality.
 
68
 
69
  ### NVFP4: lossless MXFP4→NVFP4 conversion
70
 
@@ -107,7 +108,7 @@ make
107
  ### Inference (DGX Spark / NVIDIA GB10)
108
 
109
  ```bash
110
- # Managed memory required — K150 needs the single-residency path
111
  DS4_CUDA_MANAGED_MODEL=1 ./ds4 --cuda -m DeepSeek-V4-Flash-REAP-K150-hybrid.gguf --ctx 131072
112
 
113
  # With FP8-packed KV cache
@@ -132,6 +133,7 @@ DS4_CUDA_MANAGED_MODEL=1 ./ds4-server --cuda -m DeepSeek-V4-Flash-REAP-K150-hybr
132
  | 1M (FP32 KV) | ~121 GiB ⚠️ (borderline) |
133
 
134
  K150 needs managed memory (`DS4_CUDA_MANAGED_MODEL=1`) to avoid duplication.
 
135
  1M context requires FP8-packed KV (`DS4_KV_TURBO=1`).
136
 
137
  ## How It Was Built
 
60
  ### Why this mix?
61
 
62
  The bottleneck in MoE decode is gate+up expert projection (~2/3 of expert bytes).
63
+ Standard GGUF quants use IQ2_XXS here. NVFP4 reads more bytes (4.50 vs 2.06 bpw)
64
+ but offers substantially better precision at the same bit budget, with dequant
65
+ bandwidth at ~140 GB/s on GB10. In practice, NVFP4 decode is slightly slower than
66
+ IQ2_XXS due to the higher byte volume, but the precision gain is well worth the
67
+ small throughput cost. Down experts stay Q2_K (already saturating at ~160 GB/s).
68
+ Attention and shared experts stay Q8_0 for quality.
69
 
70
  ### NVFP4: lossless MXFP4→NVFP4 conversion
71
 
 
108
  ### Inference (DGX Spark / NVIDIA GB10)
109
 
110
  ```bash
111
+ # Managed memory required — saves ~10 GiB RAM, costs 1-3 t/s
112
  DS4_CUDA_MANAGED_MODEL=1 ./ds4 --cuda -m DeepSeek-V4-Flash-REAP-K150-hybrid.gguf --ctx 131072
113
 
114
  # With FP8-packed KV cache
 
133
  | 1M (FP32 KV) | ~121 GiB ⚠️ (borderline) |
134
 
135
  K150 needs managed memory (`DS4_CUDA_MANAGED_MODEL=1`) to avoid duplication.
136
+ This saves ~10 GiB of RAM at the cost of 1-3 t/s lower throughput.
137
  1M context requires FP8-packed KV (`DS4_KV_TURBO=1`).
138
 
139
  ## How It Was Built