Repository navigation
Video: verify the H3 denoiser artifact before the pull drops its dense shards - #8337
Merged
Merged
Conversation
…and optimise the partition the load denoises with
Member
Author
|
@codex review |
1 similar comment
Member
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. 🎉 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #8329, which merged before the last review round landed. Two fixes, both on the reference (ref2va) denoiser path.
The pull can drop the dense shards for an artifact that does not exist
_run_loadsetskip_transformer_weightsfrom_denoiser_prequant_covered, a registry-only probe. The plan already gates its own skip on the artifact resolving (dq_repo), and both encoder skips next to it gate on the checkpoint actually landing, but the load path had no equivalent.A task-specific
prequant_filenamesrow gets no filename fallback, so a Ref2VA checkpoint that is renamed, unpublished or gated resolves to nothing while the registry still reports the scheme as covered._predownload_basethen removed every densetransformer_refweight beforeload_prequantized_transformerhad established a replacement, so the documented bf16 fallback ran against a snapshot without them: an offline or pre-staged load fails, and an online one pulls ~66 GB inline, outside the load progress, the cancel path and the disk preflight._denoiser_prequant_verifiedis the registry probe plus the Hub check, in the same shape as_h3_te_quant_scheme_verifiedbeside it and with the same fail-closed direction: unanswerable keeps the dense shards.The reference partition never reached the optimisation helpers
apply_attention_backendandapply_speed_optimsreach the denoiser throughpipe.transformer, and both enumerate onlytransformer,transformer_2andunconditional_transformer. A reference load denoises out oftransformer_ref, so neither helper found a DiT at all.This used to be hidden: the pin read
getattr(pipe, "transformer"), found nothing on a reference load, and the profile was downgraded to eager. #8329 correctly pinned the partition the load opens, which removed that downgrade and left the reference DiT native and uncompiled while the resolved record still reported the requested profile - the exact over-reporting_denoiser_ditsand_attention_ditsdocument as the thing to avoid._NamedDiTViewgeneralises the existing_SecondDiTViewseam: it presentspipe.<component>aspipe.transformerand reads everything else through. A keyframe load is handed the pipe itself, so its behaviour is unchanged.Tests
Four added in
studio/backend/tests/test_video_backend.py, two of them AST-based:_run_loadgates its dense skip on the verified probe, not the registry-only one;_denoiser_viewmakes the reference DiT visible to_denoiser_dits/_attention_dits, passes writes through to the real partition, and returns the pipe unchanged for a keyframe load;Each was mutation-checked: reverting either fix fails its tests, restoring it passes.
414 passed across the prequant, video, routes and speed test files; backend and hub suites show no new failures against main.