Skip to content

Add Muse Glimmer mixed-precision text recipe - #192

Draft
YouNeedCryDear wants to merge 5 commits into
NVIDIA:mainfrom
YouNeedCryDear:YouNeedCryDear/add-muse-glimmer-nvfp4
Draft

YouNeedCryDear wants to merge 5 commits into
NVIDIA:mainfrom
YouNeedCryDear:YouNeedCryDear/add-muse-glimmer-nvfp4

Conversation

@YouNeedCryDear

@YouNeedCryDear YouNeedCryDear commented Nov 4, 2026 •

Copy link
Copy Markdown

Summary

Add muse-glimmer-30b-nvfp4 for NVIDIA’s mixed-precision checkpoint on one DGX Station, preserving NVFP4/FP8/BF16 precision.

checkpoint → prepared CUDA graphs → signed package → native flare run

Requires #221 for export on Stations that report PCI ID 0x31c2.

Evidence

  • Station, at e382782 (before d8a9a05): FlashInfer’s SM100 CUTLASS FP8 GEMM passed 12 CUDA checks; reduced-model capture, 29-graph export and native loading passed. Native acceptance was 30 passed, 27 failed at 64 output tokens; Python/native replay matched five of six sequences.
  • d8a9a05: attention layers share one PagedAttentionMetadata per 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.
  • Not yet rerun: SM103 tensor-FP8 tests, full-checkpoint export and tests/server/test_muse_glimmer.py on 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

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>
@original-el8 original-el8 added area:preparation Ignition checkpoint loading, tuning, compilation, capture, and export. triage:validation Proposed implementation needs acceptance evidence; no claim that a reported defect is fixed. labels Nov 5, 2026
@original-el8

Copy link
Copy Markdown
Collaborator

Marked triage:validation, which means acceptance of the proposed implementation is incomplete. The PR reports 31 generation acceptance cases passing and 26 failing, so it remains a draft with unresolved serving acceptance. This label does not mean the feature is already fixed or ready to close. Identify the failing cases, separate recipe defects from harness/environment limitations, and rerun the affected native acceptance before requesting merge review.

@original-el8

Copy link
Copy Markdown
Collaborator

@YouNeedCryDear GitHub reports that this PR has merge conflicts with main. A local git merge-tree check also confirms conflicts for PR head 2665b8329af3 against main at c65024dba32b (2026-11-05).

Conflicting files:

  • flare/src/hardware.rs
  • heliopause/src/export/package.rs
  • helios/src/package/naming.rs
  • pyproject.toml
  • uv.lock

Please update the branch against main (rebase or merge), resolve these conflicts, and rerun the affected checks.

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>
@original-el8

Copy link
Copy Markdown
Collaborator

PR #229 also introduces the muse-glimmer-30b-nvfp4 alias, using a different checkpoint and adding image input, DFlash2 and an extended context. Please reconcile checkpoint selection and shared recipe/frontend ownership before either definition merges. This PR remains triage:validation: its updated description reports incomplete native acceptance and no GB300 rerun of the current head. Neither proposal is established as superseding the other.

@YouNeedCryDear GitHub reports merge conflicts with main; local git merge-tree confirms them for PR head d8a9a05bbb59 against main at 91cfb3695f10. Conflicting files:

  • docs/TODO.txt
  • ignition/recipes/__init__.py

Please reconcile these files with main and rerun the checks affected by the resolution.

@original-el8 original-el8 added the model:muse-glimmer Affected recipe or documented reproducer: muse-glimmer. Impact may be broader. label Nov 8, 2026
@original-el8

Copy link
Copy Markdown
Collaborator

Repository-split triage: this PR spans both repositories and remains open for its runtime changes.

  • hyperflare-recipes: the Muse Glimmer recipe and model components.
  • This runtime repository: the Helios recipient and xTML output parsing changes.

The recipe portion needs a linked PR against the hyperflare_recipes/ package, with its tests and validation evidence carried over. The runtime portion can remain here after removing recipe-owned files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:preparation Ignition checkpoint loading, tuning, compilation, capture, and export. model:muse-glimmer Affected recipe or documented reproducer: muse-glimmer. Impact may be broader. triage:validation Proposed implementation needs acceptance evidence; no claim that a reported defect is fixed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants