Skip to content

Studio: run Chroma's ComfyUI fp8 files in fp8, as ComfyUI does - #16872

Merged
danielhanchen merged 2 commits into
unslothai:mainfrom
oobabooga:chroma-fp8-files
Nov 6, 2026
Merged

danielhanchen merged 2 commits into
unslothai:mainfrom
oobabooga:chroma-fp8-files

Conversation

@oobabooga

Copy link
Copy Markdown
Member

Chroma1-HD's ComfyUI fp8 file (Comfy-Org/Chroma1-HD Chroma1-HD-fp8mixed) ran 1.85x slower per step in Studio than in ComfyUI. #16710 denied every activation-quantizing scheme for Chroma, so Studio widened the file's fp8 layers to bf16. ComfyUI computes them in fp8.

RTX 6000 Ada, 1024², 26 steps, CFG 3.5 (two passes per step), lower is better:

Before (main) After (this PR) ComfyUI v0.44.0
Seconds per step 1.65 0.94 0.89
Seconds per image 42.9 24.7 24.2

The deny rested on two observations:

  • fp8 compute moved renders away from a bf16 diffusers render (16 / 255 per pixel against 3.5 without it). ComfyUI computes these layers in fp8 too, and 6 renders side by side with this branch's show no quality difference.
  • The "letterboxing" was a dark band along the left edge on 2 of 6 seeds. The same band appears on the same seeds in the bf16 diffusers reference and in Studio with fp8 denied, so it is not specific to fp8.

Change

Chroma's profile now denies only nvfp4 and mxfp8; fp8 and int8 move to auto_scheme_skip:

  • A ComfyUI fp8 file's layers take Studio's fp8 runtime (the file route requests fp8 explicitly).
  • Auto never quantizes bf16 or GGUF Chroma weights, which ComfyUI runs unquantized. A Q4_K_M GGUF still loads with transformer_quant=off(auto).
  • An explicit fp8 or int8 request is honoured.

Verification

  • The table above, against ComfyUI on the same file.
  • 3 prompts x 2 seeds on this branch and in ComfyUI: no artifacts, comparable renders.
  • silveroxides/Chroma1-HD-GGUF Q4_K_M: loads with transformer_quant=off(auto), as before.
  • New test: the fp8 file's layers take the fp8 runtime through the real selector, auto skips fp8 and int8 on every tier, an explicit int8 request is kept, nvfp4 and mxfp8 stay denied. It fails on main.
  • Full diffusion, MOSS-Image and LoRA test files (pytest -n 8, 19,100+ tests): the only failures are the same 27 that fail on main with the same command (environment-dependent PyAV and attention-kernel tests, and tests that only fail when xdist puts them in one worker).
  • The family data snapshot drops fp8 and int8 from Chroma's deny list.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 6, 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-11-06T07:55:15.218068Z 72dea6d 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 danielhanchen self-assigned this Nov 6, 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. Another round soon, please!

Reviewed commit: 72dea6d7dc

ℹ️ 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 6f0692a into unslothai:main Nov 6, 2026
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.

2 participants