[GH-ISSUE #2735] NVFP4 prompt modes on a 96 GB Blackwell card (every expert in VRAM): w4a4 reads fresh prompts 9-13% faster than w4a8 #1097

Closed
opened 2026-11-04 01:48:28 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @alphastorm on GitHub (Oct 16, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2735

Strata version, GPU, OS: 0.1.44.1 (296b59d2, release engine strata-windows-x64.zip, its CUDA 13.0 build) · RTX PRO 6000 Blackwell Workstation Edition 96 GB (sm_120, PCIe 5.0 x16), driver 616.92 · Windows 11 (26200) · i9-14900K, 192 GB DDR5-5200

docs/NVFP4.md keeps w4a8 the default "until a 96 GB+ RTX 50 PC measures the others". On this card the engine logs every expert is in the GPU cache (24576 of 24576) (63.29 GiB), so no prompt waits for RAM or the SSD.

Setup. --family nvfp4 --model NVFP4 (the GPTQ pack, Maximilian228/Qwen3.8-Flash-Next-NVFP4-GPTQ-Strata @ 640a1db9, every file at setup's pinned SHA-256) with setup's plan for this card: --max-context 262144 --kv int8 --kv-resident 32768 --expert-cache auto --spec 4 --spec-min-p 0.5 --pool-workers 15, --parallel 4, and the two settings setup recommends, --prefill auto:32768 --conversation-cache-mib 8192; text only. The w4a4 arm is the same config with "env": {"STRATA_PREFILL_NVFP4": "w4a4"} (its log has no W4A8 fallback note). Reference: IQ3_S (ISTA GSQ-RCO) with the same settings. Each arm started cold on an idle GPU, then python tools/strata_bench.py --long --clients 4 ran against it: 3 runs per test, medians with ranges, engine timings.

IQ3_S NVFP4, w4a8 (default) NVFP4, w4a4 w4a4 vs w4a8
4K prompt tok/s 5,272 (5,175-5,281) 4,957 (3,804-4,965) 5,603 (4,218-5,698) +13.0%
16K prompt tok/s 7,345 (7,259-7,365) 7,010 (5,951-7,024) 7,683 (6,480-7,735) +9.6%
32K prompt tok/s 7,622 (7,620-7,821) 7,289 (7,287-7,303) 7,974 (7,828-7,983) +9.4%
agent follow-up turn, first token (s) 0.72 0.76 0.64 -15.5%
short chat decode tok/s 219.4 207.6 196.5 -5.3%
agent turns decode tok/s 220.4 204.8 212.4 +3.7%
4 clients, total tok/s 167.6 157.9 155.8 -1.3%

The two decode rows move in opposite directions between the NVFP4 arms, which differ only in the prompt path, so I read them as run-to-run spread (MTP acceptance varies with the answer).

Longer prompts, from an earlier window on 2026-10-14 (the same three arms, each from a cold start, one request per depth through our own client, prompt tok/s as the server reports it):

prompt tokens 6.6K 26K 52K 89K 130K 179K 244K
w4a8 3,752 6,921 7,622 7,758 7,695 7,541 7,349
w4a4 4,072 7,492 8,308 8,487 8,404 8,239 8,008
w4a4 vs w4a8 +8.5% +8.3% +9.0% +9.4% +9.2% +9.3% +9.0%

A first-request cost on both NVFP4 arms. The first fresh 4K prompt and the first fresh 16K prompt read 15-25% slower than the next two of the same size (w4a8: 3,804 then 4,957 / 4,965 at 4K, 5,951 then 7,024 / 7,010 at 16K; w4a4: 4,218 then 5,698 / 5,603, and 6,480 then 7,683 / 7,735). IQ3_S's first runs were within 2% of its later ones, and the 32K test, which runs after both, had no slow first run on any arm.

Not covered. docs/NVFP4.md also describes w4a4x2 and STRATA_PREFILL_X2_MIN_K, but this engine accepts only w4a8, w4a4 or fp16 (moe_mmq.cu#L188-L196; main is at the same commit), so neither ran. Nothing here measures w4a4's answers (the doc's KL figures stand); fp16 and NVIDIA's own pack were not run; Windows only.

Originally created by @alphastorm on GitHub (Oct 16, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/2735 **Strata version, GPU, OS:** 0.1.44.1 (`296b59d2`, release engine `strata-windows-x64.zip`, its CUDA 13.0 build) · RTX PRO 6000 Blackwell Workstation Edition 96 GB (sm_120, PCIe 5.0 x16), driver 616.92 · Windows 11 (26200) · i9-14900K, 192 GB DDR5-5200 [docs/NVFP4.md](https://github.com/Niko1221/Strata/blob/296b59d2f73c8f04a805df29c2fa97655adace78/docs/NVFP4.md) keeps `w4a8` the default "until a 96 GB+ RTX 50 PC measures the others". On this card the engine logs `every expert is in the GPU cache (24576 of 24576)` (63.29 GiB), so no prompt waits for RAM or the SSD. **Setup.** `--family nvfp4 --model NVFP4` (the GPTQ pack, `Maximilian228/Qwen3.8-Flash-Next-NVFP4-GPTQ-Strata` @ `640a1db9`, every file at setup's pinned SHA-256) with setup's plan for this card: `--max-context 262144 --kv int8 --kv-resident 32768 --expert-cache auto --spec 4 --spec-min-p 0.5 --pool-workers 15`, `--parallel 4`, and the two settings setup recommends, `--prefill auto:32768 --conversation-cache-mib 8192`; text only. The `w4a4` arm is the same config with `"env": {"STRATA_PREFILL_NVFP4": "w4a4"}` (its log has no W4A8 fallback note). Reference: IQ3_S (ISTA GSQ-RCO) with the same settings. Each arm started cold on an idle GPU, then `python tools/strata_bench.py --long --clients 4` ran against it: 3 runs per test, medians with ranges, engine timings. | | IQ3_S | NVFP4, `w4a8` (default) | NVFP4, `w4a4` | w4a4 vs w4a8 | |---|---:|---:|---:|---:| | 4K prompt tok/s | 5,272 (5,175-5,281) | 4,957 (3,804-4,965) | 5,603 (4,218-5,698) | +13.0% | | 16K prompt tok/s | 7,345 (7,259-7,365) | 7,010 (5,951-7,024) | 7,683 (6,480-7,735) | +9.6% | | 32K prompt tok/s | 7,622 (7,620-7,821) | 7,289 (7,287-7,303) | 7,974 (7,828-7,983) | +9.4% | | agent follow-up turn, first token (s) | 0.72 | 0.76 | 0.64 | -15.5% | | short chat decode tok/s | 219.4 | 207.6 | 196.5 | -5.3% | | agent turns decode tok/s | 220.4 | 204.8 | 212.4 | +3.7% | | 4 clients, total tok/s | 167.6 | 157.9 | 155.8 | -1.3% | The two decode rows move in opposite directions between the NVFP4 arms, which differ only in the prompt path, so I read them as run-to-run spread (MTP acceptance varies with the answer). Longer prompts, from an earlier window on 2026-10-14 (the same three arms, each from a cold start, one request per depth through our own client, prompt tok/s as the server reports it): | prompt tokens | 6.6K | 26K | 52K | 89K | 130K | 179K | 244K | |---|---:|---:|---:|---:|---:|---:|---:| | `w4a8` | 3,752 | 6,921 | 7,622 | 7,758 | 7,695 | 7,541 | 7,349 | | `w4a4` | 4,072 | 7,492 | 8,308 | 8,487 | 8,404 | 8,239 | 8,008 | | w4a4 vs w4a8 | +8.5% | +8.3% | +9.0% | +9.4% | +9.2% | +9.3% | +9.0% | **A first-request cost on both NVFP4 arms.** The first fresh 4K prompt and the first fresh 16K prompt read 15-25% slower than the next two of the same size (`w4a8`: 3,804 then 4,957 / 4,965 at 4K, 5,951 then 7,024 / 7,010 at 16K; `w4a4`: 4,218 then 5,698 / 5,603, and 6,480 then 7,683 / 7,735). IQ3_S's first runs were within 2% of its later ones, and the 32K test, which runs after both, had no slow first run on any arm. **Not covered.** `docs/NVFP4.md` also describes `w4a4x2` and `STRATA_PREFILL_X2_MIN_K`, but this engine accepts only `w4a8`, `w4a4` or `fp16` ([moe_mmq.cu#L188-L196](https://github.com/Niko1221/Strata/blob/296b59d2f73c8f04a805df29c2fa97655adace78/src/prefill/moe_mmq.cu#L188-L196); `main` is at the same commit), so neither ran. Nothing here measures `w4a4`'s answers (the doc's KL figures stand); `fp16` and NVIDIA's own pack were not run; Windows only.
Author
Owner

@parn118-del commented on GitHub (Oct 17, 2026):

Here is the complementary data point your "Not covered" section asks for: a 32 GB card where most experts are not in the GPU cache.

Setup. RTX 5090 32 GB (sm_120) on PCIe 5.0 x8 — two cards share this board's slots, and the engine's own probe reads 28.9 GB/s host→device. Ryzen 9 9950X3D (16C/32T), 96 GB DDR5, Windows 11, engine 0.1.44.1 from strata-windows-x64.zip (strata.exe sha256 bd18453f65b4d03b…), the NVFP4 GPTQ pack with --max-context 262144 --kv int8 --resident-budget-gib 71 --expert-cache auto --spec 4 --spec-min-p 0.5 --vram-reserve-mib 1408 --adapt-async 1 and no --pcie-frac (the default 0.25 applies). Unlike your card, the cache takes 7,269 of the 24,576 profiled pairs (18.72 GiB of VRAM) and the other 44.56 GiB of experts sit in RAM, so every prompt chunk streams them across PCIe.

Result: w4a4 moves nothing here.

prompt w4a8 (2 runs) w4a4 (2 runs) delta (means)
4K 1,338.8 / 1,434.9 1,334.6 / 1,436.4 −0.1%
12K 2,238.9 / 2,291.6 2,247.0 / 2,285.5 0.0%
48K 3,356.3 / 3,354.2 3,357.2 / 3,337.6 −0.2%

The engine's own read_ms is nearly identical to the millisecond: 2,953 vs 2,962 ms at 4K (3,954 tokens), 5,269 vs 5,250 at 12K, 14,029 vs 14,026 at 48K. Quality checks 5/5 on both arms.

Why. Per 8,192-token chunk the prompt path copies the 44.56 GiB of experts the GPU cache does not hold — 47.85 GB — over a link the probe measures at 28.9 GB/s: 1.66 s per chunk, 0.202 ms/token. A three-point fit of the measured marginal cost gives 0.248 ms/token, so ~80% of the prompt's marginal cost is that PCIe copy, and the expert arithmetic w4a4 changes is the remainder. Under that, what w4a4 buys is not measurable.

So docs/NVFP4.md's "until a 96 GB+ RTX 50 PC measures the others" reads right in both directions: the gain shows up when the prompt path is compute-bound (your card, every expert in the GPU cache), and measures zero when it is copy-bound (this one). One caution on attributing the 5070 figure: the doc's +16% comes from mmq_expert_bench — the expert product alone — rather than an end-to-end prompt, which is the shape that would make your +9–13% and my 0% the same code behaving differently rather than contradicting each other.

Also confirmed in the same run: this engine accepts only w4a8, w4a4 or fp16; w4a4x2 and STRATA_PREFILL_X2_MIN_K are absent from src/ and from strata.exe alike, and moe_mmq.cu's white-list calls std::exit(1) on anything else — so the docs/NVFP4.md lines that name them cannot be run as written, matching your L188-L196 note.

<!-- gh-comment-id:6231341153 --> @parn118-del commented on GitHub (Oct 17, 2026): Here is the complementary data point your "Not covered" section asks for: a 32 GB card where **most experts are not in the GPU cache**. **Setup.** RTX 5090 32 GB (sm_120) on PCIe 5.0 **x8** — two cards share this board's slots, and the engine's own probe reads **28.9 GB/s** host→device. Ryzen 9 9950X3D (16C/32T), 96 GB DDR5, Windows 11, engine 0.1.44.1 from `strata-windows-x64.zip` (`strata.exe` sha256 `bd18453f65b4d03b…`), the NVFP4 GPTQ pack with `--max-context 262144 --kv int8 --resident-budget-gib 71 --expert-cache auto --spec 4 --spec-min-p 0.5 --vram-reserve-mib 1408 --adapt-async 1` and no `--pcie-frac` (the default 0.25 applies). Unlike your card, the cache takes **7,269 of the 24,576 profiled pairs** (18.72 GiB of VRAM) and the other **44.56 GiB of experts sit in RAM**, so every prompt chunk streams them across PCIe. **Result: `w4a4` moves nothing here.** | prompt | `w4a8` (2 runs) | `w4a4` (2 runs) | delta (means) | |---|---:|---:|---:| | 4K | 1,338.8 / 1,434.9 | 1,334.6 / 1,436.4 | −0.1% | | 12K | 2,238.9 / 2,291.6 | 2,247.0 / 2,285.5 | 0.0% | | 48K | 3,356.3 / 3,354.2 | 3,357.2 / 3,337.6 | −0.2% | The engine's own `read_ms` is nearly identical to the millisecond: 2,953 vs 2,962 ms at 4K (3,954 tokens), 5,269 vs 5,250 at 12K, 14,029 vs 14,026 at 48K. Quality checks 5/5 on both arms. **Why.** Per 8,192-token chunk the prompt path copies the 44.56 GiB of experts the GPU cache does not hold — 47.85 GB — over a link the probe measures at 28.9 GB/s: 1.66 s per chunk, 0.202 ms/token. A three-point fit of the measured marginal cost gives 0.248 ms/token, so **~80% of the prompt's marginal cost is that PCIe copy**, and the expert arithmetic `w4a4` changes is the remainder. Under that, what `w4a4` buys is not measurable. So `docs/NVFP4.md`'s "until a 96 GB+ RTX 50 PC measures the others" reads right in both directions: the gain shows up when the prompt path is **compute**-bound (your card, every expert in the GPU cache), and measures zero when it is **copy**-bound (this one). One caution on attributing the 5070 figure: the doc's +16% comes from `mmq_expert_bench` — the expert product alone — rather than an end-to-end prompt, which is the shape that would make your +9–13% and my 0% the same code behaving differently rather than contradicting each other. Also confirmed in the same run: this engine accepts only `w4a8`, `w4a4` or `fp16`; `w4a4x2` and `STRATA_PREFILL_X2_MIN_K` are absent from `src/` and from `strata.exe` alike, and `moe_mmq.cu`'s white-list calls `std::exit(1)` on anything else — so the `docs/NVFP4.md` lines that name them cannot be run as written, matching your L188-L196 note.
Author
Owner

@Niko1221 commented on GitHub (Oct 19, 2026):

Thanks for taking the time to report this.

We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.

To reopen it takes about two minutes:

  1. Re-test on 0.2.0-beta. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6271221030 --> @Niko1221 commented on GitHub (Oct 19, 2026): Thanks for taking the time to report this. We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected. To reopen it takes about two minutes: 1. Re-test on 0.2.0-beta. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#1097
No description provided.