Skip to content

Studio: recognize Kromoss as MOSS-Image - #17572

Merged
danielhanchen merged 6 commits into
unslothai:mainfrom
DimitriChrysafis:fix-kromoss-family-detection
Nov 18, 2026
Merged

danielhanchen merged 6 commits into
unslothai:mainfrom
DimitriChrysafis:fix-kromoss-family-detection

Conversation

@DimitriChrysafis

@DimitriChrysafis DimitriChrysafis commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Addresses #17552.

Studio rejects molbal/Kromoss-GGUF before loading because neither the repo nor the filename matches a registered image family. Kromoss is a MOSS-Image derivative, but the family has no kromoss alias.

Add that alias to the existing MOSS-Image row. GGUF picks then use the existing native sd.cpp route, retaining the selected Kromoss denoiser and the shared MOSS VAE, text encoder and tokenizer. No loader, trusted-repo list, dependency or UI changes.

Tests cover remote and local picks, mixed case, companion selection, native routing and preflight. Lookalike names, unsupported edit variants and old binaries remain rejected.

Verification

  • Eight regression cases fail before the alias and pass afterward.
  • Related tests: 88 passed, 55 skipped, one pre-existing failure from missing Transformers >= 5.3.0, also reproduced on the unchanged baseline. The skips require the Torch/diffusers stack.
  • Family-data freeze test passes without changing its fixture.
  • Repository-pinned ruff-unsloth 0.6.9.post1 formatting and Ruff 0.17.3 lint pass on all three changed files; git diff --check is clean.

No Kromoss weights were loaded and no image was generated. This verifies the reported recognition/preflight failure, not end-to-end compatibility of every checkpoint or quant.

Generation defaults for Kromoss picks

Steps and guidance defaults are keyed on the model name, so a Kromoss pick fell to the generic 9 steps / guidance 0 fallback: on the Images form before load for every Kromoss pick, and in the reported generation_defaults for a lodestones/Kromoss pipeline load. Guidance 0 switches off the negative branch MOSS-Image relies on. A kromoss row with the MOSS-Image recipe (25 steps, guidance 2.5) is added to both the backend and the Images page tables, with tests on both sides.

Images page right after picking molbal/Kromoss-GGUF / kromoss-Q4_K_M.gguf via the page's deep link, merge base (left) vs this branch (right). Before, the pick is rejected and the form keeps 9 / 0; after, the pick is accepted (model, MOSS VAE and Qwen3.5 encoder downloads queued) and the form shows 25 / 2.5.

Kromoss pick on the Images page, before and after

ComfyUI ConvRot GGUFs are refused before the native engine runs

molbal/Kromoss-GGUF also ships kromoss-Q8_CR.gguf and kromoss-Q4_CR_L.gguf, ComfyUI int8 ConvRot quants: 168 int8 block linears with Hadamard-rotated weights and per-row weight_scale tensors, declared in comfy.gguf.quant.* metadata. stable-diffusion.cpp reads those declarations only from safetensors, so on the pinned build (master-982-0518b34-u67cba2c, CPU) the GGUF aborts while loading:

ggml_block.hpp:185: GGML_ASSERT(scale_nelements == 1 || scale_nelements == out_features) failed   (exit 134)

The native load now reads the fetched GGUF's metadata and refuses such a file with a message naming the standard quants, right after the existing FLUX.3 variant check and before any native state is built. Plain GGUFs are untouched: on the real files, kromoss-Q4_CR_L.gguf is refused, kromoss-Q4_K_M.gguf and Qwen3.5-9B-Q8_0.gguf pass, and kromoss-Q4_K_M.gguf renders a correct 256 px image on the same sd-cli build.

@danielhanchen

Copy link
Copy Markdown
Member

@codex review

1 similar comment
@danielhanchen

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-18T10:10:21.306127Z c52e1c0 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: fec76e56b8

ℹ️ 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 pushed a commit to danielhanchen/unsloth-staging-2 that referenced this pull request Nov 18, 2026
@danielhanchen

Copy link
Copy Markdown
Member

@codex review

1 similar comment
@danielhanchen

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: 00131ddaf3

ℹ️ 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

Copy link
Copy Markdown
Member

@codex review

1 similar comment
@danielhanchen

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: c52e1c02d9

ℹ️ 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 added a commit to Imagineer99/unsloth that referenced this pull request Nov 18, 2026
@danielhanchen
danielhanchen merged commit c559b0f into unslothai:main Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants