Skip to content

Studio video: MiniMax-H3 cache-only loads name the missing file and how to fix it - #15547

Merged
danielhanchen merged 1 commit into
mainfrom
studio-h3-offline-miss-error
Oct 27, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
studio-h3-offline-miss-error

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

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 bare LocalEntryNotFoundError. 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.py loads with local_files_only = not user_initiated, passed through routes/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 existing VideoBackend._te_fetch_miss), raise a clear error instead:

MiniMax-H3 needs its video VAE (vae/official/minimax_h3_video_vae_fp16.safetensors) from unsloth/MiniMax-H3-GGUF, and it is not in the local Hugging Face cache. This load may only use cached files (offline, or a load Studio started on its own), so it could not download it. Load MiniMax-H3 once while online (or reconnect) so Studio can fetch it; after that it loads offline.

The component name comes from the same file to role map h3_download_error already uses (now a small shared helper). The original exception is kept as __cause__. The load worker stores str(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_error as before.

Tests

New tests in studio/backend/tests/test_sd_cpp_h3_matrix.py drive _run_load_h3_native with the video VAE fetch failing:

  • cache-only load, LocalEntryNotFoundError: raises the new message naming the file, and the text survives the load worker's error handling unchanged (fails on main, passes here)
  • online load, LocalEntryNotFoundError: the same exception object propagates
  • cache-only load, unrelated OSError: the same exception object propagates

pytest -n 4 over test_sd_cpp_h3_matrix.py, test_video_backend.py, test_video_offline_load.py, test_h3_native_{server,resident,memory_fit,nonfinite}.py:

failed passed
main + new tests 1 (test_h3_cache_only_load_names_the_missing_vae_and_the_fix) 890
this branch 0 891

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.
@danielhanchen danielhanchen self-assigned this Oct 27, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 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-10-27T12:20:32.592370Z b4f47b8 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

Copy link
Copy Markdown

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

Reviewed commit: b4f47b8c8f

ℹ️ 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
danielhanchen merged commit f55886c into main Oct 27, 2026
36 of 43 checks passed
@danielhanchen
danielhanchen deleted the studio-h3-offline-miss-error branch October 27, 2026 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant