Skip to content

RESULTS.md: add RTX 5090 long-context NIAH validation section - #96

Merged
davide221 merged 3 commits into
Luce-Org:mainfrom
ppsx:results-long-ctx-niah-blackwell
May 7, 2026
Merged

davide221 merged 3 commits into
Luce-Org:mainfrom
ppsx:results-long-ctx-niah-blackwell

Conversation

@ppsx

@ppsx ppsx commented May 4, 2026

Copy link
Copy Markdown
Contributor

Status: Draft - 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 stacks below #86's). Filed as Draft so review can run in parallel; I'll de-draft and rebase once #86 merges. Numbers and headings here already match #86's short-context environment ((Blackwell, sm_120/sm_120a, 32 GB), build flags, ddtree_budget=22).

Summary

Adds a new section ## RTX 5090 (Blackwell, sm_120/sm_120a, 32 GB) - long-context NIAH to dflash/RESULTS.md, complementing #86's short-context numbers with the long-context PFlash + DFlash pipeline validated at 117K tokens.

Different layer of validation:

Headline

Metric Value
NIAH accuracy 20/20 across 2 runs of n=10
Decode throughput 210.7 t/s avg (range 179–230)
TTFT 10.0 s
Compression 20.2× (117064 -> 5800 tokens)
Prefill (compressed) 3.9 s for ~5800 tokens
Drafter score+migrate ~5.8 s

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:

Budget Long-ctx NIAH @ 117K Decode t/s
22 10/10 217.4
28 10/10 210.7
30 10/10 211.1

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 keep kv_tq3=1.
  • alpha sweep at 0.60 / 0.70 / 0.85 - the docs default of 0.85 fails 2/10 NIAH at this setup; 0.60 and 0.70 pass 10/10. Section recommends per-setup alpha validation rather than relying on the docs default.

Copilot AI review requested due to automatic review settings May 4, 2026 16:09

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread dflash/RESULTS.md Resolved

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 alpha sweep 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.

Comment thread dflash/RESULTS.md Resolved
Comment thread dflash/RESULTS.md Resolved
Comment thread dflash/RESULTS.md Resolved
Comment thread dflash/RESULTS.md Resolved
Comment thread dflash/RESULTS.md Resolved
@ppsx
ppsx requested a review from Copilot May 4, 2026 16:29
@ppsx
ppsx marked this pull request as draft May 4, 2026 16:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread dflash/RESULTS.md Resolved
Comment thread dflash/RESULTS.md Resolved
Comment thread dflash/RESULTS.md Resolved
Comment thread dflash/RESULTS.md Resolved
ppsx and others added 3 commits May 6, 2026 17:41
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]>
@ppsx
ppsx force-pushed the results-long-ctx-niah-blackwell branch from a5d1016 to e650846 Compare May 6, 2026 17:42
@ppsx
ppsx marked this pull request as ready for review May 6, 2026 17:43

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

@davide221

Copy link
Copy Markdown
Contributor

Cool results! Thanks for the contribution! @ppsx

@davide221
davide221 merged commit fe6784a into Luce-Org:main May 7, 2026
1 check passed
smpurkis pushed a commit to smpurkis/lucebox-hub that referenced this pull request May 10, 2026
RESULTS.md: add RTX 5090 long-context NIAH validation section
oliveagle pushed a commit to oliveagle/lucebox-hub that referenced this pull request May 22, 2026
RESULTS.md: add RTX 5090 long-context NIAH validation section
oliveagle pushed a commit to oliveagle/lucebox-hub that referenced this pull request May 22, 2026
RESULTS.md: add RTX 5090 long-context NIAH validation section
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants