Repository navigation
Studio: route krea2 GGUFs to Images instead of opening them as chat models - #14477
Merged
danielhanchen merged 5 commits intoOct 21, 2026
Merged
danielhanchen merged 5 commits into
danielhanchen merged 5 commits into
Conversation
Custom Krea 2 GGUFs declare architecture krea2, which Studio does not run (pipeline-only, no sd.cpp mapping). Without that arch in the unsupported set they fell through to text-generation, so Hub offered RUN as chat and llama.cpp failed. Mirror the catalog and llama.cpp preflight lists so both pickers and the load refusal stay in sync.
1 task
Custom Krea 2 GGUFs from some converters declare general.architecture = krea2. The Images loader already reads the Krea 2 DiT from the tensors (the same path the Krea 2 GGUFs declaring flux or qwen_image take), so list them as text-to-image and point the chat preflight at the Images page. The arch alone names the family, so the buildability gate checks Krea 2 even when the file name says nothing. [skip ci]
[skip ci]
Member
|
@codex review |
1 similar comment
Member
|
@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. |
|
Codex Review: Didn't find any major issues. Swish! 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.
Summary
Custom Krea 2 GGUFs from some converters (for example
molbal/krea2-gguf) declaregeneral.architecture = krea2. That arch was in none of Studio's GGUF arch tables, so the listing classified the file astext-generation: the Model Hub offered RUN as a chat model and llama-server failed with "does not recognise this GGUF's model architecture ('krea2')" (#14474). The Images picker never listed it.Studio's Images engine already loads Krea 2 GGUF transformers: most published Krea 2 GGUFs declare
fluxorqwen_image(vantagewithai, Abiray, byteshape, realrebelai) and load through the same diffusers GGUF path, because the loader reads the DiT from the tensor names, not from the declared arch. So akrea2GGUF does not need to be refused; it only needs to be routed to Images.krea2joins_DIFFUSION_GGUF_ARCHS(listing) andLlamaCppBackend._IMAGE_ARCHES(chat preflight and the llama-server failure text), so the file is listed under Images and opening it in a chat says "Open it from the Images page instead."krea2names exactly one family, unlikeflux/qwen_image, so the buildability gate checks Krea 2 from the arch even when the file name says nothing (my-mix-Q4_K_M.gguf). A host that cannot build Krea 2 (diffusers older than 0.39) hides the file and the refusal names no page.flux/qwen_imagekeep going by name only.mainfirst.Evidence
Tiny Krea 2 DiT (real ComfyUI layout, 2D weights Q8_0,
general.architecture = krea2, uninformative file name) in a custom models folder, Studio's own functions:_local_model_task)text-generation(chat RUN)text-to-image(Images picker)detect_family_for_pick)krea-2krea-2Krea2Transformer2DModel.from_single_file+ GGUF quant config, Studio converter)Routing cells (arch x name hints, listing task + preflight + llama-server failure text): 320 cells, 290 identical, 30 moved, all of them
krea2/KREA2/ paddedkrea2.Tests, base (
main) vs head with the head test files: 6 FIXED (fail or absent on base, pass on head), 511 unchanged, 0 head failures:test_cached_gguf_routes.py::test_krea2_gguf_is_an_image_model_not_chattest_llama_cpp_non_chat_gguf_preflight.py::test_a_krea2_gguf_names_the_images_page[...](2)test_llama_cpp_non_chat_gguf_preflight.py::test_a_krea2_gguf_this_host_cannot_build_promises_no_pagetest_llama_cpp_non_chat_gguf_preflight.py::test_every_media_arch_is_refused_before_launch[krea2]test_llama_cpp_start_failure_classification.py::TestDiffusionArchitectures::test_every_image_arch_is_recognised[krea2]Not covered
krea/Krea-2-Turboexactly as for the Krea 2 GGUFs that already load.