Skip to content

modelopt_local: keep native MXFP8 modules off the shard slab (#308 decode regression) - #314

Merged
AzeezIsh merged 1 commit into
mainfrom
fix/native-mxfp8-off-slab
Nov 2, 2026
Merged

AzeezIsh merged 1 commit into
mainfrom
fix/native-mxfp8-off-slab

Conversation

@AzeezIsh

@AzeezIsh AzeezIsh commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Summary

#308 lets the fast loader upload native MXFP8 modules through the shard path, so they end up at interior offsets of a shard slab. On Qwen3.8-Flash-Next (qwen4_exp, two DGX Sparks) that cost about 1% of decode, with identical logits. Details are on #308.

This keeps the native set deferred to materialize, which gives each module its own allocation:

Bisect that motivates it

Setup: main 9571227, 3 fresh boots per arm, interleaved; n=9 per decode cell and n=6 per concurrency cell. Receipts are in reiner's ~/code/night1027/out/bisab-308/.

change on top of main decode C1 / C2 / C4 boot KL vs main
natives deferred again (this change) +1.00 / +0.65 / +0.51% +0.91 / +1.46 / +1.35% 79 / 74 / 79 s vs 74 / 74 / 74 s 0
CSF streams deferred again +0.1 to 0.3% 0

Test plan

  • rustfmt clean. The test is renamed to deferred_modules_keep_native_modules_off_the_slab and asserts that the natives are deferred.
  • CI: clippy and workspace tests.
  • Pair gate on this head against main 8ad9c3c3d: 3-boot interleaved decode and concurrency A/B plus KL, running as job 01084-nmab.

Generated with Devin

#308 let the fast loader upload native MXFP8 modules through the shard path,
so they sat at interior offsets of a shard slab. On Qwen3.8-Flash-Next
(qwen4_exp, two DGX Sparks) that cost about 1% of decode. Bisected on the
pair, 3 fresh boots per arm, n=9: deferring the natives to `materialize`
again (its own allocation per module) recovered decode +0.5..1.0% and
C1/C2/C4 +0.9..1.5%, with identical logits (KL 0) and nearly all of the
boot win kept. Deferring the CSF streams again recovered nothing.

`deferred_modules` is `host_decode_modules` again; `materialize`'s
native-upload path is unchanged.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@AzeezIsh

AzeezIsh commented Nov 2, 2026

Copy link
Copy Markdown
Contributor Author

Pair gate on this head (230eb4fba) against main 8ad9c3c3d, both built fresh. Setup: 0.4.0's 8x32k spark config, 3 fresh boots per arm, interleaved. Receipts are in reiner's ~/code/night1027/out/nmab-230eb4fba/.

cell main this PR change n
decode code 92.53 [91.81–92.73] 93.37 [92.59–94.08] +0.91% 9 / 9
decode json 71.22 [71.05–71.53] 71.73 [71.45–71.90] +0.72% 9 / 9
decode prose 60.78 [60.71–61.15] 61.44 [60.93–61.95] +1.09% 9 / 9
C1 59.97 60.44 +0.78% 6 / 6
C2 91.64 92.14 +0.54% 6 / 6
C4 141.83 143.00 +0.83% 6 / 6
boot to ready 74 / 74 / 74 s 79 / 74 / 69 s

@AzeezIsh
AzeezIsh marked this pull request as ready for review November 2, 2026 01:01
@AzeezIsh
AzeezIsh merged commit 9b3473f into main Nov 2, 2026
25 of 26 checks passed
@maplepaladin73

Copy link
Copy Markdown
Contributor

Follow-up data point on the live profile (two DGX Sparks, TP2, Qwen3.8-Flash-Next-FP4-Local, the 8x262k SparkQwen config: prefix caching on, MTP depth 7, --disable-tool-grammar, 262K KV pool): one arm of main 9c451913 (this fix + the #308 loader) against the pre-#308 deploy image (main 5d8f87ac), full numbers on #308 above.

On this profile the decode recovery holds: decode code 56.9 / JSON 63.9 / prose 55.8 tok/s, with C1/C2/C4/C8 at 35.2/63.4/90.1/134.1 tok/s. No decode deficit is visible against the pre-#308 base — consistent with the bisect conclusion that keeping the native MXFP8 modules off the shard slab recovers the cost, on a different (spark, high-lane) profile than the 8x32k Strict arm in the test plan. Single arm; caveats as on #308.

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.

2 participants