Repository navigation
Studio: fetch the gated diffusion bases from ungated unsloth mirrors - #7952
Conversation
A GGUF or FP8 pick ships only the denoiser, so the VAE, text encoder, tokenizer and scheduler still come from the base repo. Twelve of those bases are Hub-gated, which means picking unsloth/FLUX.1-dev-GGUF died on a 401 for a repo the user never chose. There are now byte-identical ungated mirrors of all twelve under unsloth/*, so prefer them when fetching. The substitution is invisible: the upstream id stays what the UI shows, what saved configs hold and what a trained LoRA's base_model tag records, and only the fetch is redirected. The swap deliberately does not live in resolve_base_repo. Two tables are keyed on upstream ids, and assert_flux2_gguf_matches_base fails OPEN on an unmapped base, so a mirror id reaching _FLUX2_BASE_INNER_DIM would disable the shape guard in silence and bring back the bare "24576x4096 vs 18432x3072" quantizer error it was written to replace. So mirror_repo applies at fetch time and canonical_base normalises at every table lookup. Three ways to decline, each landing on exactly the previous behaviour: the UNSLOTH_DIFFUSION_NO_MIRROR escape hatch, an upstream already in the cache (switching would re-pull tens of GiB for nothing), and a mirror that does not answer. Tests cover the swap, all three declines, and that the FLUX.2 shape guard still raises through a mirrored base. That last one asserts the raise rather than the absence of a crash, since a fail-open guard passes a weaker check either way.
The first pass substituted the mirror inside _resolve_base_repo, which put it into kwargs["base_repo"] and onto the load state, so status() reported unsloth/FLUX.1-dev for a pick the user made as black-forest-labs/FLUX.1-dev. The swap is meant to be invisible. test_resolve_base_repo_drops_untrusted_card_tag caught it. _resolve_base_repo now returns the upstream id and the swap moved to the three places that actually pull bytes: _prefetch_files, _assemble_pipe, and the from_pretrained fallback that fires when the prefetch staged nothing. _estimate_download_bytes deliberately does NOT swap. The Hub gates only the byte endpoint, so model_info answers for a gated base anonymously, and the mirrors are byte-identical, so sizes and the file list are the same either way. Leaving it upstream also keeps the download-plan tests honest about which repo is being sized. The sd.cpp edit was in the wrong place: that backend never fetches from base, it fetches fam.sd_cpp_vae and fam.sd_cpp_text_encoders, and the FLUX.1 VAE lives in the gated FLUX.1-schnell repo. Swapping base there leaked the mirror into status without redirecting a single download. It now maps the asset repos in _fetch_assets instead. prefer_ungated_mirror is pure: a table lookup, an env read and a local cache stat. It previously probed the mirror with model_info and fell back on failure, but it runs inside pipeline assembly, so that put a Hub round trip on the load path and made the result depend on connectivity; unit tests were silently reaching the network. The twelve mirrors are ours and verified, so a missing one is our own doing and surfaces as the ordinary download error. 1317 diffusion and sd.cpp tests pass, hub 172.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f82cc63762
ℹ️ 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".
| ) | ||
| pipe = pipeline_cls.from_pretrained( | ||
| _base_local_dir or base, **pipe_kwargs | ||
| _base_local_dir or prefer_ungated_mirror(base, hf_token), |
There was a problem hiding this comment.
Mirror the single-file config fetch before loading
In the GGUF/transformer-only single-file branch, transformer_cls.from_single_file has already run with sf_kwargs["config"] = base before this mirrored from_pretrained call is reached. When the resolved base is a gated repo such as black-forest-labs/FLUX.1-dev and no HF token is supplied, that earlier config fetch still goes to the gated upstream and can 401 even though _prefetch_files cached the same files under the unsloth/* mirror. Mirror the repo used for the config argument, or pass the prefetched local snapshot there as well.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 465b135. Both from_single_file branches took config= from the gated base, and that fetch runs before the mirrored from_pretrained, so an anonymous user 401s there first. load_pipeline now resolves one fetch_base per load and every download in the load takes it, config= included.
| ("krea/Krea-2-Turbo", "unsloth/Krea-2-Turbo"), | ||
| ("krea/Krea-2-Raw", "unsloth/Krea-2-Raw"), | ||
| ("ideogram-ai/ideogram-4-fp8", "unsloth/ideogram-4-fp8"), |
There was a problem hiding this comment.
Use mirrors for per-component pipeline loads
These Krea and Ideogram mirror mappings are not used by their full-pipeline load path: when kind == "pipeline", load_pipeline still calls load_krea2_pipeline(repo_id, ...) and load_ideogram4_pipeline(repo_id, ...), and those helpers fetch each component from the argument repo. As a result, anonymous loads of krea/Krea-2-Turbo or ideogram-ai/ideogram-4-fp8 still hit the gated upstream and 401 despite the mirror being in the table. Pass _base_local_dir or prefer_ungated_mirror(repo_id, hf_token) into those per-component loaders too.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 465b135. Confirmed reachable: validate_load_request allows a pipeline pick of krea/Krea-2-Turbo and ideogram-ai/ideogram-4-fp8 (both are in _TRUSTED_NON_GGUF_REPOS), and both loaders fetch every component from the id handed to them. The single-file krea branch had the same gap. All four call sites now take fetch_base. Regression test: test_pipeline_kind_assembles_krea_and_ideogram_from_the_mirror.
| # The asset repos, not the base, are what this backend fetches, and some are gated: the | ||
| # FLUX.1 VAE comes out of black-forest-labs/FLUX.1-schnell. Redirect each to its ungated | ||
| # mirror where one exists. | ||
| assets = [(prefer_ungated_mirror(repo, hf_token), fn, kind) for repo, fn, kind in assets] |
There was a problem hiding this comment.
Track mirrored sd.cpp assets in the delete guard
After rewriting the asset repo here, the native backend downloads files under the mirror repo, but loading_repo_ids() and loaded_repo_ids() still report the original fam.sd_cpp_vae / text-encoder repos. For a FLUX.1 native load without a token, the VAE is cached under unsloth/FLUX.1-schnell, while the delete-cached guard only protects black-forest-labs/FLUX.1-schnell; deleting the mirror cache can remove files that one-shot sd-cli re-reads on later generations. Store/report the mirrored asset repos alongside the paths.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 465b135. Both guards now report the upstream and its mirror, so whichever of the pair the load wrote into is protected. Also swapped the assets once in _run_load so _set_expected_bytes sizes the same repos it downloads: paths-info, unlike model_info, 401s anonymously on a gated repo, so probing the upstream dropped the FLUX.1 VAE from the progress total.
|
|
||
| # Fetch the companions from the ungated mirror when there is one. Only the BYTES move; the | ||
| # caller keeps the upstream id for the load state and status(). | ||
| base = prefer_ungated_mirror(base, hf_token) |
There was a problem hiding this comment.
Mirror download-plan entries before staging
This mirror rewrite only happens inside the loader prefetch, but /images/download-plan still returns the unresolved gated base repo to the Hub download manager. For example, planning unsloth/FLUX.1-dev-GGUF anonymously still yields an entry for black-forest-labs/FLUX.1-dev, so the manager stages the gated repo and fails or asks for a token before the later loader path could use unsloth/FLUX.1-dev. Apply the same fetch-time mirror to the plan entries (while keeping the upstream size metadata if needed).
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 465b135. This was the one that bypassed the whole feature on the primary path. The base entry now names the repo the loader fetches from, decided from the same per-repo file list _prefetch_files uses so the manager cannot stage one repo and the loader download the other. Sizes still come from model_info on the upstream, which answers anonymously for a gated repo (verified: 200 with siblings and sizes).
|
|
||
| # Fetch the companions from the ungated mirror when there is one. Only the BYTES move; the | ||
| # caller keeps the upstream id for the load state and status(). | ||
| base = prefer_ungated_mirror(base, hf_token) |
There was a problem hiding this comment.
Account mirrored companion bytes in load state
After this assignment the companion blobs are downloaded under the mirror cache, but the rest of the diffusers load continues to record and plan against the upstream base. In the uncached gated-base case, load_progress() scans loading.base_repo and _plan_memory() scans _companion_cache_bytes(base), so the UI never counts the companion download and the memory planner can treat VAE/text-encoder weights as zero, choosing resident placement on GPUs that only fit with offload. Track the fetch repo or pass the local snapshot into these cache-accounting paths.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 465b135. _LoadingState carries a fetch_repo alongside base_repo, and load_progress plus the memory planner's companion and dense-transformer sizing all read it. base_repo stays the upstream id status() reports. Regression tests: test_load_progress_and_delete_guard_follow_the_mirrored_companion and test_plan_memory_sizes_the_mirrored_companion_cache.
| # The asset repos, not the base, are what this backend fetches, and some are gated: the | ||
| # FLUX.1 VAE comes out of black-forest-labs/FLUX.1-schnell. Redirect each to its ungated | ||
| # mirror where one exists. | ||
| assets = [(prefer_ungated_mirror(repo, hf_token), fn, kind) for repo, fn, kind in assets] |
There was a problem hiding this comment.
Mirror native download-plan asset repos
This rewrite only runs inside _fetch_assets, after /images/download-plan has already grouped and returned _asset_specs() repos. On a no-GPU/native FLUX.1 load, the plan still asks the Hub download manager to fetch black-forest-labs/FLUX.1-schnell for the VAE, which is gated and can fail anonymously, while the actual load would fetch unsloth/FLUX.1-schnell. Apply the same mirror substitution in download_plan/size planning so staging matches the loader.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 465b135. Same shape as the diffusers plan: download_plan groups the asset specs, then maps each repo through the swap before emitting entries, using the same per-repo file list _fetch_assets uses. The gated one here is the FLUX.1 VAE in black-forest-labs/FLUX.1-schnell. Regression test test_download_plan_and_fetch_assets_pick_the_same_repo pins that the two sides cannot diverge.
| blobs = ( | ||
| Path(active_hf_hub_cache()) / f"models--{repo_id.replace('/', '--')}" / "blobs" | ||
| ) | ||
| return blobs.is_dir() and any(blobs.iterdir()) |
There was a problem hiding this comment.
Don't let partial upstream caches disable mirrors
_upstream_is_cached returns true for any blob under the upstream repo. If a previous interrupted or tokened attempt left just one config or shard in models--black-forest-labs--FLUX.1-dev/blobs, anonymous loads stop using the mirror and the missing companion files are fetched from the gated upstream again, reintroducing the 401 this change is meant to avoid. Check that the required snapshot/files are complete, or only decline the mirror when the load can be satisfied from cache.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 465b135. The check now asks whether the load is satisfiable: a single snapshot revision must hold the exact files the caller is about to fetch, or at least one real weight file when there is no file list. Also scoped it to the revision refs/main names, because on a 401 the HEAD call fails and hf_hub_download resolves refs/ to one commit and returns its pointer or re-raises, so a complete but superseded revision would still have handed the loader a repo it cannot fetch from.
| # Everything below reads ``base`` only to FETCH companions, so the mirror applies here. | ||
| # It matters when ``base_local_dir`` is None: the prefetch staged nothing and this call | ||
| # would otherwise sweep the gated hub id and 401. | ||
| base = prefer_ungated_mirror(base, hf_token) |
There was a problem hiding this comment.
Canonicalize mirrored bases for TE checkpoint validation
When the dense-quant assembly path runs with text_encoder_quant='fp8' for FLUX.1-dev, this rewrites base to unsloth/FLUX.1-dev before te_prequant_pipe_kwargs validates the hosted T5 checkpoint. That validator's equivalence group contains the upstream FLUX.1 ids, not the mirrors, so it rejects the pre-cast encoder; because the fp8 plan skipped the dense text_encoder_2 shards, the later local from_pretrained has neither TE source available. Keep a canonical/upstream id for TE validation/config while using the mirror only for bytes.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 465b135, though the mechanism is not the one described. Every mirror keeps the upstream repo NAME, and te_base_equivalent first tries _same_base_model, which compares the last path segment, so black-forest-labs/FLUX.2-dev against unsloth/FLUX.2-dev already returned True and the fp8 encoder was accepted. The reachable failure is the cross-repo case: the T5-XXL artifact is baked on black-forest-labs/FLUX.1-schnell and served to FLUX.1-dev through the equivalence group, which holds upstream ids only, so a mirrored dev base fell out of the group and lost the pre-cast encoder. Verified both before the fix (True for the same-name pair, False for schnell against unsloth/FLUX.1-dev). Both sides now normalise through canonical_base, and I did the same for the DiT prequant base_model_id check, which was relying on the tail compare for the same reason. Note the load did not end with no TE source either way: with nothing injected, from_pretrained just pulls the dense encoder inline, which is the slow path, not a failure.
| # Everything below reads ``base`` only to FETCH companions, so the mirror applies here. | ||
| # It matters when ``base_local_dir`` is None: the prefetch staged nothing and this call | ||
| # would otherwise sweep the gated hub id and 401. | ||
| base = prefer_ungated_mirror(base, hf_token) |
There was a problem hiding this comment.
Mirror dense-transformer fetches before quantizing
For GGUF loads where transformer_quant engages or a LoRA bake is requested, _load_dense_quant_pipeline fetches the dense/prequant transformer from base before _assemble_pipe applies this mirror. With a gated base and no HF token, that transformer fetch still goes to the upstream repo; for nonzero baked LoRAs the GGUF fallback is disallowed, so the load fails even though the mirror has the same transformer shards. Resolve a fetch repo before the dense/prequant transformer loads as well.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 465b135. _load_dense_quant_pipeline now takes fetch_base and uses it for both downloads it makes, the dense transformer pull and the prequant path's load_config. base stays the upstream for resolve_prequant_source and the checkpoint's base_model_id check. Regression test: test_dense_quant_pulls_the_transformer_from_the_mirror.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1298a35e21
ℹ️ 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".
|
|
||
| # Pull the companions from the ungated mirror; only the BYTES move, the caller keeps the | ||
| # upstream id. | ||
| base = prefer_ungated_mirror(base, hf_token) |
There was a problem hiding this comment.
Report mirrored fetch repos to the cache guards
When this swaps a gated base to its unsloth/* mirror, the background load still records loading.base_repo as the upstream id, and loading_repo_ids() is the signal used by the download/delete-cached guards. For an anonymous FLUX load, companions are written under models--unsloth--FLUX.1-dev, but deleting or staging unsloth/FLUX.1-dev while the load is finalizing is not blocked because the guard only sees black-forest-labs/FLUX.1-dev; that can remove the snapshot/blobs before _base_local_dir is consumed. Track the fetch repo (or return both upstream and mirror) for in-flight loads.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Correct, and already addressed by the fetch-repo rework that landed after this was written.
loading_repo_ids() now returns (repo_id, base_repo, fetch_repo), so the delete-cached and staging guards see the unsloth mirror the companion bytes actually land in, not just the upstream id. Without it the live download was deletable, which is the case described here.
The swap was applied ad hoc at a few call sites, so several paths that fetch bytes (or tell the download manager to) still named the gated upstream, and a mirror id could reach tables and validators keyed on upstream ids. Resolve one fetch repo per load and carry it beside the canonical base: - Both download plans now stage the repo the loader will fetch from. The Hub manager stages before the loader runs, so a gated id there 401s an anonymous user at staging and the mirror is never reached. Byte sizes still come from model_info on the upstream, which answers for a gated repo. - load_pipeline resolves fetch_base once and hands it to every download: the from_single_file config= fetches, the krea / ideogram per-component loaders on both the pipeline and single-file paths, the pre-cast text-encoder config read, the prequant config read and the dense transformer pull. - Cache accounting follows the bytes: load progress, the memory planner's companion and dense-transformer sizing, and the delete-cached guards in both engines. A companion counted against an empty upstream cache read as zero, which stalled the progress bar and pushed the planner to resident placement. - The upstream-is-cached test now asks whether the load is satisfiable rather than whether any blob exists, scoped to the revision refs/main names, since that is the only one a gated fetch can fall back to. A stray config from an interrupted pull no longer pins the load to the gated repo. - Normalise mirror ids at the remaining table and validator lookups: the text-encoder equivalence group, the prequant base_model_id check, the bf16 component table, and a base_model card tag naming a mirror.
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5cfb5ea0c7
ℹ️ 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".
| mirror = mirror_repo(base) | ||
| if not mirror or os.environ.get("UNSLOTH_DIFFUSION_NO_MIRROR", "").strip(): | ||
| return base |
There was a problem hiding this comment.
Preserve local paths before mirroring gated ids
When base or an asset repo_id is actually a local directory whose relative path matches one of the gated upstream ids (for example a user cloned a base into black-forest-labs/FLUX.1-dev), the rest of these loaders intentionally treat it as local via Path(...).exists(), but this helper rewrites the string to the unsloth/* mirror before those local-path checks run. That makes local loads/download plans ignore the on-disk files and try the mirror instead, which can download unnecessarily or fail when the requested local file is not present there; check for an existing local path before applying mirror_repo.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Good catch, fixed in ac23320. A base whose relative path is an existing directory (a clone sitting at black-forest-labs/FLUX.1-dev) matched the mirror table, and several sites take their local branch after the swap: _fetch_assets rewrites the asset list before its Path(repo).exists() check, and _companion_cache_bytes(fetch_base or base) then reported 0 bytes for a local dir that holds 100 bytes of weights in a repro. prefer_ungated_mirror now returns base unchanged when Path(base).expanduser().exists(), since a local path is never a Hub id, and the helper stays pure (local stat only). Regression test test_a_local_base_directory_is_never_mirrored added beside the other mirror tests; it fails on the previous code and passes now (158 passed in test_diffusion_backend.py, 61 in test_sd_cpp_backend.py).
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ac23320503
ℹ️ 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".
| companion = loading.fetch_repo or loading.base_repo | ||
| if companion and companion != loading.repo_id: | ||
| downloaded += self._cache_bytes(companion) |
There was a problem hiding this comment.
Avoid double-counting upstream bytes for mirrored pipelines
When a full-pipeline load uses a mirror, loading.repo_id == loading.base_repo remains the gated upstream while companion becomes the mirror. If an interrupted upstream download left partial blobs—the exact case that makes prefer_ungated_mirror choose the mirror—this adds those stale upstream bytes to the mirror's current bytes, so load_progress() can report 100%/finalizing long before the mirrored download finishes. For full-pipeline loads, scan the selected fetch repo instead of summing it with repo_id.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Reproduced and fixed in 9bdaa3e.
The count-once guard compared the companion against repo_id, which held while the companion WAS base_repo. Once it became the mirror id the comparison stopped matching, so a full-pipeline load summed the upstream cache into the mirror's bytes. A partial upstream cache is exactly what selects the mirror, so those leftovers could drive the bar to 100% and flip the phase to finalizing while the real download was still running.
A full-pipeline load now scans only the repo the bytes land in. Added a regression test for the mirrored pipeline case, verified to report 1000 and finalizing before the fix, plus one for a GGUF pick with a genuinely separate base so the two are still summed.
The refs/main scoping added a read_text() with no encoding, which the repo's text-I/O lint rejects: without it Python falls back to the Windows ANSI codepage. A git ref is ASCII, but the rule is there so no reader has to check that.
A full-pipeline load has base_repo == repo_id, and the count-once guard compared the companion against repo_id. Once the companion became the mirror id that comparison no longer matched, so the upstream cache was added to the mirror's bytes. A partial upstream cache is exactly what selects the mirror, so its leftovers could drive the bar to 100% and flip the phase to finalizing while the real download was still running.
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep them coming! 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". |
Picking a GGUF or FP8 diffusion model still failed for anyone without a Hugging Face token, on a repo they never chose.
Those checkpoints carry only the denoiser. The VAE, text encoder, tokenizer, scheduler and
model_index.jsonall come from the companion base, and twelve of those bases are Hub-gated:So
unsloth/FLUX.1-dev-GGUFresolved its base toblack-forest-labs/FLUX.1-devand 401'd. #7870 makes that legible; it cannot remove it.All twelve now have byte-identical ungated mirrors under
unsloth/*, published under the terms each upstream licence sets for redistribution (LICENSEplus the prescribed attributionNOTICEin every one). This change makes Studio use them.The swap is invisible
_resolve_base_repostill returns the upstream id. The substitution happens only where bytes are pulled, so the id the UI shows, the id saved configs hold and thebase_modeltag a trained LoRA records are all unchanged. Three fetch points:_prefetch_files,_assemble_pipe, and thefrom_pretrainedfallback that fires when the prefetch staged nothing._estimate_download_bytesdeliberately does not swap. The Hub gates only the byte endpoint, somodel_infoanswers for a gated base anonymously, and the mirrors are byte-identical, so the sizes and file list are the same either way.Why two helpers rather than one
_FLUX2_BASE_INNER_DIMandprequant_variant_reposare keyed on upstream ids, andassert_flux2_gguf_matches_basefails open on an unmapped base. Substituting a mirror in the shared resolver would have disabled that guard in silence and brought back the bare24576x4096 vs 18432x3072quantizer error it exists to replace. Somirror_repoapplies at fetch time, andcanonical_basenormalises at every table lookup.Declining
Two ways, each landing on exactly today's behaviour:
UNSLOTH_DIFFUSION_NO_MIRRORfor anyone who wants the vendor repo, and an upstream already in the cache, since switching would re-pull tens of GiB for nothing.Resolution is pure: a table lookup, an env read and a local stat. An earlier draft probed the mirror over the network and fell back on failure, but that runs inside pipeline assembly, so it put a Hub round trip on the load path and made the result depend on connectivity.
Verification
HF_TOKENandHUGGING_FACE_HUB_TOKENstripped from the environment: the real_prefetch_filespath fetched the companion viaunsloth/FLUX.1-dev, while the same anonymous request to the gated upstream raisedGatedRepoErrorlfs.sha256and git blob sha1: no missing files, no mismatchessd.cpp gets the same treatment, but on the asset repos rather than the base: that backend never fetches from
base, it fetchesfam.sd_cpp_vaeandfam.sd_cpp_text_encoders, and the FLUX.1 VAE lives in the gatedFLUX.1-schnellrepo.