Skip to content

Add an NVFP4 GGUF solo Muse Glimmer CUDA e2e job - #25437

Open
Gasoonjia wants to merge 1 commit into
gh/Gasoonjia/143/headfrom
gasoonjia/nvfp4-muse-ci
Open

Gasoonjia wants to merge 1 commit into
gh/Gasoonjia/143/headfrom
gasoonjia/nvfp4-muse-ci

Conversation

@Gasoonjia

@Gasoonjia Gasoonjia commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

test-muse-glimmer-cuda-e2e gains an nvfp4/solo-text entry next to the k-quant ones. It exports and runs gabrielcosi/Muse-Glimmer-30B-NVFP4-GGUF (Muse-Glimmer-30B-NVFP4-Q8_0.gguf, pinned to revision ba4a88a3: NVFP4 weights with .scale companions, Q8_0 token embedding and lm_head) with --kv-cache-dtype nvfp4 --nvfp4-attn-act mxfp8. The k-quant solo-text entry stays, so the default BF16-KV solo path keeps its coverage.

On the A100 runner (no native FP4) the attention projections run prefill with BF16 activations and decode with the faster of the W4A16 and INT8-activation W4A8 GEMVs; MXFP8 activations need SM120. The tokenizer still comes from meta-models/Muse-Glimmer-30B.

export_model_artifact.sh accepts the nvfp4 quantization for Muse Glimmer solo-text only; its usage text, and test_model_e2e.sh's, name the repo it downloads from. The CUDA workflow, this job, unittest-cuda (which runs the NVFP4 packer tests), unittest-cuda-quantized-gemm (whose INT4 suites import the export quantizers), unittest-cuda-muse-glimmer-batching (which runs the NVFP4 MLP swap test on a GGUF) and the new unittest-cuda-nvfp4-exhaustive now also trigger on extension/llm/export/**, which holds the GGUF/NVFP4 loading code they exercise.

The pure NVFP4 KV-cache kernel test (test_nvfp4_kv_bitexact.py) moves from the system shard to the kernel shard (KERNEL_TESTS). unittest-cuda-muse-glimmer-batching also runs test_nvfp4_mlp.py and all of test_cuda_pipeline.py (tiny-model inference, chunked prefill, DFlash target prefill, export, INT4 and the NVFP4 KV cache), which pytest.ini keeps out of the CPU session and no other job ran, plus test_nvfp4_gguf_loader.py, which the CPU unit tests already run, on a GPU.

A new unittest-cuda-nvfp4-exhaustive job (two A10G shards) runs the NVFP4 test files whose sweeps are trimmed by default with EXECUTORCH_CUDA_EXHAUSTIVE_TESTS=1 (the switch test_conv_implicit_gemm.py already uses): the full split-K, tile, autotune-config and case sweeps, with the W4A4 cases still skipped on GPUs without native FP4. These files include test_nvfp4_kv_cache.py. The unittest-cuda system shard no longer runs them (their default cases are a subset of the exhaustive ones), which keeps it well under its 2-hour limit.

Authored with Claude Code.

@pytorch-bot

pytorch-bot Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/25437

Note: Links to docs will display an error until the docs builds have been completed.

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

❌ 3 New Failures, 1 Cancelled Job

As of commit f792567 with merge base ec5937f (image):

NEW FAILURES - The following jobs have failed:

CANCELLED JOB - The following job was cancelled. Please retry:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@Gasoonjia

Copy link
Copy Markdown
Contributor Author

@claude /pr-review

@claude

claude Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Claude finished @Gasoonjia's task in 11m 34s —— View job


Request Changes: replacing the solo-text entry removes the only CI coverage of the k-quant solo export, the NVFP4 checkpoint is downloaded without a pinned revision from a personal Hugging Face repo, and the A100 fallback comment describes the wrong behavior.

Detailed review

PR Review: #25437

Summary

The PR switches the solo-text entry of test-muse-glimmer-cuda-e2e from the kquant-dynamic GGUF to gabrielcosi/Muse-Glimmer-30B-NVFP4-GGUF, exported with --kv-cache-dtype nvfp4 --nvfp4-attn-act mxfp8. I found four problems:

  • the k-quant solo path loses CI coverage;
  • the checkpoint is unpinned and comes from a personal account;
  • the comment and the description get the A100 fallback wrong;
  • the path filters miss the NVFP4 loader code.

Code Quality

  • The A100 fallback comment and the PR description are wrong (.ci/scripts/export_model_artifact.sh:699-700)
    • Gate: the fallback depends on native FP4 conversion, not FP8 MMA. _bf16_act_linear (backends/cuda/quantize_op_dispatch/nvfp4_dispatch.py:353) checks _has_native_fp4_conversion(), which needs compute capability ≥ 12 (backends/cuda/triton/kernels/nvfp4_quantized_gemm.py:248). H100 and B200 fall back as well.
    • Prefill on A100: uses _dequant_linear (W4A16). That is the same code --nvfp4-attn-act bf16 runs (nvfp4_dispatch.py:395-402).
    • Decode (M ≤ 4) on A100: uses nvfp4_auto_decode_soft, which times an INT8-activation W4A8 GEMV against W4A16 (nvfp4_dispatch.py:379). Decode activations can be INT8, not only BF16.
    • Result: this job never compiles the MXFP8 kernel (nvfp4_w4a8) or the MXFP8 emulation. To cover MXFP8 numerics on A100, export with ET_CUDA_NVFP4_MXFP8_EMULATE=1 (prefill only). Otherwise, reword the comment and the description to match what actually runs. Fix this →

Infrastructure

  • The checkpoint comes from a personal account and isn't pinned (.ci/scripts/export_model_artifact.sh:701, :710)
    • hf_hub_download('gabrielcosi/Muse-Glimmer-30B-NVFP4-GGUF', ...) passes no revision=. If the owner re-uploads, deletes or gates the file, this PR-gating job tests something different or breaks, with no change in the repo. The existing meta-models downloads are unpinned too, but the org controls those.
    • The repo swap happens inside the quant case, where it is easy to miss. cuda.yml:1336 still passes meta-models/Muse-Glimmer-30B-GGUF, and test_model_e2e.sh:145 logs that as the model under test.
    • Fix: mirror the file under meta-models/, next to the k-quant GGUFs. At minimum, pin revision='<commit sha>'; the script already pins the Vulkan checkpoints this way (REVISION at lines 187, 200 and 214). Fix this →
  • The path filters miss the NVFP4 loader code this job now tests end to end (.github/workflows/cuda.yml:24, :1270-1285)
    • The NVFP4 GGUF import goes through extension/llm/export/nvfp4.py and the NVFP4 branch of extension/llm/export/gguf.py (examples/models/muse-glimmer/loaders/checkpoint_loader.py:398-431).
    • Neither pull_request.paths nor the job if: lists extension/llm/export, so a PR that only touches those files skips this job.
    • The gap already existed for gguf.py on the k-quant path; this PR makes it matter more. Add the path to both filters. Fix this →

Testing

  • The k-quant solo export loses its only CI coverage (.github/workflows/cuda.yml:1296-1297)
    • After this change, no CI job runs either of these:
      • export_solo._export_cuda (examples/models/muse-glimmer/export/export_solo.py:178) on a k-quant GGUF with the default BF16 in-graph KV cache. The new entry always installs the NVFP4 KV cache (export_solo.py:798-803).
      • solo_runner on a k-quant .pte.
    • The PR says "the DFlash jobs keep the k-quant checkpoints", but those jobs don't cover this path. They use export_dflash.py, which takes only export_cuda_batching and a few helpers from export_solo and never _export_cuda, and they run the DFlash runners. The path they skip is the default flow shown in the script's own usage example (test_model_e2e.sh:70).
    • Fix: add nvfp4/solo-text as a fourth matrix entry instead of replacing the existing one. If A100 capacity is why you swapped them, say so in the PR and move one of the two to a less frequent trigger. Fix this →

Recommendation

Request Changes. To approve, I'd need three changes:

  • Restore the k-quant solo-text entry, or explain in the PR why it's fine to drop it.
  • Pin or mirror the NVFP4 checkpoint.
  • Correct the fallback comment.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 22, 2026
@Gasoonjia
Gasoonjia force-pushed the gasoonjia/nvfp4-muse-ci branch from af51f62 to 7ca5d01 Compare November 22, 2026 04:28
@Gasoonjia Gasoonjia changed the title Run the solo Muse Glimmer CUDA e2e job on the NVFP4 GGUF checkpoint Add an NVFP4 GGUF solo Muse Glimmer CUDA e2e job Nov 22, 2026
@Gasoonjia

Copy link
Copy Markdown
Contributor Author

Thanks, addressed:

  • The k-quant solo-text entry is back; NVFP4 is a fourth matrix entry.
  • The NVFP4 checkpoint download is pinned to revision ba4a88a32e448e340651689ae49a7ebc233631b1 (mirroring it under meta-models needs the org owners; happy to switch the repo once it's mirrored).
  • The comment and description now say what runs on A100: no native FP4, so prefill uses BF16 activations and decode the faster of the W4A16 and INT8-activation W4A8 GEMVs; MXFP8 needs SM120.
  • extension/llm/export/** added to both the workflow pull_request.paths and the job if:.

@Gasoonjia

Copy link
Copy Markdown
Contributor Author

@claude /pr-review

@claude

claude Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Claude finished @Gasoonjia's task in 17m 37s —— View job


Approve: last round's fixes hold up, but please narrow the new extension/llm/export trigger before merging (I suggested too broad a path last round); three smaller fixes are optional.

Detailed review

PR Review: #25437

Summary

The PR adds an nvfp4/solo-text entry to test-muse-glimmer-cuda-e2e. It exports the pinned gabrielcosi/Muse-Glimmer-30B-NVFP4-GGUF checkpoint with an NVFP4 KV cache and --nvfp4-attn-act mxfp8. The three changes from last round are in, and the new A100 comment matches _bf16_act_linear. Four problems remain:

  • the new path trigger is too broad;
  • nothing enforces the gguf version the NVFP4 file needs;
  • nothing checks that the NVFP4 path ran;
  • nothing marks the personal-repo download as temporary.

Infrastructure

  • The extension/llm/export trigger is broader than what the job imports, and the cheap tests of the same code still skip (.github/workflows/cuda.yml:29, :1286)
    • What the job imports: I suggested the whole directory last round, which was too broad. Muse Glimmer imports only gguf, int4, load, model_metadata, mx, nvfp4 and quant/ from it. extension/llm/export/__init__.py:21-28 imports builder.py lazily.

    • Too broad: these changes now start all four 30B A100 jobs (240-minute timeout each):

      • a PR that only touches the llama export_llm stack (builder.py, export_llm.py, quantizer_lib.py, partitioner_lib.py, config/);
      • a PR that only touches its tests or README.md.

      No other job's if: includes this path, so those four runs are all the trigger adds. They also bring this job's failures to unrelated PRs, for example an outage of the personal Hugging Face repo.

    • Cheap tests still skip: these jobs run tests that import these modules, but both skip on such a change. A loader bug first shows up in a 30B export.

      • unittest-cuda (:501-516) runs backends/cuda/tests/test_nvfp4_tensor.py, test_nvfp4_packers.py and test_nvfp4_fusion.py.
      • unittest-cuda-muse-glimmer-batching (:662-676) runs test_checkpoint_context.py.
    • Fix: list the modules, the way this workflow already lists single exir/passes/*.py files:

      • extension/llm/export/__init__.py, gguf.py, int4.py, load.py, model_metadata.py, mx.py, nvfp4.py
      • extension/llm/export/quant/**

      Use the same list in pull_request.paths and in this job's if:. Consider adding it to the two unit-test jobs' if: as well. Fix this →

  • Nothing enforces gguf >= 0.19, which the NVFP4 file needs (.ci/scripts/export_model_artifact.sh:686; low confidence)
    • iter_gguf (extension/llm/export/gguf.py:720-722) and _atomic_sd_from_gguf (examples/models/muse-glimmer/loaders/checkpoint_loader.py:403-406) both open the file with gguf.GGUFReader. The reader maps each tensor type to GGMLQuantizationType, so NVFP4 (type 40) parses only on gguf 0.19 or newer (extension/llm/export/test/test_gguf_nvfp4.py:31-35).
    • CI installs gguf unpinned: from requirements-dev.txt:23 (via install_requirements.py:127) and again at :686. That will most likely resolve to a new enough release, but nothing enforces it.
    • If the pypi-cache serves an older release, only the nvfp4 entry fails, with an enum ValueError raised inside the reader.
    • Fix: pip install safetensors huggingface_hub "gguf>=0.19". Fix this →
  • Nothing marks the personal-repo download as temporary (.ci/scripts/export_model_artifact.sh:704)
    • The pin fixes the content, not its availability. If gabrielcosi/Muse-Glimmer-30B-NVFP4-GGUF is deleted or gated, the nvfp4 entry fails on every PR that runs this job.
    • Switching once the meta-models mirror exists is fine. Add a one-line TODO with the mirror request next to GGUF_REPO so the switch isn't forgotten. Fix this →

Testing

  • Nothing checks that the NVFP4 path ran (.ci/scripts/export_model_artifact.sh:707)
    • mark_attention_act returns how many attention projections hold a CudaNVFP4Tensor weight (examples/models/muse-glimmer/source_transformations/nvfp4_attn_act.py:36-55), but export_solo.py:159 discards that count.
    • The job's only assertion is a case-insensitive grep for "Paris" in the runner output (test_model_e2e.sh:322, :569-575).
    • So the export marks 0 linears and the job still passes in either of these cases:
      • the attention weights stop loading as CudaNVFP4Tensor;
      • a projection is renamed so it no longer matches ATTN_PROJECTIONS.
    • Fix: raise in export_solo.py when mark_attention_act returns 0. That also stops --nvfp4-attn-act from silently doing nothing on a checkpoint without NVFP4 attention weights. Fix this →

Recommendation

Approve. None of these is known to break the job. Please still narrow the extension/llm/export trigger before merging, or every llama-export PR will start four 30B A100 runs. The other three can land here or in a follow-up.

@Gasoonjia

Copy link
Copy Markdown
Contributor Author

@claude /pr-review

@Gasoonjia

Copy link
Copy Markdown
Contributor Author

@claude /pr-review

@claude

claude Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Claude finished @Gasoonjia's task in 11m 41s —— View job


Approve: the three reviewers found no new problems in the diff, but the PR description on GitHub is still the old text, so please paste the e23ef5d commit message into it.

Detailed review

PR Review: #25437

Summary

The PR adds an nvfp4/solo-text entry to test-muse-glimmer-cuda-e2e. It also makes the workflow and four of its jobs trigger on extension/llm/export, and adds the Muse Glimmer NVFP4 tests and all of test_cuda_pipeline.py to the batching job. The one problem left is outside the code: the PR description on GitHub is still the old text.

I haven't repeated points you settled in earlier rounds: how broad the extension/llm/export trigger is, the personal Hugging Face repo, MXFP8 coverage on the A100, and the gguf pin in #25420.

Code Quality

  • The PR description on GitHub is still the old text
    • Your last reply says the description now lists the batching-job trigger, the pipeline tests and the usage-text change. The e23ef5d commit message does, but the PR body this run fetched from GitHub doesn't.
    • The body still says test_nvfp4_kv_cache.py and test_nvfp4_kv_bitexact.py are both in KERNEL_TESTS. Only test_nvfp4_kv_bitexact.py is (.github/workflows/cuda.yml:547).
    • It says only the workflow, the e2e job and unittest-cuda trigger on extension/llm/export. It leaves out:
      • unittest-cuda-muse-glimmer-batching (:669)
      • unittest-cuda-quantized-gemm (:748)
      • test_cuda_pipeline.py (:726)
      • the usage-text change
    • GitHub doesn't copy an amended commit message into the PR body. Fix: paste the e23ef5d commit message into the description on the PR page.

Recommendation

Approve. Nothing in the diff blocks merging. Fixing the description doesn't touch code.

@Gasoonjia

Copy link
Copy Markdown
Contributor Author

Adds unittest-cuda-nvfp4-exhaustive (two A10G shards, 120 min) running the trimmed NVFP4 test files with ET_CUDA_NVFP4_EXHAUSTIVE_TESTS=1, so the full sweeps keep running while the system shard stays under its limit.

Authored with Claude Code.

@Gasoonjia

Copy link
Copy Markdown
Contributor Author

@claude /pr-review

@claude

claude Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Claude finished @Gasoonjia's task in 15m 49s —— View job


Approve: please add test_nvfp4_export.py to the new unittest-cuda-nvfp4-exhaustive job, because its two sweep-only cases currently run in no CI job; the other three notes are smaller (a duplicate system-shard pass, the description, and a second env-var name).

Detailed review

PR Review: #25437

Summary

The PR does three things:

  • adds an nvfp4/solo-text entry to test-muse-glimmer-cuda-e2e;
  • extends the triggers and test lists of four CUDA jobs;
  • adds unittest-cuda-nvfp4-exhaustive, which reruns the NVFP4 test files with ET_CUDA_NVFP4_EXHAUSTIVE_TESTS=1.

Four problems remain, all in the new job or its description:

  • The new job leaves out test_nvfp4_export.py, so its two sweep-only cases run nowhere.
  • The unittest-cuda system shard still runs the eight files the new job runs.
  • The PR description doesn't mention the new job, and the commit message overstates what the job runs on the A10G.
  • The NVFP4 sweeps add a second exhaustive-mode variable alongside the conv test's existing one.

I haven't repeated points settled in earlier rounds: how broad the extension/llm/export trigger is, the personal Hugging Face repo, MXFP8 coverage on the A100, the gguf pin in #25420, and keeping test_adapter_serialized_dynamic_m SM120-only.

Code Quality

  • The PR description doesn't mention unittest-cuda-nvfp4-exhaustive, and the commit message overstates what the job runs
    • The PR description on GitHub lacks the commit message's last paragraph, the one that introduces the job.
    • Both texts list the jobs that "now also trigger on extension/llm/export/**" but leave out the new job, which also triggers on that path (.github/workflows/cuda.yml:793).
    • "every split, tile, autotune config and case" doesn't hold on the A10G. Without native FP4, the W4A4 cases of the split-K sweeps still skip (backends/cuda/tests/test_nvfp4_kernels.py:312-316, test_nvfp4_split_k_export.py:57-67).
    • Fix: in the commit message, add the job to the trigger list and say that the native-FP4 cases still skip on the A10G. Then paste the message into the PR description.
  • The directory now has two names for the exhaustive-test switch (.github/workflows/cuda.yml:829; the variable comes from the parent PR, d919f9c)
    • test_conv_implicit_gemm.py:32 already reads EXECUTORCH_CUDA_EXHAUSTIVE_TESTS, and its Buck target sets it (backends/cuda/tests/targets.bzl:166-168). nvfp4_test_utils.py:14 reads ET_CUDA_NVFP4_EXHAUSTIVE_TESTS instead.
    • No OSS workflow sets the conv variable, so the full conv sweep runs in no OSS job.
    • Fix (optional, in the parent PR): have nvfp4_test_utils.py read the existing name, and set that name here. Fix this →

Infrastructure

  • The new job leaves out test_nvfp4_export.py, so two of its cases run in no CI job (.github/workflows/cuda.yml:800-811)
    • test_packed_linear_pte gets two cases only from sweep(..., []): ("w4a16", 37, 64, False) and ("w4a8", 8, None, False) (backends/cuda/tests/test_nvfp4_export.py:66, :76). According to the comment at :65, the first case times tiles that no other case tunes.
    • The system shard runs this file without the variable (cuda.yml:646-651), so there sweep returns []. The new job doesn't list the file, and nothing else in CI sets ET_CUDA_NVFP4_EXHAUSTIVE_TESTS.
    • Neither case would skip on the A10G. The native-FP4 skip at test_nvfp4_export.py:83-85 covers only w4a4, and auto above 16 rows.
    • Of the nine test files that use sweep, this is the only one the new job doesn't list.
    • Fix: add the file to one of the two shards. Fix this →
  • The unittest-cuda system shard still runs the eight files the new job runs (.github/workflows/cuda.yml:646-651, :800-811)
    • Why it still runs them: the system shard runs everything in backends/cuda/tests except KERNEL_TESTS and QUANTIZED_GEMM_TESTS (:540-541, :647). That includes the trimmed runs of all eight files.

    • Why that adds nothing: each quick list is a subset of its full sweep (for example sweep([1, 2, 4, 8, 16, 32], [1, 8]), test_nvfp4_fusion.py:529), so the new job runs every case the system shard runs from these files. Every trigger of the new job (:790-795) also starts unittest-cuda (:501-517). So whenever the new job runs, the system shard's pass over these files is wasted A10G time, in the shard the trimming was meant to keep under its 2-hour limit.

    • Fix: follow the QUANTIZED_GEMM_TESTS pattern (:563-572):

      • put these files in an array that the system shard's IGNORES loop skips;
      • give the new job unittest-cuda's if:, so PRs that only touch extension/cuda, extension/pybindings, runtime/__init__.py or the exir/passes files still run them;
      • update the job comment at :785-786.

      If you'd rather keep the full sweeps off PRs, gate the new job on is-full-run instead. Fix this →

Recommendation

Approve. None of these breaks a job. Please add test_nvfp4_export.py to the new job before merging. The other three can land here or in a follow-up.

@Gasoonjia

Copy link
Copy Markdown
Contributor Author

Updated (new commit 99c0043c55).

  • The job sets EXECUTORCH_CUDA_EXHAUSTIVE_TESTS=1, the directory's existing switch. There is no second variable now.
  • It now also runs test_nvfp4_export.py (its sweep-only cases ran nowhere before), test_nvfp4_attn_act.py and test_nvfp4_unit_scale.py, which the stack also splits now.
  • The duplicate pass was real: the system shard re-ran the default subset of the same files. A new NVFP4_EXHAUSTIVE_TESTS list in unittest-cuda is added to the system shard's --ignore loop, as QUANTIZED_GEMM_TESTS already is.
  • The shards are rebalanced from the full-sweep A100 timings: kv-cache/soft-decode/attn-act ~1.8k s, and the GEMM/export files ~1.75k s.
  • Description fixed. It no longer says every case runs: W4A4 cases still skip without native FP4. It also mentions the system-shard exclusion.
  • Like unittest-cuda-quantized-gemm, the job triggers on backends/cuda, backends/aoti, extension/llm/export and cuda.yml. A pybindings-only or extension/cuda-only change no longer runs these NVFP4 files.

Authored with Claude Code.

@Gasoonjia

Copy link
Copy Markdown
Contributor Author

@claude /pr-review

@claude

claude Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Claude finished @Gasoonjia's task in 18m 2s —— View job


Approve: nothing blocks merging, but the commit message and PR description still say test_nvfp4_kv_cache.py runs in the system shard and the PR description never mentions the new exhaustive job; two smaller notes cover a test_nvfp4_attn_act.py case that now runs in no job and the missing A10G timings.

Detailed review

PR Review: #25437

Summary

The PR does four things:

  • adds an nvfp4/solo-text entry to test-muse-glimmer-cuda-e2e;
  • makes the workflow and five of its jobs trigger on extension/llm/export;
  • adds the Muse Glimmer NVFP4 tests and all of test_cuda_pipeline.py to the batching job;
  • moves the trimmed NVFP4 test files from the unittest-cuda system shard into the new unittest-cuda-nvfp4-exhaustive job.

Three minor problems remain:

  • The commit message and the PR description say test_nvfp4_kv_cache.py stays in the system shard, and the PR description doesn't mention the new job.
  • One quick case in test_nvfp4_attn_act.py isn't part of its full sweep, so no job runs it now.
  • Neither job this PR makes longer has run on an A10G yet, and the exhaustive shards were sized from A100 timings.

I haven't repeated points you settled in earlier rounds:

  • the personal Hugging Face repo, and the hf_model it overrides;
  • how broad the extension/llm/export trigger is, and the unittest-cuda triggers the new job leaves out;
  • MXFP8 coverage on the A100;
  • the gguf pin in Require gguf>=0.19 for the GGUF tests #25420;
  • keeping test_adapter_serialized_dynamic_m SM120-only.

Code Quality

  • The commit message and the PR description put test_nvfp4_kv_cache.py in the wrong shard, and the PR description doesn't mention the new job
    • Wrong shard: both texts say test_nvfp4_kv_cache.py "stays in the system shard because it also lowers and runs programs".

      • In the code it is in NVFP4_EXHAUSTIVE_TESTS (.github/workflows/cuda.yml:575), and the system shard ignores that list (:661). Only the kv-cache-decode-attn-act shard of the new job runs it (:816).
      • The last paragraph of the commit message says the system shard no longer runs these files, which contradicts the earlier sentence.
    • Stale description: the PR description on GitHub stops before that last paragraph. It never mentions unittest-cuda-nvfp4-exhaustive, NVFP4_EXHAUSTIVE_TESTS or the system-shard exclusion.

    • Trigger list: both texts list the jobs that now trigger on extension/llm/export/**, but leave out the new job (:807).

    • Loader test: both texts put test_nvfp4_gguf_loader.py next to files "which pytest.ini keeps out of the CPU session and no other job ran". They also give it as the reason the batching job triggers on extension/llm/export. In fact the CPU unittest job already runs it:

      • pytest.ini collects examples/models/muse-glimmer/tests (:123) and ignores only the pipeline files and test_nvfp4_mlp.py (:39-46).
      • The file needs no GPU. Its only skip condition is requires_gguf (test_nvfp4_gguf_loader.py:27).
      • So unittest (pull.yml:936, which has no if:) runs it on every PR, and the batching job (cuda.yml:739) runs it a second time.
    • Fix:

      • Correct the commit message and paste it into the PR description.
      • Either drop test_nvfp4_gguf_loader.py from the batching job and from its comment (:729-731), or stop describing it as a test only that job runs.
      • The batching job's extension/llm/export trigger still has a reason: test_cuda_pipeline.py imports extension.llm.export.quant (test_cuda_pipeline.py:62).

      Fix this →

Infrastructure

  • Neither job this PR makes longer has run on an A10G yet (.github/workflows/cuda.yml:834-835, :699; low confidence)
    • Exhaustive job: your comment says the unittest-cuda-nvfp4-exhaustive shards were balanced from full-sweep A100 timings, about 1.8k s and 1.75k s.
      • The job runs on mt-l-x86aavx2-11-41-a10g (:835), which is slower for GPU-bound work.
      • Each shard also runs install_executorch.sh (:842) within its 120-minute limit (:834).
    • Batching job: unittest-cuda-muse-glimmer-batching keeps timeout: 120 (:699) on the same runner. It now also runs all of test_cuda_pipeline.py, which exports and lowers the tiny model three times (test_cuda_pipeline.py:338, :364, :423).
    • No A10G run yet: the "Test CUDA Builds" run for 47524fb was still queued when I checked, so neither job has run on an A10G with these test lists.
    • Fix: before merging, check the shards' --durations output and the total time of all three runs. If any is close to 120 minutes, rebalance the shards or raise the timeout.

Testing

  • One quick case in test_nvfp4_attn_act.py now runs in no job (.github/workflows/cuda.yml:577; the test is backends/cuda/tests/test_nvfp4_attn_act.py:732)
    • The stated reason doesn't hold here: the commit message says these files can leave the system shard because "their default cases are a subset of the full sweeps".
    • What the test does: in test_weight_conversion_bit_identical, stress_weight(*sweep((4096, 4096), (512, 1024))) replaces the 512×1024 "all scale bytes" weight with a 4096×4096 one in exhaustive mode, instead of adding it. sweep returns full if EXHAUSTIVE else quick (nvfp4_test_utils.py:15-16).
    • Result: the system shard now skips the file (:661), and the new job sets EXECUTORCH_CUDA_EXHAUSTIVE_TESTS=1 (:846). No job converts the 512×1024 weight any more.
    • Fix (in the parent PR): keep stress_weight(512, 1024) in the list unconditionally. Append the 4096×4096 weight under the existing if EXHAUSTIVE: (:734-735), the same way the file adds the attention-shaped weight. Fix this →

Recommendation

Approve. None of these blocks merging:

  • the description fix doesn't touch code;
  • the test_nvfp4_attn_act.py fix belongs in the parent PR;
  • the timing check only needs the queued "Test CUDA Builds" run.

@Gasoonjia

Copy link
Copy Markdown
Contributor Author

@claude /pr-review

@claude

claude Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Claude finished @Gasoonjia's task in 17m 50s —— View job


Approve: nothing new held up this round, but two points from last round are still open: the commit message and PR description misstate where test_nvfp4_kv_cache.py and test_nvfp4_gguf_loader.py run, and the quick 512×1024 case in test_nvfp4_attn_act.py runs in no job.

Detailed review

PR Review: #25437

Summary

The PR does four things:

  • adds an nvfp4/solo-text entry to test-muse-glimmer-cuda-e2e;
  • makes the workflow and five of its jobs trigger on extension/llm/export;
  • adds the Muse Glimmer NVFP4 tests and all of test_cuda_pipeline.py to the batching job;
  • moves the 11 NVFP4 test files that use sweep from the unittest-cuda system shard to the new unittest-cuda-nvfp4-exhaustive job.

Two minor problems from the last round are still open:

  • The commit message and the PR description misstate where two test files run, and the description still leaves out the new job.
  • One quick case in test_nvfp4_attn_act.py runs in no job.

I haven't repeated points you settled in earlier rounds: the personal Hugging Face repo, how broad the extension/llm/export trigger is, the unittest-cuda triggers the new job leaves out, MXFP8 coverage on the A100, the gguf pin in #25420, and keeping test_adapter_serialized_dynamic_m SM120-only.

Code Quality

  • The commit message and the PR description misstate where two test files run (still open from last round)
    • test_nvfp4_kv_cache.py: both texts say it "stays in the system shard because it also lowers and runs programs". The code doesn't match:
      • It is in NVFP4_EXHAUSTIVE_TESTS (.github/workflows/cuda.yml:575), which the system shard ignores (:661).
      • Only the kv-cache-decode-attn-act shard of the new job runs it (:816).
      • The commit message's own last paragraph contradicts the sentence.
    • test_nvfp4_gguf_loader.py: both texts list it among files "which pytest.ini keeps out of the CPU session and no other job ran". That isn't true for this file:
      • pytest.ini collects examples/models/muse-glimmer/tests (:123) and ignores only the pipeline files and test_nvfp4_mlp.py (:39-46).
      • The file needs no GPU or Triton. Its only skip is requires_gguf (test_nvfp4_gguf_loader.py:27).
      • So the CPU run of pytest -n auto (.ci/scripts/unittest-linux-cmake.sh:39) already covers it, and the batching job (cuda.yml:739) runs it again on an A10G.
      • The GPU-only GGUF loader test is test_cuda_source_transformations_swap_every_nvfp4_mlp in test_nvfp4_mlp.py (:155-191). That test still justifies the batching job's extension/llm/export trigger.
    • New job: the PR description on GitHub still ends before the paragraph that introduces unittest-cuda-nvfp4-exhaustive. Neither text lists that job among those that trigger on extension/llm/export (cuda.yml:807).
    • Fix: correct the commit message and paste it into the PR description. Then either drop test_nvfp4_gguf_loader.py from the batching job's list and from the comment above it (:729-731), or reword the sentence. Fix this →

Testing

  • The quick 512×1024 case in test_nvfp4_attn_act.py still runs in no job (backends/cuda/tests/test_nvfp4_attn_act.py:732; still open from last round)
    • What the test does: test_weight_conversion_bit_identical builds its "all scale bytes" weight with stress_weight(*sweep((4096, 4096), (512, 1024))). sweep returns full if EXHAUSTIVE else quick (backends/cuda/tests/nvfp4_test_utils.py:15-16), so exhaustive mode replaces the 512×1024 weight with the 4096×4096 one instead of adding it.
    • Result: the system shard now ignores the file (cuda.yml:577, :661), and the new job always sets EXECUTORCH_CUDA_EXHAUSTIVE_TESTS=1 (:846). No job converts the 512×1024 weight any more, so the commit message's claim that "their default cases are a subset of the full sweeps" is wrong for this file.
    • Fix (in the parent PR): keep stress_weight(512, 1024) unconditionally, and append the 4096×4096 weight under the existing if EXHAUSTIVE: (:734-735). Fix this →

Recommendation

Approve. Neither problem blocks merging. One is a text fix, and the other belongs in the parent PR.

Before merging, please check the A10G run times of the two exhaustive shards and of the batching job. Their "Test CUDA Builds" run for 02d5802 was still queued when I checked, so I have no A10G durations; this is a check, not a known failure. The shards were sized from A100 timings, and both jobs have a 120-minute timeout (cuda.yml:699, :834).

`test-muse-glimmer-cuda-e2e` gains an `nvfp4`/`solo-text` entry next to the k-quant ones. It exports and runs `gabrielcosi/Muse-Glimmer-30B-NVFP4-GGUF` (`Muse-Glimmer-30B-NVFP4-Q8_0.gguf`, pinned to revision `ba4a88a3`: NVFP4 weights with `.scale` companions, Q8_0 token embedding and lm_head) with `--kv-cache-dtype nvfp4 --nvfp4-attn-act mxfp8`. The k-quant `solo-text` entry stays, so the default BF16-KV solo path keeps its coverage.

On the A100 runner (no native FP4) the attention projections run prefill with BF16 activations and decode with the faster of the W4A16 and INT8-activation W4A8 GEMVs; MXFP8 activations need SM120. The tokenizer still comes from `meta-models/Muse-Glimmer-30B`.

`export_model_artifact.sh` accepts the `nvfp4` quantization for Muse Glimmer `solo-text` only; its usage text, and `test_model_e2e.sh`'s, name the repo it downloads from. The CUDA workflow, this job, `unittest-cuda` (which runs the NVFP4 packer tests), `unittest-cuda-quantized-gemm` (whose INT4 suites import the export quantizers), `unittest-cuda-muse-glimmer-batching` (which runs the NVFP4 MLP swap test on a GGUF) and the new `unittest-cuda-nvfp4-exhaustive` now also trigger on `extension/llm/export/**`, which holds the GGUF/NVFP4 loading code they exercise.

The pure NVFP4 KV-cache kernel test (`test_nvfp4_kv_bitexact.py`) moves from the system shard to the kernel shard (`KERNEL_TESTS`). `unittest-cuda-muse-glimmer-batching` also runs `test_nvfp4_mlp.py` and all of `test_cuda_pipeline.py` (tiny-model inference, chunked prefill, DFlash target prefill, export, INT4 and the NVFP4 KV cache), which `pytest.ini` keeps out of the CPU session and no other job ran, plus `test_nvfp4_gguf_loader.py`, which the CPU unit tests already run, on a GPU.

A new `unittest-cuda-nvfp4-exhaustive` job (two A10G shards) runs the NVFP4 test files whose sweeps are trimmed by default with `EXECUTORCH_CUDA_EXHAUSTIVE_TESTS=1` (the switch `test_conv_implicit_gemm.py` already uses): the full split-K, tile, autotune-config and case sweeps, with the W4A4 cases still skipped on GPUs without native FP4. These files include `test_nvfp4_kv_cache.py`. The `unittest-cuda` system shard no longer runs them (their default cases are a subset of the exhaustive ones), which keeps it well under its 2-hour limit.

Authored with Claude Code.
@Gasoonjia

Copy link
Copy Markdown
Contributor Author

Updated (new commit d6d9334b8c). The commit message and description now match the workflow:

  • test_nvfp4_kv_cache.py runs in unittest-cuda-nvfp4-exhaustive, not in the system shard.
  • test_nvfp4_gguf_loader.py already runs in the CPU unit tests; the batching job runs it again on a GPU. test_nvfp4_mlp.py and test_cuda_pipeline.py are the files pytest.ini keeps out of the CPU session.
  • The new job is listed among the jobs that trigger on extension/llm/export/**.
  • The quick 512x1024 case in test_nvfp4_attn_act.py now also runs in exhaustive mode (fixed in [executorch][cuda] NVFP4: per-weight activation dtype, MXFP8 attention projections #25436), so "default cases are a subset" holds.

Authored with Claude Code.

@Gasoonjia

Copy link
Copy Markdown
Contributor Author

@claude /pr-review

@claude

claude Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Claude finished @Gasoonjia's task in 14m 55s —— View job


Approve: the reviewers found no new problems in the code; the one open item is the PR description on GitHub, which is still the old text and contradicts the workflow, so please paste the f792567 commit message into it.

Detailed review

PR Review: #25437

Summary

The PR does four things:

  • adds an nvfp4/solo-text entry to test-muse-glimmer-cuda-e2e;
  • makes the workflow and five of its jobs trigger on extension/llm/export;
  • adds the Muse Glimmer NVFP4 tests and all of test_cuda_pipeline.py to the batching job;
  • moves the 11 NVFP4 test files whose sweeps are trimmed by default from the unittest-cuda system shard to the new unittest-cuda-nvfp4-exhaustive job.

I reviewed f792567, the head this run checked out. Its commit message has the changes your last reply describes. The one problem left is outside the code: the PR description on GitHub.

I haven't repeated points you settled in earlier rounds:

  • the personal Hugging Face repo;
  • how broad the extension/llm/export trigger is;
  • the unittest-cuda triggers the new job leaves out (extension/pybindings, extension/cuda, runtime/__init__.py and the exir/passes files);
  • MXFP8 coverage on the A100;
  • the gguf pin in Require gguf>=0.19 for the GGUF tests #25420;
  • keeping test_adapter_serialized_dynamic_m SM120-only.

Code Quality

  • The PR description on GitHub is still the old text (still open from earlier rounds)
    • Your last reply says the description now matches the workflow. The f792567 commit message does, but the PR body this run fetched still contradicts the code:
      • It says test_nvfp4_kv_cache.py "stays in the system shard". The file is in NVFP4_EXHAUSTIVE_TESTS (.github/workflows/cuda.yml:575), which the system shard ignores (:661), so only the new job runs it (:816).
      • It never mentions unittest-cuda-nvfp4-exhaustive (:801) or the 11 files leaving the system shard. Its list of jobs that trigger on extension/llm/export/** also leaves out the new job (:807).
      • It counts test_nvfp4_gguf_loader.py among the files "which pytest.ini keeps out of the CPU session and no other job ran". pytest.ini collects the file (:123) and ignores only the pipeline files and test_nvfp4_mlp.py (:39-46).
    • Pushing a new commit doesn't update the PR body. Fix: paste the f792567 commit message into the description on the PR page.

Recommendation

Approve. Nothing in the diff blocks merging, and the description fix doesn't touch code.

This branch was successfully deployed

1 active and 1 inactive deployments
upload-benchmark-results — f792567a Deployed Nov 24, 2026 by Gasoonjia via upload-benchmark-results #23294
cadence — f792567a Deployed Nov 24, 2026 by Gasoonjia via hifi-op-test / hifi4 #40630
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant