Skip to content

Studio: per-layer NVFP4 image policies, flashinfer FP4 backend and a gated auto row - #10730

Merged
danielhanchen merged 99 commits into
mainfrom
studio-nvfp4-image
Sep 25, 2026
Merged

danielhanchen merged 99 commits into
mainfrom
studio-nvfp4-image

Conversation

@danielhanchen

@danielhanchen danielhanchen commented Sep 10, 2026 •

Copy link
Copy Markdown
Member

Summary

Per-layer NVFP4 for the image DiTs, a flashinfer mm_fp4 backend for the NVFP4 linears, and a reviewed gate record that is the only thing allowed to put nvfp4 into the auto ladder. The tooling that builds and gates these checkpoints is NOT in this repo: it lives in the private scripts repo, and this PR is the runtime half that loads what it produces. Stacked on the generic video NVFP4 PR #10729 (base branch studio-nvfp4-video); retarget to main once that one merges.

Whole-model NVFP4 does not pay on the image DiTs: the investigation measured it at LPIPS 0.51 on qwen-image and well above fp8 on z-image and flux. What does pay is a per-layer policy that puts NVFP4 on the few linears whose activations tolerate it and keeps fp8 everywhere else. That is a memory lever at fp8-parity quality, not a speed win, so:

  • nvfp4 sits BELOW fp8 in the image auto order, and only for a base that has a reviewed gate record measured on the backend that serves the device (every checked-in record is flashinfer, so torchao installs keep nvfp4 out of auto);
  • the flashinfer backend exists so the mixed model costs no speed against fp8;
  • everything else (explicit transformer_quant=nvfp4 on an ungated base, Windows, sm_121, an install without flashinfer) keeps the torchao path this PR does not change.

Policies (diffusion_nvfp4_policy.py)

A policy is a table of exact dotted-suffix rules with expected counts. Resolution asserts every count, so a diffusers rename breaks the build instead of shipping a different model.

policy family nvfp4 fp8 bf16 checkpoint vs fp8
zimg_rg76_v1 z-image 76: every attention.to_q and attention.to_k, feed_forward.w1 in layers 0-5 and both noise refiners 195 (incl. 32 admitted adaLN_modulation.0 at 256 x 15360) 5 5.59 GB, -11.2%
flux_r420_v1 flux.1 (schnell) 187, per block (mostly the late single blocks' attention, MLP and modulation, plus norm_out.linear) 312 3 9.71 GB, -18.5%
qwen21_r020_v1 qwen-image-2.1 48, per block (attn.to_q / to_k, img_mlp.gate_layer / proj, norm_out.linear) 181 3 6.49 GB, -8.9%
qwen2512_m120_attn8_v1 qwen-image (2512 only) 600: img_mod.1, txt_mod.1 and all eight attention projections 243 3 15.49 GB, -24.3%
qwen_p02_v1 qwen-image (Qwen/Qwen-Image) 120 img_mod.1 / txt_mod.1 723 3 17.48 GB, -14.6%

The z-image, flux, qwen-image-2.1 and 2512 rows are points on a storage/quality frontier solved per model, picked by one rule: the paired LPIPS(vgg) gap to the model's own fp8 build must stay at or under 0.05 at the upper 95% bootstrap bound. Each hosted artifact was re-measured against that bound on 48 held-out pairs (24 frozen prompts x seeds 1234 and 4321, 1024 px, flashinfer backend):

policy nvfp4 vs fp8, mean [95% CI] prompt-cluster CI SSIM vs bf16, fp8 / nvfp4 PSNR vs bf16, fp8 / nvfp4
zimg_rg76_v1 +0.022 [0.002, 0.040] [0.003, 0.041] 0.828 / 0.803 21.8 / 20.6 dB
flux_r420_v1 +0.024 [0.016, 0.031] [0.016, 0.031] 0.814 / 0.788 22.4 / 21.2 dB
qwen21_r020_v1 +0.028 [0.012, 0.046] [0.013, 0.043] 0.904 / 0.878 26.0 / 24.4 dB
qwen2512_m120_attn8_v1 +0.028 [0.008, 0.050] [0.008, 0.049] 0.906 / 0.881 26.4 / 24.9 dB

The first choice for flux (flux_r600_v1, 8.78 GB) measured +0.044 [0.034, 0.053] and the first for qwen-image-2.1 (qwen21_r040_v1, 5.87 GB) +0.039 [0.022, 0.057], so each steps back one frontier point. Rules that select single blocks are written as one exact rule per block, so every count is still asserted. The earlier zimg_f8mod_toq34_v1 and flux_mod_single_v1 are gone rather than kept resolvable, so an artifact built at either is refused on load.

t_embedder.mlp.* on z-image stays bf16 by construction: TimestepEmbedder.forward reads mlp[0].weight.dtype. A policy checkpoint is quantised in two passes with disjoint fqn filters (nvfp4 first, then fp8), both configs through _quiet_config, with the resulting weight types asserted afterwards.

Checkpoint format

Policy checkpoints carry the _v3 format tag, biconditional with a declared policy (policy_id, policy_version, counts), and are refused with ConvRot. _validate_checkpoint checks the declared policy against the in-tree resolution for (family, base). One real bug fixed on the way: _fp8_activation_floor_present returned on the first tensor with act_quant_kwargs, which on a mixed dict can be an NVFP4Tensor without hp_value_lb, so it would have refused every policy checkpoint.

Activation global scales are BAKED at build time and carried in the artifact (per fqn in metadata act_global_scales; a whole-model video artifact declares them at the top level). This removes the running-min activation-scale state the investigation's layer carried, which was not capture-safe and was the mechanism behind the flux black-frame latch. The flashinfer backend refuses an artifact without baked scales and falls back to torchao.

flashinfer backend (diffusion_nvfp4_ops.py, diffusion_nvfp4_linear.py)

One hosted artifact in torchao payload format, re-expressed (never requantised) into flashinfer buffers at load: qdata -> wq, the swizzled 128x4 scale -> w_sf (byte-identical to flashinfer's do_shuffle=False layout, checked as a CUDA test before anything else was built), per_tensor_scale == 1/w_gsf, alpha = per_tensor_scale / a_gsf. Two custom ops unsloth_nvfp4::quantize and unsloth_nvfp4::mm with register_fake so the layer compiles fullgraph=True with no graph breaks. Every flashinfer call sits inside with torch.cuda.device(t.device); a source test enforces it (a missing guard has taken cards down on a multi-GPU host). A one-element barrier between quantiser and GEMM works around flashinfer launching the CUTLASS kernel with PDL while the kernel's griddepcontrol is compiled out.

UNSLOTH_NVFP4_BACKEND=auto|torchao|flashinfer. auto picks flashinfer only when it imports, the capability is in {(10,0), (10,3), (12,0)} and a guarded per-device preflight (128x256 quantise + mm_fp4) passes; an explicit flashinfer that fails falls back to torchao with a warning. sm_121 and Windows are torchao by construction. nvfp4_prewarm runs flashinfer.autotune inside GraphedForward's warm-up so no tuning runs under capture, and any other (M, K, N) (a video's token count, Z-Image's patchified plus caption sequence) tunes on its first eager GEMM, once per process, and capture is poisoned if a layer reports unbaked scales. The status route and the loaded-models badge show transformer_quant_backend.

Gate record and the ladder

nvfp4_gate_record.json is a reviewed, checked-in list keyed by (family, base_repo, policy_id, policy_version, checkpoint_sha256). nvfp4_gate_passed re-resolves the in-tree policy, so bumping a policy invalidates its verdict. _FAMILY_AUTO_PREFER rows for z-image, flux.1, qwen-image and qwen-image-2.1 are gated: the head (fp8, nvfp4, mxfp8, int8) applies only where a record covers THIS base; _family_denied lifts the qwen nvfp4 deny for a gated base only (Qwen-Image-2512 today, never Qwen/Qwen-Image); nvfp4 under auto also requires a usable prequant source. _FAMILY_TRAIN_SCHEME_DENY gets nvfp4 for every family. _POLICY_STEADY_FACTOR replaces the whole-model 0.33 factor for the policy families in estimate_dense_quant and the inference info route.

Per-step precision on the same bytes (diffusion_nvfp4_protect.py, opt-in, default off)

UNSLOTH_NVFP4_PROTECT_STEPS=0,1,2,3,-1 (or auto: the first 8 percent of steps and the last) makes the flashinfer layers run W4A16 at the named denoising steps: the packed weight is dequantised to a transient bf16 tensor and multiplied with the unquantised activation, everywhere else the NVFP4 GEMM runs as usual. No second resident operand (peak identical, steady +152 KiB for 304 one-element scale buffers); the step index comes from a wrapper around scheduler.step installed for the duration of one video generation; under compile the switch is a per-load bool so an armed load traces two variants (measured unique_graphs = 2, no recompiles across 50 steps) and an unarmed load traces the one that shipped; under graph capture the branch joins the cache key. Flashinfer backend only: on a load that stayed on torchao the controller refuses to arm and logs it, so no step is ever reported as protected when nothing ran. On the image side it wraps each chunk's pipeline call, doubles the graph cap once when it discovers the split (one captured graph per branch per shape, the second branch sharing the pool: +0.07 GB on z-image 1024), and suspends itself during nvfp4_prewarm so the FP4 tactic is tuned even when the first capture lands on a protected step (a live ordering bug found by the end-to-end check). A step whose forward the step cache skips is simply not protected.

Wan2.2-TI2V-5B, 1280x704x121, 50 steps, held-out LPIPS against bf16, paired against fp8:

arm p50 vs fp8 LPIPS gap vs fp8 (95% upper) SSIM
fp8 54.9 s 1.00x 0.194 0.759
nvfp4 flashinfer 47.5 s 1.16x 0.362 +0.168 (0.210) 0.646
protect steps 0 and 49 48.5 s 1.13x 0.334 +0.140 (0.190) 0.672
protect steps 0 to 3 and 49 48.7 s 1.13x 0.321 +0.127 (0.176) 0.678
protect steps 0 to 7 and 49 49.9 s 1.10x 0.319 +0.125 (0.175) 0.678

The five-step schedule closes a quarter of the W4A4-to-fp8 gap for 2.6 percent of the speed at byte-identical memory, which is what the investigation measured for this lever. It does not reach fp8, so it ships as an opt-in and no auto row depends on it. The protected set is per model. On HunyuanVideo-1.5 480p the same schedule takes the paired gap against fp8 from +0.116 to +0.028 over 32 held-out pairs (95 percent upper bound +0.061, SSIM 0.521 against fp8's 0.475, 1.07x fp8), the closest any small video family gets, and still short of the +0.02 / +0.05 bar, so 480p stays an explicit opt-in as well.

On the image policies the lever is inert by construction and measured as such: with 34 of 271 (z-image) and 38 of 499 (flux) linears at 4 bits and the rest fp8, protecting even every step moves held-out LPIPS by +0.003 (z-image) and -0.009 (flux) with every 95 percent interval spanning zero, at 1.00x to 1.03x fp8 speed. The whole-model image numbers in the investigation do not transfer to these mixed policies and are not claimed here.

Wan2.2-T2V-A14B under auto

The generic video PR measured its four families through the promotion gates against the hosted NVFP4 artifacts on this backend. Wan2.2-T2V-A14B is the one that passes every gate: p50 denoise 432 s against fp8's 482 s (1.115x, 5 of 5 rotations), steady resident 26.2 GiB against 38.6, held-out LPIPS 0.356 against fp8's 0.431 (paired gap -0.075, 95 percent upper bound -0.025), SSIM 0.571 against 0.510. The same artifact on the torchao kernels is 0.86x fp8, so the row is conditional: _AutoPrefer gains a backend field and the A14B head (nvfp4, fp8, mxfp8, int8) applies only where select_nvfp4_backend would pick flashinfer for the device, through a lazy probe that answers False on any failure (the module stays stdlib-only at import for the smoke-probe child). Both callers share the one walk, so the condition cannot apply to one and not the other. Wan 5B, HunyuanVideo 480p and 720p fail the accuracy gate and stay explicit opt-ins.

Fixing this exposed a dead path: _video_auto_denoiser_scheme never passed has_prequant, and nvfp4 requires a pre-quant source under auto, so no video family could have reached nvfp4 under auto however the head was ordered. The probe now uses the same all-components-or-none resolver the coverage check uses, so the plan and the pull cannot disagree and a dual-expert family with one artifact stays on fp8. The explicit-request path is untouched. The image pipeline seed planner (_pipeline_planned_denoiser_scheme) had the same gap and now resolves through _planned_quant_scheme, with the base and checkpoint probe also passed to its lower-rung walk.

flux compile fix (diffusion_speed.py)

Found while measuring: FLUX.1's dense quant path (bf16, fp8 and nvfp4 alike) failed on the first compiled render with InductorError: CantSplit: 15360*s31 + 15360*s87 not divisible by s31 + s87. diffusers' FluxSingleTransformerBlock concatenates the text and image streams inside the regionally compiled block, so under dynamic=True the two lengths are separate symbols and inductor's own Mod cannot cancel 15360*(a+b) / (a+b) (stock sympy can). mark_static does not help because dynamic=True overrides it, and marking only the text length leaves an equally unprovable Mod. Stream-merging DiTs now compile regionally with dynamic=False, the same flag the max tier and the U-Net path already use, and compiled_shapes_are_static reports it so the compile cache re-saves per shape. No torch internals are touched, so nothing is version-gated.

Measurements

B200, torch 2.12.1+cu130, torchao 0.18, flashinfer 0.6.6, CUDA graphs on, one arm per process.

Accuracy gate (24 to 28 held-out pairs, bf16 reference, flashinfer backend, graphs on; the harness is in the private scripts repo, its verdicts are the checked-in gate record):

checkpoint pairs LPIPS mean SSIM mean CLIP delta verdict
z-image zimg_rg76_v1 (hosted) 24 0.158 0.841 0.005 PASS
flux.1-schnell flux_r420_v1 (hosted) 24 0.185 0.787 0.007 PASS
qwen-image-2.1 qwen21_r020_v1 (hosted) 28 0.125 0.883 0.006 PASS
qwen-image 2512 qwen2512_m120_attn8_v1 (hosted) 28 0.132 0.899 0.005 PASS
earlier: z-image zimg_f8mod_toq34_v1 24 0.141 0.866 0.006 PASS, superseded
earlier: flux.1-schnell flux_mod_single_v1 24 0.181 0.800 0.006 PASS, superseded
qwen-image qwen_p02_v1 28 0.309 0.810 0.014 FAIL (LPIPS > 0.25, CLIP > 0.01, 6/28 over the per-case cap)

Speed vs fp8, measured at the earlier policies and not repeated for the re-picked ones (3 warm-ups, 20 renders, median; z-image 9 steps, flux 4 steps):

family arm 512 1024 512 vs fp8 1024 vs fp8
z-image fp8 torchao 0.262 s, 15.2 GB 0.941 s, 16.6 GB 1.000x 1.000x
z-image nvfp4 torchao 0.280 s, 14.8 GB 0.961 s, 16.3 GB 0.937x 0.979x
z-image nvfp4 flashinfer 0.266 s, 14.9 GB 0.940 s, 16.3 GB 0.986x 1.001x
flux.1 (compile on, after the fix) fp8 torchao 0.126 s, 22.5 GB 0.383 s, 23.9 GB 1.000x 1.000x
flux.1 (compile on, after the fix) nvfp4 flashinfer 0.127 s, 22.0 GB 0.382 s, 23.4 GB 0.997x 1.001x
flux.1 (compile off, before the fix) fp8 torchao 0.296 s 0.781 s 1.000x 1.000x
flux.1 (compile off, before the fix) nvfp4 flashinfer 0.296 s 0.781 s 1.000x 1.001x

The compile fix alone is 2.05x at 1024 and 2.34x at 512 on flux fp8. Ship criterion for the flashinfer arm was >= 0.97x fp8 at both resolutions; z-image and flux pass, qwen has no arm to measure (refused by the runtime, correctly, because it has no gate record).

M-2 backend x graphs smoke matrix: 16 configurations, all render, no refusals, no black or non-finite output.

Hosted checkpoints (private pending review): unsloth/Z-Image-Turbo-NVFP4 (Z-Image-Turbo-NVFP4.pt), unsloth/FLUX.1-schnell-NVFP4 (FLUX.1-schnell-NVFP4.pt), unsloth/Qwen-Image-2.1-NVFP4 (Qwen-Image-2.1-NVFP4.pt) and unsloth/Qwen-Image-2512-NVFP4 (Qwen-Image-2512-NVFP4.pt), each built at the policy above and each in the gate record. The 2512 record lifts the qwen-image nvfp4 deny for the 2512 base only; Qwen/Qwen-Image keeps it. unsloth/Qwen-Image-NVFP4 exists privately for further work but no family row references it.

Tests

New test files: test_diffusion_nvfp4_policy.py, test_diffusion_nvfp4_backend.py, test_diffusion_nvfp4_linear.py, test_diffusion_nvfp4_gate.py, test_nvfp4_load_error_message.py; extended test_diffusion_transformer_quant.py, test_diffusion_prequant.py, test_diffusion_speed.py, test_video_prequant.py, test_diffusion_more_families.py. test_diffusion_nvfp4_gate.py covers the shipped record and every way it does or does not become a verdict; the tests for the writer that produces a record went with the writer to the private scripts repo. CUDA-gated tests (payload byte equivalence torchao vs flashinfer, M=1 GEMM sanity, converted layer vs torchao forward at M in {1, 512, 4096, 16384}, fullgraph compile, capture and replay, multi-device guard) run on a B200: 25 passed.

Full studio/backend/tests on this branch (test_blender_managed.py excluded), 826 files in 10 batches: 41542 passed, 125 failed, 242 skipped, 15 errors. That run predates the build tooling moving to the private scripts repo, so it counted two test files and part of a third that are no longer in this tree; nothing else in the count moved. Every failing id reproduces on the merge base (95feb6979) file by file, in 19 files none of which this PR touches (chat generation lease and supervisor, llama admission, mcp_*, native audio, openai catalog, gpu arch gate, offload planner seam, sandbox files, studio_api). hub/tests: 683 passed. One pre-existing full-suite hazard noted for the record: test_password_prompt_backstop.py::test_an_unattended_pty_does_not_block_a_raw_bind_forever blocks forever in a single-process run of the whole suite and passes alone and in batches, on both trees.

Not changed

  • The _AUTO_LADDER tiers. nvfp4 enters only through the gated per-family heads.
  • flux.1-dev and Krea-dev: no gate record, no checkpoint, nvfp4 denied there; the schnell row is never consulted for them.
  • qwen-image: the policy ships in code so the tooling and the loader resolve the same table, and the deny is kept.
  • unsloth/FLUX.1-schnell-FP8 is stale on this branch (built before activation_value_lb; the loader refuses it and quantises at run time). Separate rebuild.

Evidence

The loaded-models card on a B200, from two isolated installs driven by one Playwright scene. BEFORE is df2f93036, then the head of studio-nvfp4-video (#10729) this branch is stacked on, not main; AFTER is d8210fb7e8. Both branches have moved since and neither move touches this surface. At the current heads, git diff df2f93036 166439a879 and git diff d8210fb7e8 6cc072b9f8 are empty under studio/frontend, studio/backend/models/ and studio/backend/main.py; over every other file in the tree they change no line that is not a comment, once the build tooling that moved to the private scripts repo is set aside. So the pair still stands.

Load: unsloth/Z-Image-Turbo-GGUF Q4_K_M with transformer_quant="nvfp4", so the dense fast path replaces the GGUF and the NVFP4 denoiser is a run-time torchao build.

the loaded-models row before and after

Image · z-image · NVFP4 · cuda becomes Image · z-image · NVFP4 · torchao · cuda, and /api/inference/images/status goes from no transformer_quant_backend to "torchao".

torchao rather than FlashInfer is the right answer for this load and is the point of the change: an in-memory build bakes no activation scales, so convert_nvfp4_backend declines and the denoiser stays on the torchao path. Before this PR that load and a FlashInfer one both read NVFP4 and nothing told them apart.

One limit of these two installs, stated so the picture is not read for more than it says: install.sh --local resolved torch 2.11.0+cu130 and torchao 0.17.0 and pulled no flashinfer at all, identically on both sides, so the FlashInfer branch was out of reach there whatever the checkpoint carried. What the pair shows is that the row now names the kernel path and that this load reports torchao; the FlashInfer branch itself is held by test_diffusion_nvfp4_backend.py and measured in #10731.

NVFP4 kill switch

NVFP4 for image and video generation is off by default until the hosted unsloth/*-NVFP4 repos are public. UNSLOTH_NVFP4_DIFFUSION=1 (also true, yes, on) restores the full NVFP4 behaviour of this stack, including private-repo access through the user's HF token; anything else, or unset, disables it. The default lives in one constant, NVFP4_DIFFUSION_DEFAULT in studio/backend/core/inference/diffusion_nvfp4_flag.py, so turning it on for everyone later is a one-line change. The switch is read at call time through nvfp4_diffusion_enabled().

Added on this branch, with the switch off:

  • The gated and flashinfer-keyed _FAMILY_AUTO_PREFER rows (z-image, flux.1, qwen-image, qwen-image-2.1, wan2.2-t2v-a14b) are dropped whole before the gate record or the backend probe is consulted.
  • _resolve_backend answers torchao without importing flashinfer. nvfp4_preflight and nvfp4_prewarm do nothing.
  • The per-layer policy steady factor is not applied to size estimates.
  • The hosted FLUX.1-schnell and Z-Image-Turbo NVFP4 rows resolve to nothing.

The gates on main's surfaces and #10729's are on #10729.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 10, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-25T15:04:17.106145Z 232952b Manual request
🔒 Security Review ✅ Completed 2026-09-10T15:02:32.955076Z 317ff59 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f952e4b63a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

recorded = (str(record.get("policy_id", "")).strip(), int(record.get("policy_version")))
except (TypeError, ValueError):
return False
return recorded == (str(policy.policy_id), int(policy.version))

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Bind gate approval to the loaded checkpoint digest

When a configured NVFP4 checkpoint is rebuilt or replaced under the same base and policy version, this returns true solely from all_pass and the policy identity; the recorded checkpoint_sha256, repo_id, and filename are never matched to the artifact that resolve_prequant_source actually loads. The checked-in record already contains multiple Z-Image artifacts for one policy, so AUTO can approve bytes other than those whose render quality passed. Verify the downloaded digest against the matching record or pin an immutable artifact revision before lifting the deny.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Not reachable with the hosted repos: resolve_prequant_source derives Z-Image-Turbo-NVFP4.pt, which is the artifact the passing record names; the RTN file is hosted for A/B only and no row resolves it. Pinning digests against a future re-upload is hardening, not a bug on a well-formed session.

Comment thread scripts/build_prequant_checkpoint.py Outdated
from core.inference.diffusion_nvfp4_linear import ACT_SCALES_KEY

# The flashinfer backend converts a layer only when it finds its scale here.
metadata[ACT_SCALES_KEY] = {fqn: float(value) for fqn, value in sorted(act_scales.items())}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Compare baked scales during second-build verification

For a build using --bake-activation-scales, these values materially control FlashInfer activation quantization but are stored only in metadata, while --verify-against compares packed weight fingerprints exclusively. Two builds made with different calibration inputs, or one with nondeterministic or corrupted amax measurements, therefore have identical weight fingerprints and can pass the mandatory publication check despite producing different inference behavior. Include the baked scales and their calibration contract in the reproducibility comparison.

Useful? React with 👍 / 👎.

@danielhanchen danielhanchen Sep 10, 2026 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The second build is a reproduction gate for the packed payloads; the baked scales are measured from rendered samples, so an equality check on them would fail legitimate republishes on ordinary float nondeterminism, and reaching the described outcome requires running the second build with different inputs.

Comment on lines +303 to +304
declared = counts.get(PRECISION_NVFP4)
if declared is not None and declared != len(fqns):

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Verify the policy's exact NVFP4 layer assignment

For a v3 policy checkpoint, this validates only that the declared NVFP4 count equals the length of nvfp4_fqns; _validate_policy subsequently compares only the policy identity and aggregate counts. A mislabeled or rebuilt artifact can therefore place NVFP4 tensors on a different set of layers, retain the expected counts and policy version, and be accepted even though the accuracy gate applies to an exact per-layer assignment. Compare the listed FQNs with the resolved policy assignment and verify that the corresponding state-dict weight types match.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The builder derives nvfp4_fqns from the resolved policy, so a legitimately built artifact matches by construction; a mislabeled foreign artifact is outside what the loader defends against.

Comment thread scripts/record_nvfp4_gate.py Outdated
Comment on lines +127 to +129
"all_pass": bool(results.get("all_pass")),
"num_pairs": results.get("num_pairs"),
"num_passed": results.get("num_passed"),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Recompute gate success from the recorded results

A malformed or internally inconsistent results file can enable AUTO because bool(results.get("all_pass")) treats values such as the JSON string "false" as true and neither this writer nor the reader checks that num_passed == num_pairs or that every recorded case passed. Thus an incomplete or failed campaign can be committed as an enabling verdict despite the tool's fail-closed contract. Require a literal boolean and derive the verdict from consistent counts and per-case outcomes before appending the record.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

results.json is written by the gate harness, not by hand, and append_record already refuses all_pass false without --allow-fail, so the fail-closed contract holds for the input the harness produces.

Comment thread scripts/build_prequant_checkpoint.py Outdated


DEFAULT_IMAGE_CALIB_GRID = "1024"
DEFAULT_VIDEO_CALIB_GRID = "832x480x25"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Choose a family-valid default video calibration grid

Any MiniMax-H3 calibration that omits --calib-resolution receives this 25-frame default and is then unconditionally rejected by frame_count_refusal: H3 declares a minimum of 124 frames on a 17k + 5 frame lattice. Consequently the newly advertised default calibration workflow cannot run for that supported video family without an undocumented mandatory override. Derive the default frame count from fam.default_num_frames or otherwise choose a value valid for the resolved family's lattice.

Useful? React with 👍 / 👎.

@danielhanchen danielhanchen Sep 10, 2026 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

MiniMax-H3 declares no nvfp4 artifact and these build flags require --scheme nvfp4, so this is not a shipped workflow, and the refusal is loud and names the lattice. A default taken from the family's frame count is a follow-up, not a defect.

Comment on lines +308 to +312
regressed = sorted(
(fqn for fqn, score in scores.items() if not score.get("improved")),
key = lambda fqn: (scores[fqn].get("ratio") is None, scores[fqn].get("ratio") or 0.0),
)
allowed = regressed[: max(0, int(max_regressions))]

@danielhanchen danielhanchen Sep 10, 2026 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Needs a non-finite error that nothing has observed, plus a non-default opt-in setting above zero; the default path already skips such a layer.

danielhanchen added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Sep 10, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5cd31b8751

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +151 to +153
if isinstance(value, torch.Tensor):
return value.detach().to(device = device, dtype = dtype).reshape(1).clone()
return torch.tensor([float(value)], device = device, dtype = dtype)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Reject invalid baked activation scales

When a hosted or operator-supplied checkpoint contains 0, a negative value, NaN, or infinity in act_global_scales, this conversion accepts it because float(value) and the tensor path perform no range or finiteness check. nvfp4_linear_from_torchao then divides per_tensor_scale by that value to form alpha, so FlashInfer conversion succeeds but inference can produce invalid or silently corrupted outputs instead of falling back to torchao; the packed-weight fingerprint does not cover this metadata. Require each baked scale to be finite and strictly positive before constructing any replacement.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The only producer of act_global_scales drops non-finite and non-positive amax values and the builder errors on any layer left without a scale, so such an entry means a hand-edited artifact.

Comment on lines +331 to +333
key = (m, module.in_features, module.out_features)
if key in _TUNED_SHAPES:
continue

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Key prewarm completion by CUDA device

When a long-lived Studio process loads NVFP4 models first on one GPU and then on another, the second GPU skips autotuning for every matching (M, K, N) because _TUNED_SHAPES is process-global and this key contains no device or capability. The second device can consequently enter CUDA-graph capture with FlashInfer's default tactic—the exact condition this prewarm is intended to prevent—especially on heterogeneous Blackwell cards. Include the CUDA device/capability in the key, or clear the cache when the selected GPU changes.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

FlashInfer's autotuner cache is process-global and device-blind (its key is op, runner and profile, with no device), so the tactic profiled on the first card is what choose_one returns on the second; a per-device key would only repeat a profiling pass whose result is already cached.

Comment on lines +112 to +117
cols = k // 16
# The leading dim is NOT m whenever the padding is non-trivial. Reproduce that, not m.
total = _swizzled_sf_numel(m, cols, 128)
return (
x.new_empty((m, k // 2), dtype = torch.uint8),
x.new_empty((total // cols, cols), dtype = torch.uint8),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve padded columns in the fake scale tensor

For an NVFP4 linear whose input width is divisible by the advertised 16-element requirement but not by 64, cols = k // 16 is not divisible by four. _swizzled_sf_numel includes the required four-column padding, but reshaping with the unpadded cols truncates total // cols and produces a fake tensor with both the wrong shape and, in general, fewer elements than FlashInfer returns (for example, five scale columns produce 1020 fake elements instead of 1024). Compiled execution can therefore fail or use incorrect output metadata; shape this result with the padded column count, as sf_matrix_shape already does.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

For every k the real op accepts the fake matches exactly: flashinfer reshapes the padded buffer with the unpadded column count and raises when k // 16 is not divisible by 4 (verified on a B200 for k = 80 and 528), and every admitted K in the shipped policies and video families is a multiple of 64.

Comment on lines +207 to +213
def normalised(self) -> dict:
"""``{fqn: H / rows}``, divided per layer, since rows differ under an attention trim."""
out: dict = {}
for fqn, hessian in self.hessians.items():
rows = max(1, int(self.samples.get(fqn, 0)))
out[fqn] = hessian / rows
return out

@danielhanchen danielhanchen Sep 10, 2026 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The shipped builds only touch the policy's NVFP4 set (34 to 120 layers), so the transient copy stays far under the budget beside the dense DiT on the cards the builds run on.

danielhanchen added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Sep 10, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0391a5b457

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/build_prequant_checkpoint.py Outdated
Comment on lines +1294 to +1298
pipe = getattr(diffusers, pipeline_cls_name).from_pretrained(
args.base,
torch_dtype = torch.bfloat16,
token = args.hf_token,
**{component: transformer},

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Load modular components before H3 calibration

When MiniMax-H3 calibration uses a valid frame override, pipeline_cls_name is ModularPipeline, whose from_pretrained only opens the modular index; the production H3 loader explicitly calls update_components and then load_components before using the pipeline (video.py's _load_h3_pipeline). This generic path instead proceeds directly to pipe.to() and rendering, leaving the encoders, VAEs, schedulers, and other workflow components unloaded, so H3 calibration still cannot run after the default-frame refusal is addressed. Assemble this family through its modular loading path before rendering.

Useful? React with 👍 / 👎.

@danielhanchen danielhanchen Sep 10, 2026 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Not a shipped workflow: these build flags require --scheme nvfp4, MiniMax-H3 declares no nvfp4 artifact or policy, and the default grid is refused for H3 before any pipeline is built. Only an explicit frame override reaches that line, for an artifact nothing could load.

Comment on lines +71 to +73
parsed = json.loads(target.read_text(encoding = "utf-8"))
records = parsed.get("records") if isinstance(parsed, dict) else None
entries = tuple(record for record in (records or []) if isinstance(record, dict))

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Reject gate files with an unknown schema version

If the checked-in gate document has a missing, malformed, or future version, this loader still consumes its records as version 1 and can lift the NVFP4 deny. That defeats GATE_RECORD_VERSION as a schema boundary and is especially unsafe for a fail-closed approval file whose field meanings may change in a later format. Require parsed["version"] == GATE_RECORD_VERSION; otherwise return no evidence.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The gate file is checked into this repo at version 1 and its only writer stamps GATE_RECORD_VERSION; a future-version document needs a maintainer commit, which would carry the reader change with it.

Comment on lines +189 to +194
rows = 1
for dim in shape[:-1]:
rows *= dim
if rows > 0:
counts.add(rows)
return tuple(sorted(counts)[:8])

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Include merged stream sizes in NVFP4 prewarm

For the FLUX.1 CUDA-graph path, the top-level call supplies image and encoder streams as separate tensors, but FluxSingleTransformerBlock concatenates them before the policy-selected norm.linear layers run. This helper tunes only each tensor's individual row count, so it never tunes the actual merged M; the subsequent warmup runs that shape outside flashinfer.autotune(True) and capture records the default tactic, defeating the prewarm on the hosted FLUX NVFP4 path. Add the merged stream row count, or derive row counts from the affected layer activations.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The premise does not hold on flux: the policy's NVFP4 layers are single_transformer_blocks.*.norm.linear, AdaLayerNormZeroSingle's linear over the timestep embedding, so the merged stream never reaches a quantised GEMM there and the row count is the batch size, which the prewarm seeds. An untuned shape under capture takes flashinfer's default tactic, a speed difference only.

Comment on lines +322 to +325
"z-image": _AutoPrefer(
floor = (10, 0), schemes = (TQ_FP8, TQ_NVFP4, TQ_MXFP8, TQ_INT8), gated = True
),
"flux.1": _AutoPrefer(floor = (10, 0), schemes = (TQ_FP8, TQ_NVFP4, TQ_MXFP8, TQ_INT8), gated = True),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Require FP8 support before selecting a mixed NVFP4 policy

For gated Z-Image and FLUX.1 loads, AUTO reaches nvfp4 precisely after the FP8 smoke probe fails, but these policy artifacts are predominantly FP8 (237 and 461 FP8 linears respectively). The selector then probes only whole-model NVFP4 support and can choose the mixed checkpoint even though the same FP8 execution path it embeds was just proven unusable, causing the first FP8 policy layer to fail or produce the non-finite output that made the FP8 rung fall through. Offer policy NVFP4 only when both the NVFP4 and FP8 smoke probes pass.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

A gated row is ordered fp8 then nvfp4, so auto reaches the policy artifact exactly when the fp8 probe declines; requiring that probe would make the hosted z-image and flux checkpoints explicit-only, which is a design choice rather than a triage fix. An install whose torchao lacks the activation floor also cannot unpickle the artifact's fp8 half (the required globals include the fp8 kwargs class), so it falls to dense rather than rendering black.

Comment on lines +308 to +312
regressed = sorted(
(fqn for fqn, score in scores.items() if not score.get("improved")),
key = lambda fqn: (scores[fqn].get("ratio") is None, scores[fqn].get("ratio") or 0.0),
)
allowed = regressed[: max(0, int(max_regressions))]

@danielhanchen danielhanchen Sep 10, 2026 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Needs a non-finite error that nothing has observed, plus a non-default opt-in setting above zero; the default path already skips such a layer.

Comment on lines +207 to +213
def normalised(self) -> dict:
"""``{fqn: H / rows}``, divided per layer, since rows differ under an attention trim."""
out: dict = {}
for fqn, hessian in self.hessians.items():
rows = max(1, int(self.samples.get(fqn, 0)))
out[fqn] = hessian / rows
return out

@danielhanchen danielhanchen Sep 10, 2026 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The shipped builds only touch the policy's NVFP4 set (34 to 120 layers), so the transient copy stays far under the budget beside the dense DiT on the cards the builds run on.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex security review

danielhanchen added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Sep 10, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 10, 2026
danielhanchen added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Sep 10, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review

Security review completed. No security issues were found in this pull request.

Reviewed commit: 317ff59314

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 98bbea407d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +216 to +218
for rule in policy.rules:
hits = sorted(fqn for fqn in admitted if fqn not in assignment and rule.matches(fqn))
if len(hits) != rule.expect:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve policy matching through LoRA wrappers

When a nonzero LoRA is requested with NVFP4, _load_dense_quant_pipeline attaches PEFT adapters before calling this policy code, so each targeted linear is renamed under a .base_layer child and additional lora_A/lora_B linears appear. The exact suffix checks here consequently find zero policy targets, and even normalized suffixes would fail the aggregate count because adapter linears are included as BF16; PolicyMismatch is then caught by quantize_transformer, causing the requested NVFP4+LoRA load to fail or fall back instead of quantizing the frozen base layers. Match policy names through .base_layer while excluding adapter-side linears from the policy counts.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

NVFP4 with a LoRA is refused upstream: supports_lora lists nvfp4 and mxfp8 as blocked and the load fails with the message naming the int8 and fp8 builds, so the policy mismatch is the refusal the design already prescribes rather than a wrong outcome on a supported request.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

danielhanchen added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Sep 10, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 10, 2026
danielhanchen added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Sep 10, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2916d04ed8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +91 to +93
def forward(self, x):
shape = x.shape
flat = x.reshape(-1, self.in_features)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Keep protected dequantization out of CUDA graphs

When step protection is enabled together with the default/max CUDA-graph path, this full-weight dequantization executes while GraphedForward._capture is recording the protected branch. CUDA graphs retain the storage addresses needed for replay in their graph pool, so the dense BF16 weight and its larger decoding workspaces cease to be transient and add a persistent dense-weight-sized allocation to a load planned around packed NVFP4 residency; tight-card loads can therefore lose much of the memory saving or fail during the first protected capture. Run protected calls eagerly, or explicitly account for and reuse a bounded graph workspace.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Measured on a B200 with real flashinfer layers under capture: the retained pool growth is identical at 2 and 16 layers of one shape (218 MiB) and at 6 and 18 layers over four shapes (1010 MiB), so the pool reuses one layer's transients per distinct shape rather than keeping every dense weight. Bounded and only on an env-gated lever that is off by default; the fp32 dequant workspace is worth chunking separately.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

…he card tag resolves

A GGUF load that names no base_repo takes it from the repo card at load
time, but the network-free route gate saw no base and refused NVFP4
under the Qwen-Image family deny that the Qwen-Image-2512 gate record
lifts. When the family denies NVFP4 and the base is not known yet, judge
the scheme on the base a passing record covers; the loader still refuses
any other base once the card resolves.
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 25, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: db09b5566c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

The gate loader caches on (path, mtime_ns, size). The test rewrote one
path three times and its first and third documents are the same size,
so on Windows' coarse write clock the third read served the first
document and the test failed there. Write the two flux documents to
separate files.
chatgpt-codex-connector[bot]

This comment was marked as resolved.

… too

On max, automatic dynamic generalises the sequence length at the first
new resolution, and a torchao fp8 FLUX single block then raises inductor
CantSplit (reproduced on a real-dimension block: 4096 -> 1024 image
tokens), dropping the DiT to eager for the session. Compile that case
static, as the default tier already does; bf16 keeps automatic dynamic,
which handled the same shapes.
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: 817b602e3a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

danielhanchen and others added 11 commits September 25, 2026 06:59
Add --component (default transformer) for the subfolder, metadata and upload name,
and resolve video families so the Wan and HunyuanVideo denoisers can be built.
@shimmyshimmer

Copy link
Copy Markdown
Member

@codex review

1 similar comment
@shimmyshimmer

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

Reviewed commit: 232952b65d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants