Repository navigation
Conversation
The installation owner can now set HF_ENDPOINT in Settings > General, and choose whether HF_DATASETS_SERVER follows it. The saved value is applied at startup before huggingface_hub is imported, and on save it refreshes the endpoint copies huggingface_hub and datasets captured at import, so downloads and new workers use it without a restart. Until the owner saves, the operator's environment stays in effect. Hub answers that decide access, trust or token validity are now remembered per endpoint, and each probe asks the endpoint its answer is filed under: public-repo verdicts and their persisted proofs, per-token repo access, token validation, trusted-org remote-code trust, and the auto-download "not servable" memo. Public-repo proofs recorded by earlier versions are attributed to the environment's endpoint at startup.
The owner can switch the model source to ModelScope with `PUT /api/settings/hub/source`; the choice is saved and applied at startup and on save, like the custom Hugging Face endpoint. With ModelScope selected, `HF_ENDPOINT` points at a small read-only Hugging Face Hub API served over ModelScope's public API, so huggingface_hub, datasets, download workers and the Hugging Face cache layout keep their single code path. The adapter answers the routes those clients use: model and dataset search, info (commit sha from ModelScope's git ref advertisement), tree, paths-info, resolve, auth-check and a reachability root; writes are refused. Resolve redirects to a commit-pinned ModelScope URL, HEAD included, so downloaded bytes always match the reported commit. ModelScope's own `dataset_infos.json`, which `datasets` cannot parse, is hidden from dataset repos. The adapter is served twice: on a loopback-only listener with its own thread and event loop, used as `HF_ENDPOINT` by the backend and its workers, and at `/api/hub/modelscope` for the browser. There the catalog needs a signed-in session, small files are relayed to signed-in callers (the browser cannot follow a cross-origin redirect), and anonymous resolves (README images) redirect without any upstream lookup. `/api/health` reports `hub_source`, while the reported endpoints and the page CSP stay on huggingface.co. A ModelScope `org/name` says nothing about the same-named Hugging Face repo, so while ModelScope is the source no repo counts as public for managed accounts, managed-account downloads are refused, and Hugging Face organisation trust never auto-enables `trust_remote_code`. The applied source is carried in `UNSLOTH_STUDIO_HUB_SOURCE`, so spawned workers apply the same gates. If the adapter cannot start, the backend stays on Hugging Face.
Adds a "Model source" choice (Hugging Face or ModelScope) to the Model hub section in General settings. The owner can switch there, or with a "Use ModelScope" button that the model hub shows the owner when Hugging Face cannot be reached. The choice is saved on the backend, so it persists across restarts and applies to every browser. With ModelScope selected, `/api/health` reports `hub_source`, and the browser's Hub client is pointed at the backend's `/api/hub/modelscope` mount. It is same-origin, so no CSP change or reload is needed. Requests to that mount carry the Unsloth session instead of the Hugging Face token, chosen by the request's destination so a request queued before a switch still authenticates correctly. A 401 from the mount refreshes the session once and retries. The mount now answers a browser resolve carrying a rejected session with a 401 instead of redirecting, because the page cannot read a cross-origin redirect and so could never refresh. Switching back to Hugging Face with a custom endpoint saved asks for a reload, since a page served under ModelScope does not allow that endpoint's origins. The catalog's error states, toasts, picker tab and "Open on" links name the active hub. New strings are translated in all locales; the German hub copy now uses the formal address like the rest of that locale.
A custom endpoint or datasets server saved in Settings reached the browser only after a reload, and never in the desktop app, whose webview CSP is built at launch from the environment. The backend now relays browsing to the configured endpoint at /api/hub/proxy/<tag> and /api/hub/datasets-server-proxy/<tag>, where the tag names the endpoint so caches keyed on the Hub URL follow a change. /api/health reports the relay paths, the frontend's Hub fetch sends the Unsloth session with the Hugging Face token beside it in X-HF-Authorization, and CORS exposes the Hub headers to the desktop app. The reload and desktop notices in Settings are removed.
When the datasets-server has no answer for a dataset (a custom mirror, ModelScope, or an unprocessed repo), the subset/split selector now asks a new backend route, POST /api/hub/datasets/hub-options, which resolves the builder configs from the repo files through HF_ENDPOINT, as training does, without reading rows. Under ModelScope the datasets-server is skipped for split options, size stats and example thumbnails, since it only knows Hugging Face repo ids.
…e serves The endpoint and datasets-server rows apply only to Hugging Face, so Settings hides them while ModelScope is the active source, and Settings search no longer offers them there. A ModelScope that failed to start falls back to Hugging Face and keeps the rows. A failed source switch now reports under the source row. The unused endpointInactive string is removed from every locale.
…ed lists An empty Recommended list in the model picker used to read "No models found." even when the search failed or the hub was backing off. Both the browse and search views now show the hub failure hint with a retry that clears the backoff, and offer ModelScope when Hugging Face is unreachable. The ModelScope offer in the model hub is now limited to network failures too: a reachable hub answering an HTTP error such as 401 shows its message instead of a connectivity diagnosis.
… Hugging Face ids Several presets are hosted on ModelScope by another organisation, so the ModelScope source answered 404 for them, including the default speech-to-text model (unslothai/Qwen3-ASR-0.6B-GGUF is ggml-org/Qwen3-ASR-0.6B-GGUF there), MiniMax video and music, MOSS TTS and its codecs, a FLUX ControlNet, and nine curated datasets such as openai/gsm8k. The ModelScope adapter now maps those Hugging Face ids to the ModelScope copy on every upstream request (git refs, file lists, detail, resolve and repo pages) and answers under the Hugging Face id, so presets, companion downloads and datasets work unchanged and the cache keeps Hugging Face-named folders. The table lists only organisation-owned copies whose files all match by LFS sha256 (by size where Hugging Face masks a gated repo's hashes). Lookup ignores case, as Hugging Face ids do. Search results are not aliased.
ModelScope keeps its own git history, so a commit pinned on Hugging Face does not exist there. Under the ModelScope source, OuteTTS failed to fetch its DAC codec (ibm-research/DAC.speech.v1.0 pinned at 1ea7f64c). The adapter now maps a listed pinned commit to the ModelScope commit whose loaded files match (for DAC, 3268c083, where both weight files have the same sha256 and size). It answers a full-sha request under the requested commit, so huggingface_hub caches the pin as that snapshot and reuses it offline, while the bytes come from the mapped commit. Anonymous browser redirects map the pin too. Unlisted pins are not remapped: a pin guards remote code and reproducibility, so there is no fallback to the default branch.
With ModelScope as the model source, presets that ModelScope does not host (whisper.cpp dictation, Orpheus's SNAC codec, several Unsloth datasets) failed with misleading text such as "Download failed for 'tiny'.", "Model 'orpheus-3b-0.1-ft' not found" or "private or gated". The adapter's missing-repo answer now reads "<repo> is not on ModelScope. Switch the model source to Hugging Face in Settings to use it.", and every place that reports a Hub failure (model loads, dictation downloads, TTS codecs, dataset options and format checks, GGUF variants, downloads, image and video loads) surfaces that sentence instead of its generic message. A GGUF TTS codec failure keeps the sentence per load request, so a concurrent load or the tensor-parallel retry cannot drop it.
|
@codex review |
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d8484c8e38
ℹ️ 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".
…elScope serves With ModelScope as the model source, HF_ENDPOINT points at the ModelScope adapter, which has no whoami route, so every Hugging Face token in settings was reported as unavailable and each check spent one of the hourly validation attempts. Token validation now asks the Hugging Face endpoint the settings select.
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ac7795f3a0
ℹ️ 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".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ac7795f3a0
ℹ️ 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".
… Hub relay The custom-endpoint relay decoded each path segment before rejecting dot segments, so a request such as a%2F..%2Fb passed as one segment while an endpoint that decodes separators could still resolve it outside its path prefix. Decoded segments are now split again before the check; encoded revisions such as refs%2Fpr%2F1 still pass.
…dpoint With a custom Hugging Face endpoint the browser reaches it through the backend relay, which answers its own 502 when the endpoint is unreachable. The page read that as a reachable hub returning an HTTP error, so the Use ModelScope switch never appeared for an unreachable mirror. The relay's own 502, which lacks the upstream marker header, now fails like a direct network error.
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7b68fab29c
ℹ️ 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".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7b68fab29c
ℹ️ 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".
|
@codex review |
|
Codex Review: Didn't find any major issues. Hooray! 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". |
|
@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". |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 786bdcc8a1
ℹ️ 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".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5236a86040
ℹ️ 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".
|
@codex review |
|
Codex Review: Didn't find any major issues. Nice work! 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". |
|
Codex converged and CI passed at 5236a86; results posted on unslothai#11761. |
…lt bump, H3 tiled VAE overlap (unslothai#17788) ## Summary Three things that only make sense together: 1. MiniMax-H3-Image GGUFs (`unsloth/MiniMax-H3-Image-GGUF`) run on stable-diffusion.cpp, so the model works on CPU, Macs, smaller GPUs and AMD next to the existing diffusers pipeline (which needs an NVIDIA or AMD GPU). 2. The stable-diffusion.cpp prebuilt pin moves from `master-982-0518b34-u67cba2c` to `master-982-0518b34-u2217753`, the release built from fork master `2217753` (unslothai/stable-diffusion.cpp#88). The old pin has no MiniMax-H3-Image at all, so (1) needs this bump. 3. MiniMax-H3 video passes `--vae-tile-overlap 0.25` whenever Studio adds `--vae-tiling`, so a tiled decode uses the reference tile layout instead of extra tiles. ## The pin bump Fork commits between `67cba2c` and `2217753` that matter to Studio: - MiniMax-H3-Image (leejet/stable-diffusion.cpp#2324, merged into the fork with the release tile layout, reference sizing and edit encoding fixes, plus computing only the PDD heads a step blends). - MiniMax-H3 reference parity (#88): each label, timestamp and the prompt tokenized on its own; RoPE positions in double; the simple schedule step in double; res_multistep on the simple schedule as the H3 video default; bilinear vision resize; the reference VAE tile layout for encode and decode; an uncompressed AVI output (`--lossless-video`, sd-server `output_format: avi_raw`) and explicit soundtrack pairing (`--ref-video-audio-index`). - CPU and Wan VAE speedups and fixes (unslothai/stable-diffusion.cpp#77, #79, #82, #83, #85, #86, #87). Studio already gates its H3 parity features on the binary: the lossless handoff (`sd_cpp_supports_lossless_video`, `h3_server_output_format`) and explicit soundtrack pairing (`sd_cpp_supports_ref_video_audio_index`) read `--help` and the server's format list. On the old pin they stay off; on the new one they switch on with no further Studio change. Asset names are unchanged: the release ships the same 12 bundles plus `sd-prebuilt-manifest.json` and `sd-prebuilt-sha256.json` as the current pin, so the installer picks the same bundle on every host. Tests that pin the release name and its asset list point at the new tag; `test_sd_cpp_args.py` keeps the old pin in its list of builds that support `--mmap`. ## The tile overlap The H3 VAE tiler in the new build reads `--vae-tile-overlap` as the minimum overlap fraction of its 256 px tiles and defaults to 0.5 once `--vae-tiling` is on. The reference layout uses 64 px, which is 0.25. Studio tiles the H3 VAE in the low VRAM memory mode (`offload_flags` with the model policy), so that mode would have decoded more tiles than the reference. `with_h3_vae_tile_overlap` (in `sd_cpp_args.py`) adds `--vae-tile-overlap 0.25` to the H3 native flags whenever they contain `--vae-tiling` and set no overlap. Every sd.cpp build accepts the flag, so no capability gate is needed. ## MiniMax-H3-Image GGUF wiring Backend (`studio/backend`): - `diffusion_families.py`, MiniMax-H3-Image row: - GGUFs are native only (`native_transformer_files_only`), the rule MOSS-Image uses: a GGUF goes to sd.cpp on every host, the pipeline repo stays on diffusers. - `single_file_loadable = False`: a loose `.safetensors` DiT is still refused on both engines, as `pipeline_only` refused it before. - sd.cpp assets: the release image VAE (`MiniMaxAI/MiniMax-H3-Image`, `vae/diffusion_pytorch_model.safetensors`) and the H3 Qwen3-VL-32B encoder GGUF (`unsloth/MiniMax-H3-GGUF`, `qwen3vl_32b_minimax_h3-Q4_K_M.gguf`), which carries the vision tower an edit reads. - `sd_cpp_arch_marker = "MiniMax-H3-Image"`: older builds are refused before eviction with a clear message. - `sd_cpp_reference = True`: `<Picture N>` edits, up to 16 pictures as on diffusers. - Sampler `euler` with no scheduler, shift or sigmas: sd.cpp's own H3-Image schedule is the 6-step PDD grid. - New `sd_cpp_rng` field, `cpu` here, so a seed renders what the model card's `sd-cli` command renders. It reaches the sd-server spawn, every restart and the one-shot sd-cli path. - `diffusion.py`: the CPU / Apple Silicon refusal applies only to the pipeline load and points at the GGUF repo; the native-only refusal names the first upstream build per family. - `sd_cpp_companion_only_repo_ids`: video family repos stay loadable models, so `unsloth/MiniMax-H3-GGUF` is not hidden as an encoder-only companion. Frontend: a GGUF row in the MiniMax-H3-Image group (`model-catalog.ts`); on Mac and CPU hosts the dense row is not offered (`host-artifact-policy.ts`). ## Testing End to end on one Colab G4 session (RTX PRO 6000 Blackwell, 96 GB, torch 2.14.1+cu130). Each arm installs sd.cpp with its own `install_sd_cpp_prebuilt.py` (CUDA 13 bundle) and is driven through Studio's HTTP routes. BASE = main at `fd7f6adf5b`, HEAD = this branch. Installed builds (`--help` probe on the installed `sd-cli`): | arm | tag | `--lossless-video` | `--ref-video-audio-index` | `--audio-flow-shift` | `--vae-tile-overlap` | |---|---|---|---|---|---| | BASE | `master-982-0518b34-u67cba2c` | no | no | no | yes | | HEAD | `master-982-0518b34-u2217753` (commit `2217753`) | yes | yes | yes | yes | | run | arm | result | time | peak VRAM | evidence | |---|---|---|---|---|---| | H3-Image GGUF `UD-Q4_K_XL`, download plan + load | BASE | refused, HTTP 400 | 0.9 s | n/a | "'minimax-h3-image' GGUF files are not supported yet; load its .safetensors single file instead." No download starts. | | same | HEAD | loaded on `sd_cpp` | 117 s (34.16 GB download included) | n/a | plan: DiT 13.61 GB, release image VAE 2.34 GB, `qwen3vl_32b_minimax_h3-Q4_K_M.gguf` 18.22 GB | | text-to-image 1024x1024, 6 steps, seed 1234 | HEAD | PNG, 1.99 MB | 4.0 s | 31.6 GB | `t2i_p0.png` | | edit (`examples/reference1.png` + `prompt.edit.txt`), 1024x1024 | HEAD | PNG, 1.69 MB | 6.0 s | 34.0 GB | `edit_e0.png` | | MiniMax-H3 video GGUF `UD-Q3_K_XL`, memory auto, 1344x768x124, 4 steps | HEAD | MP4, 2.27 MB | load 59 s, render 60 s | 36.7 GB | probes `sd_cpp_supports_lossless_video` true, `sd_cpp_supports_ref_video_audio_index` true, `h3_server_output_format` = `avi_raw`; the container sd.cpp handed over before the MP4 export is a 385 MB AVI with `rawvideo` + `pcm_f32le` | | same, memory `low_vram` | HEAD | MP4, 2.22 MB | render 63 s | 20.4 GB | sd-server argv: `--offload-to-cpu --clip-on-cpu --diffusion-fa --vae-tiling --vae-tile-overlap 0.25 --max-vram 93.58 -v --rng cpu`; same raw AVI handoff | The BASE refusal needs transformers in the environment (without it BASE stops one check earlier, on the transformers version), so the run installs transformers 4.57.6. Text encoder: the reference workflows use an int8 Qwen3-VL-32B encoder. `unsloth/MiniMax-H3-GGUF` publishes only `qwen3vl_32b_minimax_h3-Q2_K_M.gguf` (13.10 GB) and `qwen3vl_32b_minimax_h3-Q4_K_M.gguf` (18.22 GB), no Q8_0, so Q4_K_M stays the H3-Image default (the encoder is the reference's own 50-layer truncation, so a stock Qwen3-VL-32B Q8_0 is not a substitute). The H3-Image render quality numbers from the wiring run on the previous fork branch build (L4, seed 1234, 1024x1024, 6 steps, LPIPS against bf16 sd.cpp renders on an A100): text-to-image warm 9.5 s/image (0.159 / 0.175), first request after load 110.6 s (0.165), edit 36.2 s (0.027), low_vram first request 164.3 s (0.140); the A100 `sd-cli` render of the same file scores 0.164 to 0.175 and 0.028 on the edit. Unit (CPU): - New `tests/test_sd_cpp_minimax_h3_image.py` (31 tests): routing on cuda / cpu / mps, refusal of a build without the marker, the diffusers GGUF refusal, the single-file refusal, asset specs, `--rng` on both builders, the video repo staying a model, all 14 file names resolving to the image family, the default quant pick. - New `tests/test_h3_vae_tile_overlap.py` (8 tests): the overlap follows `--vae-tiling` only, an explicit overlap is kept, per memory mode policy (only the model policy tiles, with `--vae-tiling --vae-tile-overlap 0.25` adjacent), the pair survives the resident / offloaded render choice and the host memory fit, and the H3 native loader builds its flags through the helper. - The sd.cpp, H3, video, MiniMax-H3 diffusion, media auto-switch and families suites (`test_sd_cpp*`, `test_h3*`, `test_video*`, `test_diffusion_minimax_h3*`, `test_media_auto_switch`, `test_diffusion_more_families`): 6746 passed, 203 skipped on this branch; 6710 passed, 203 skipped on main. The failures are the same IDs on both: `test_h3_ref_encode.py::test_chunked_reference_matches_stock_bit_for_bit` (4 params), 3 in `test_video_needs_ffmpeg.py` (no ffprobe on the host) and an error in `test_sd_cpp_cuda_cpu_torch.py::test_selection_installs_the_cuda_build`. 4 `test_video_routes.py` generate-failure tests failed once under xdist on this branch only and pass serially on both (87 / 87). - Frontend: `tests/minimax-h3-image-ui.test.ts` 8 / 8, `model-catalog.check.ts` passes, `model-catalog-network-budget` 2 / 2, `on-device-dot-and-header-alignment` 24 / 24. ## Not covered - Apple Silicon / Metal, Windows, ROCm and Vulkan were not run with the new build. - Only `UD-Q4_K_XL` of the image GGUFs ran end to end. - The picker sizes GGUF rows by the DiT file alone; the encoder and VAE are not counted, so on 32 GB hosts the fit badge reads optimistic. - sd.cpp renders at the requested size, while the pipeline renders anything under 4 MP on a 4 MP canvas, so sub-4 MP sizes differ between the two engines. ## Screenshots Images model picker on a CPU-only host, before and after: the MiniMax-H3-Image pipeline row (needs CUDA or ROCm) is no longer offered there; the MiniMax-H3-Image-GGUF row, which now runs on stable-diffusion.cpp, is the one that loads. 
Staging copy of unslothai#11761 for Codex review and CI. Base is the upstream PR merge base, so the diff is exactly the PR. Head is identical to the upstream PR head (
d8484c8e38). Do not merge; closed once Codex converges and CI finishes.Summary
Unsloth Studio can now pull models and datasets from ModelScope when Hugging Face is blocked or slow, and the owner can set a custom Hugging Face endpoint (for example a mirror) in Settings. Before this, the only option on a network that blocks huggingface.co was starting the server with
HF_ENDPOINTset, and even then the browser-side catalog, the dataset split picker and several loaders did not follow it.What changed
HF_ENDPOINT/HF_DATASETS_SERVERand refreshes the valueshuggingface_hubanddatasetscapture at import. Workers started afterwards inherit the change. An operator-setHF_ENDPOINTstays in effect until the owner saves.HF_ENDPOINTpoints at a loopback listener, and the browser uses an authenticated mount on the backend origin. Catalog search, model and dataset info, trees,paths-infoandresolvekeep their single Hugging Face code path, so downloads, the cache layout (models--org--name), inventory, chat and training loaders, subprocess workers anddatasetswork unchanged. Branch heads come from git's ref advertisement. Writes are refused with an explanation, and managed-account downloads are refused under ModelScope, so a same-named private Hugging Face snapshot cannot be unlocked by a ModelScope answer.openai/gsm8k,tatsu-lab/alpaca) to their ModelScope organisation copies. Each copy's files match by LFS sha256 (or by size for non-LFS files), and the result is served under the Hugging Face id, so the cache folder and every caller are unchanged. One hash-pinned Hugging Face commit that ModelScope's history lacks (the DAC speech codec OuteTTS loads) maps to a ModelScope commit whose loaded files match. It is answered and cached under the requested pin, so offline reuse works.<repo>is not on ModelScope. Switch the model source to Hugging Face in Settings to use it." Every place that reports a Hub failure surfaces that sentence instead of its generic text: model loads, dictation downloads, TTS codecs, dataset options and format checks, GGUF variants, download jobs, and image and video loads. Previously users saw messages such as "Download failed for 'tiny'.", "Model 'orpheus-3b-0.1-ft' not found" (naming the wrong repo), or "private or gated".