Repository navigation
Studio video: MiniMax-H3 cache-only loads name the missing file and how to fix it - #15547
Merged
Merged
Conversation
A cache-only H3 load (offline, or an API auto-switch) whose VAEs were cached under the pre-#14003 names failed with huggingface_hub's bare LocalEntryNotFoundError. Map that miss to an error naming the component and file, and telling the user to load H3 once while online. Online loads and unrelated errors are unchanged.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This was referenced Oct 27, 2026
Closed
Member
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. Breezy! 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.
Replaces #14698 with a much smaller change.
Problem
Users who installed MiniMax-H3 before #14003 have the VAEs cached under the old names. Since #14003 the native H3 load looks them up under
vae/official/..., so a cache-only load fails with huggingface_hub's bareLocalEntryNotFoundError. That message does not say which file is missing or how to recover.Cache-only loads are offline hosts and API-triggered auto-switch loads (
media_auto_switch.pyloads withlocal_files_only = not user_initiated, passed throughroutes/video.py). A single online, user-started load fixes the cache.Fix
In the native H3 download loop (
_run_load_h3_native), when the load is cache-only and the fetch fails with a local cache miss (detected with the existingVideoBackend._te_fetch_miss), raise a clear error instead:The component name comes from the same file to role map
h3_download_erroralready uses (now a small shared helper). The original exception is kept as__cause__. The load worker storesstr(exc)as the load progress error, so this text is what the UI and API show.Not changed: the #14003 policy (no reuse of old names or Comfy-cached bytes, no hashing, no snapshot scans), online loads, and every other error, which still goes through
h3_download_erroras before.Tests
New tests in
studio/backend/tests/test_sd_cpp_h3_matrix.pydrive_run_load_h3_nativewith the video VAE fetch failing:LocalEntryNotFoundError: raises the new message naming the file, and the text survives the load worker's error handling unchanged (fails on main, passes here)LocalEntryNotFoundError: the same exception object propagatesOSError: the same exception object propagatespytest -n 4overtest_sd_cpp_h3_matrix.py,test_video_backend.py,test_video_offline_load.py,test_h3_native_{server,resident,memory_fit,nonfinite}.py:test_h3_cache_only_load_names_the_missing_vae_and_the_fix)