Repository navigation
Add Muse Glimmer mixed-precision text recipe - #192
YouNeedCryDear wants to merge 5 commits into
Conversation
Prepare the pinned NVIDIA Muse-Glimmer-30B-NVFP4 checkpoint on one GPU, preserving its NVFP4, calibrated FP8, and BF16 text projections. Retain canonical decoder composition, gated full/sliding attention, centered normalization, output softcapping, and complete paged continuations. Add shared TensorFP8 projection dispatch and caller-owned quantized staging, pin the compatible FlashInfer revision consistently, and fix fragmented literal control-marker text in the shared recipient parser. Keep native scheduling and existing graph operation contracts unchanged. Validation on SM120: 16 CUDA tests passed, including active compiled graph transitions, scored prefill, distinct FP8 calibration with shared scratch, exact snapshot/restore, and allocation stability. Six CPU/frontend, nine native parser, and one native request test passed. Broader Python checks: 72 passed, 13 skipped, and two sampling-expectation failures reproduced on the unchanged base. Lock and diff checks passed. The available GPU has 8 GB, so full 30B checkpoint export/serving and quality validation remain unrun. Its PCI ID is unsupported by existing package hardware validation; exported native replay, long contexts, and SM103/SM121 remain unqualified. Text only; no image/audio or speculative preparation. Design-Signed-Off-By: Codex (GPT-6); design-review=a38f Signed-off-by: Arthur <xuyangc@nvidia.com>
Use the pinned FlashInfer native CUTLASS FP8 GEMM on SM103, retaining checkpoint E4M3 values, activation calibration and the combined FP32 scale. Declare all tactics before materialization and bind caller-owned scratch for padding, the contiguous result and native workspace. Propagate arenas through existing shared projection users. Recognize the observed GB300 PCI ID for package naming and loading. Validation: full pinned Glimmer export captured 29 graphs and native Flare served the package on one leased GB300 at default capacities. Station FP8 and metadata tests: 13 passed; reduced bootstrap: 1 passed. SM120 FP8: 10 passed, 2 SM103-only skips; reduced bootstrap passed. Six configuration/ frontend/sampling and nine native platform/publication checks passed. Native API acceptance remains incomplete: 31 passed, 26 failed with the required 64-token budget (14 length stops and 12 incomplete-tool errors). Long context through 131008 input tokens, concurrency four, prefix reuse, streaming, scoring, cancellation and media rejection passed. Preserve the failing cases and document the gap. No latency or throughput claims; SM121 and other full-checkpoint projection users remain unqualified. Design-Signed-Off-By: Codex (GPT-6); design-review=a38f Signed-off-by: Arthur <xuyangc@nvidia.com>
|
Marked |
|
@YouNeedCryDear GitHub reports that this PR has merge conflicts with Conflicting files:
Please update the branch against |
Resolve hardware, package-export and dependency conflicts against main 972e28e. Retain both GB300 PCI IDs, upstream package compatibility and the locked FlashInfer 1f8ed8a3 dependency. Preserve the Glimmer template asset in the wheel. On one GB300 Station, the locked build, 12 FP8 CUDA checks, reduced-model capture, full-checkpoint export of 29 graphs and native loading pass. Native API acceptance remains 30 passed and 27 failed at the unchanged 64-token budget. The 26 fixed-case continuations preserve their first 64 tokens and complete correctly at 68–121 tokens; the timestamped concurrency failure remains unresolved. A previous package loads unchanged, with two smoke checks passing and concurrency reaching the output limit. Python/native replay matches five of six sequences. The cold tool-1 mismatch repeats after independent preparation; uncontrolled decode graph selection prevents attributing it to a runtime defect. Document these limits and keep all existing acceptance cases and bounds unchanged. Other FP8 consumers and full-checkpoint SM120/SM121 remain unqualified. No performance claims. Design-Signed-Off-By: Codex (GPT-6); design-review=4d3a Signed-off-by: Arthur <xuyangc@nvidia.com>
Share the Spark/Glimmer recipient-template test while preserving each checkpoint's options, cases and exact token/boundary assertions. Remove 135 duplicated test lines and shorten module summaries and preparation notes. Keep all 57 API cases, CUDA checks, numerical bounds and failure qualification unchanged. Validation: five configuration/metadata checks and the Glimmer native frontend pass; its fixture matches the original exactly. One cached-metadata check is skipped. Spark's gated assets remain unavailable (HTTP 401), so its preserved branch has source review only. Executable production behavior is unchanged; Glimmer serving acceptance remains 30 passed and 27 failed. Design-Signed-Off-By: Codex (GPT-6); design-review=4d3a Signed-off-by: Arthur <xuyangc@nvidia.com>
The Muse Glimmer recipe and its tests duplicated shared code: the recipient parser kept its own copy of the XTML control-marker helpers, every attention layer recomputed paged-attention metadata, and the tests branched on recipe identity and repeated Muse Spark harnesses. Recognition of GB300 PCI ID 0x31c2 moves to NVIDIA#221, which export on such systems requires. - The recipient (ATEM) parser imports the control-marker escape, unescape, and partial-match helpers from the XTML parser; its literal-boundary test feeds text one character at a time. - Glimmer attention layers share one PagedAttentionMetadata per decoder, as Gemma 4 and Nemotron-H do. Inactive rows now receive zero KV length and slot -1 for negative page entries; active rows are unchanged. - The decoder applies output softcapping through the recipe's SoftcappedProjection, which evaluates the same expression, and rotary embeddings through the Transformers Muse Glimmer apply_rotary_pos_emb, which matched the previous BF16 results bit for bit on CPU. - Scratch declarations list the head and attention metadata buffers; the projection staging tensors were already covered by the graph buffer chunks. - TensorFP8Weight.in_features and the quantized_staging default of PreparedProjectionGroup are removed; neither had users. - The Glimmer server test reuses NativeMuse and Muse Spark's concurrency and media-rejection tests and compares prompt tokens for template-determined requests. The Muse frontend test is parametrized by recipe, recipient request tests take per-recipe options, and checkpoint and snapshot-fork helpers are shared. - The preparation guide states the configuration and open limitations instead of a validation report. docs/TODO.txt tracks the failing server cases and drops an unrelated MoE entry. Validation on an 8 GB SM120 laptop GPU with locked FlashInfer 1f8ed8a3: tensor-FP8 projection, Glimmer attention and snapshot-fork, and Muse Spark snapshot-fork CUDA tests passed, as did Glimmer configuration and frontend template parity against the pinned checkpoint metadata, the ignored Glimmer request test, and the Helios library suite. The reduced Glimmer preparation test fails before capture with an Inductor static-autotuner binding error that also occurs on the unmodified branch, so the decoder-level metadata, softcapping, and scratch changes were not exercised through preparation. Failures that also occur on main: two sampling-default expectations and four Helios tests that need FLARE_TEST_TEMPLATE_DIR. Not run: SM103 tensor-FP8 tests, full-checkpoint export, and tests/server/test_muse_glimmer.py on a GB300. Design-Signed-Off-By: Claude Opus 5.5; design-review=4d3a Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Arthur <xuyangc@nvidia.com>
|
PR #229 also introduces the @YouNeedCryDear GitHub reports merge conflicts with
Please reconcile these files with main and rerun the checks affected by the resolution. |
|
Repository-split triage: this PR spans both repositories and remains open for its runtime changes.
The recipe portion needs a linked PR against the |
Summary
Add
muse-glimmer-30b-nvfp4for NVIDIA’s mixed-precision checkpoint on one DGX Station, preserving NVFP4/FP8/BF16 precision.Requires #221 for export on Stations that report PCI ID
0x31c2.Evidence
PagedAttentionMetadataper decoder (inactive rows now get zero KV length), softcapping and rotary embeddings use shared helpers, and the server test reuses the Muse Spark harness, so its case inputs differ from the run above. On an 8 GB SM120 GPU: tensor-FP8, Glimmer attention and snapshot-fork, Muse Spark snapshot-fork, Glimmer config and frontend parity, ignored Glimmer request and Helios library tests passed. The reduced preparation test fails before capture with an Inductor static-autotuner binding error that also occurs at e382782.tests/server/test_muse_glimmer.pyon a GB300.Merge Danger
Door: Two-way.
Blast Radius: Shared tensor-FP8 projection preparation and recipient (ATEM) parsing.
Draft: server acceptance remains incomplete. Other FP8 consumers and full-checkpoint SM120/SM121 remain unqualified; no performance claims.
🤖 Generated with Claude Code