Skip to content

Commit 07ed61a

Browse files
committed
chroma support tweaks
1 parent 420c6d5 commit 07ed61a

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

docs/Model Support.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,9 @@ Parameters and usage is the same as any other normal model.
285285
### Chroma
286286

287287
- Chroma is a derivative of Flux, and is supported in SwarmUI
288-
- Downloads here <https://huggingface.co/lodestones/Chroma/tree/main>
288+
- FP8 Scaled versions here: <https://huggingface.co/Clybius/Chroma-fp8-scaled/tree/main>
289+
- Or GGUF versions here: <https://huggingface.co/silveroxides/Chroma-GGUF>
290+
- Or original BF16 here (not recommended): <https://huggingface.co/lodestones/Chroma/tree/main>
289291
- Uses standard CFG, not distilled to 1 like other Flux models
290292
- Official reference workflow uses Scheduler=`Align Your Steps` with Steps=`26` and CFG Scale=`4`
291293
- Probably works better with longer prompts

src/BuiltinExtensions/ComfyUIBackend/WorkflowGenerator.cs

+4
Original file line numberDiff line numberDiff line change
@@ -918,6 +918,10 @@ void doVaeLoader(string defaultVal, string compatClass, string knownName)
918918
{
919919
dtype = "default";
920920
}
921+
else if (model.Metadata?.SpecialFormat == "fp8_scaled")
922+
{
923+
dtype = "default";
924+
}
921925
else
922926
{
923927
dtype = "fp8_e4m3fn";

src/Text2Image/T2IModelHandler.cs

+5
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,11 @@ static string[] procWordsFrom(JToken tok)
509509
specialFormat = "bnb_nf4";
510510
break;
511511
}
512+
if (key.EndsWith(".scale_weight"))
513+
{
514+
specialFormat = "fp8_scaled";
515+
break;
516+
}
512517
}
513518
if (model.Name.EndsWith(".gguf"))
514519
{

0 commit comments

Comments
 (0)