Repository navigation
RESULTS.md: add RTX 5090 long-context NIAH validation section - #96
Conversation
There was a problem hiding this comment.
1 issue found across 1 file
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="dflash/RESULTS.md">
<violation number="1" location="dflash/RESULTS.md:266">
P2: Headline throughput is inconsistent with the declared runtime config and appears to mix results from different sweeps without saying so.</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
There was a problem hiding this comment.
Pull request overview
This PR appends a new long-context NIAH validation section to dflash/RESULTS.md, adding RTX 5090 (Blackwell) measurements for the full PFlash compression + DFlash decode pipeline at ~117K tokens to complement the existing short-context speculative decoding results.
Changes:
- Add a new “RTX 5090 — long-context NIAH” section with headline metrics (accuracy, TTFT, throughput, compression).
- Include a small DDTree budget comparison at 117K and an
alphasweep discussion. - Document the tested build/runtime configuration and tuning notes (
kv_tq3,alpha).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Companion to the short-context RTX 5090 section (HumanEval / Math500 / GSM8K, added in #86). Different layer of validation: short-context tests pure speculative decoding at 50–250 token prompts (PFlash compression not engaged), long-context tests the full PFlash drafter scoring + ~20× compression + DFlash decode pipeline at 117K tokens. Validated config: keep_ratio=0.05, alpha=0.70, ddtree_budget=22, fa_window=4096, kv_tq3=0 (FP16 KV — 5090 has the VRAM headroom). 20/20 NIAH across 2 runs of n=10. Decode avg 210.7 t/s sustained over 117K context. Notable cross-reference: my long-context budget sweep converges on budget=22 as throughput-optimal, matching #86's short-context finding. This makes budget=22 a stable default across context regimes for Qwen3.6-27B on Blackwell, not a knob that needs per-regime tuning. Includes notes on kv_tq3 (skip on 32 GB at this context, keep on 24 GB) and alpha (the docs default of 0.85 fails 2/10 NIAH at this setup; 0.60–0.70 pass 10/10). Depends on #86. This PR is a pure append to dflash/RESULTS.md after the same anchor point #86 appends to, so the rebase once #86 lands is mechanical — my section just stacks below #86's section. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…ance
Six review-feedback fixes on the new RTX 5090 long-context section:
1-3. Throughput unit consistency: rename Decode t/s → Decode tok/s in all
three throughput tables (headline, budget sweep, alpha sweep) to
match the rest of dflash/RESULTS.md and the short-context section.
4. Runtime config interface ambiguity: replace shorthand names
(keep_ratio=, alpha=, ddtree_budget=, ...) with the actual
reproducible interfaces — bench_niah_cpp.py CLI flags added in #90
(--keep-ratio=, --alpha=, --ddtree-budget=, --fa-window=, --kv-tq3=,
--n-gen=) and daemon env vars (DFLASH_FP_USE_BSA=, optional
DFLASH27B_FA_WINDOW=). One concrete way to reproduce, not three
shorthand aliases.
5. niah_gen.py path: reference becomes a relative markdown link to
../pflash/tests/niah_gen.py.
6. P2 — sweep provenance and apparent headline-vs-table mismatch:
the headline 210.7 tok/s comes from Phase 4 (n=20 reliability run at
the V4 config: keep=0.05/alpha=0.70/budget=22), but the budget table
was at keep=0.08/budget=varying and the alpha table was at
keep=0.08/budget=28/alpha=varying. A reader who notices both
"budget=22 → 217.4" (sweep) and "budget=22 → 210.7" (headline)
would correctly conclude the section is mixing configs.
Fix: each sweep table now declares its held-fixed parameters in the
subsection title (Phase 1 / 2 / 3, with "held: ..."). Added the
missing keep-ratio sweep (Phase 3) so the reader can see why
keep=0.05 was chosen over the per-token-faster keep=0.08 (TTFT and
compression-ratio tradeoff). New paragraph between the headline and
the sweeps spells out the methodology so the cross-table comparison
is grounded.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
… Q8_0
Four review-feedback fixes on the new long-context section:
1+3. The runtime config and the alpha-sweep section both documented
`--alpha=0.70` as a CLI flag, but bench_niah_cpp.py on main does
not have a --alpha flag (that flag is in the still-open
bsa-cli-flag PR). Alpha is configured via the daemon env var
DFLASH_FP_ALPHA. Renamed all references:
- Runtime config bullet now reads
"DFLASH_FP_USE_BSA=1 and DFLASH_FP_ALPHA=0.70 ... (both are
daemon env vars)".
- Phase 1 section heading + table column header changed from
"--alpha" to "DFLASH_FP_ALPHA".
- "The docs default of --alpha=0.85" → "DFLASH_FP_ALPHA=0.85".
- Phase 2 + Phase 3 "held:" lists also corrected from
"--alpha=0.70" to "DFLASH_FP_ALPHA=0.70".
2. Runtime config preface said "the bracketed names are the exact
interfaces" but no brackets in the list. Reworded to "each bullet
leads with the exact interface" so prose matches presentation.
4. KV-cache type relabeled from FP16 → Q8_0. The reviewer correctly
notes that --kv-tq3=0 alone leaves the daemon at its Q8_0 KV
default (per dflash/src/kv_quant.h); FP16 would require setting
DFLASH27B_KV_K=f16 / DFLASH27B_KV_V=f16 explicitly, which the
recorded runtime config does not include. Conservative
interpretation: the actual benchmark used Q8_0 (the daemon
default). Updated:
- Runtime config bullet: "Q8_0 KV cache — the daemon default
when TQ3_0 is disabled and no other KV type is set".
- "Note on --kv-tq3" subsection: explains the Q8_0 default and
points users at DFLASH27B_KV_K/V for explicit overrides.
The "5090 has VRAM headroom; TQ3_0 not needed" rationale holds for
either Q8_0 or FP16, so the section's argument is unaffected.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
a5d1016 to
e650846
Compare
|
Cool results! Thanks for the contribution! @ppsx |
RESULTS.md: add RTX 5090 long-context NIAH validation section
RESULTS.md: add RTX 5090 long-context NIAH validation section
RESULTS.md: add RTX 5090 long-context NIAH validation section
Summary
Adds a new section
## RTX 5090 (Blackwell, sm_120/sm_120a, 32 GB) - long-context NIAHtodflash/RESULTS.md, complementing #86's short-context numbers with the long-context PFlash + DFlash pipeline validated at 117K tokens.Different layer of validation:
Headline
Notable cross-reference with #86
#86's short-context budget sweep identifies budget=22 as throughput-optimal (211.20 mean tok/s at AL 7.25, in #86's "RTX 5090 DDTree budget sweep" table). My long-context sweep at 117K NIAH also converges on budget=22:
So budget=22 is a stable default across context regimes for Qwen3.6-27B on Blackwell, not something that needs per-regime tuning. Worth calling out because long-ctx and short-ctx workloads stress different parts of the verify path; the convergence on the same budget is a useful signal.
Tuning notes included
kv_tq3=0(FP16 KV) - chosen because 5090 has 32 GB; only ~22 GB peak at 117K. Section flags that 24 GB cards (4090/3090) should keepkv_tq3=1.alphasweep at0.60 / 0.70 / 0.85- the docs default of0.85fails 2/10 NIAH at this setup;0.60and0.70pass 10/10. Section recommends per-setupalphavalidation rather than relying on the docs default.