Instructions to use KBlueLeaf/MOSS-Image-FP16-fixed with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use KBlueLeaf/MOSS-Image-FP16-fixed with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("KBlueLeaf/MOSS-Image-FP16-fixed", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Compare fp16 without the fix, fp16 with the fix, bf16 and fp32 in every panel
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +21 -0
- README.md +65 -42
- images/base_c_sweep_p0_0.webp +0 -0
- images/base_c_sweep_p0_1.webp +0 -0
- images/base_fp16_break_2560.webp +2 -2
- images/base_plain_fp16_p0.webp +0 -0
- images/base_plain_fp16_p1.webp +2 -2
- images/gallery/base_comfyui_lora0_p0_s11.webp +0 -0
- images/gallery/base_comfyui_lora0_p1_s11.webp +0 -0
- images/gallery/base_comfyui_lora0_p2_s11.webp +2 -2
- images/gallery/base_comfyui_lora0_p3_s11.webp +2 -2
- images/gallery/base_comfyui_lora0_p4_s11.webp +0 -0
- images/gallery/base_comfyui_lora0_p5_s11.webp +2 -2
- images/gallery/base_comfyui_lora0_p6_s11.webp +2 -2
- images/gallery/base_comfyui_lora0_p7_s11.webp +2 -2
- images/gallery/base_comfyui_lora1_p0_s11.webp +0 -0
- images/gallery/base_comfyui_lora1_p1_s11.webp +0 -0
- images/gallery/base_comfyui_lora1_p2_s11.webp +2 -2
- images/gallery/base_comfyui_lora1_p3_s11.webp +2 -2
- images/gallery/base_comfyui_lora1_p4_s11.webp +0 -0
- images/gallery/base_comfyui_lora1_p5_s11.webp +2 -2
- images/gallery/base_comfyui_lora1_p6_s11.webp +2 -2
- images/gallery/base_comfyui_lora1_p7_s11.webp +2 -2
- images/gallery/base_comfyui_p0_s11.webp +0 -0
- images/gallery/base_comfyui_p0_s12.webp +0 -0
- images/gallery/base_comfyui_p1_s11.webp +0 -0
- images/gallery/base_comfyui_p1_s12.webp +2 -2
- images/gallery/base_comfyui_p2_s11.webp +2 -2
- images/gallery/base_comfyui_p2_s12.webp +2 -2
- images/gallery/base_comfyui_p3_s11.webp +0 -0
- images/gallery/base_comfyui_p3_s12.webp +2 -2
- images/gallery/base_comfyui_p4_s11.webp +0 -0
- images/gallery/base_comfyui_p4_s12.webp +0 -0
- images/gallery/base_comfyui_p5_s11.webp +2 -2
- images/gallery/base_comfyui_p5_s12.webp +2 -2
- images/gallery/base_comfyui_p6_s11.webp +2 -2
- images/gallery/base_comfyui_p6_s12.webp +2 -2
- images/gallery/base_comfyui_p7_s11.webp +2 -2
- images/gallery/base_comfyui_p7_s12.webp +2 -2
- images/gallery/base_diffusers_p0_s11.webp +0 -0
- images/gallery/base_diffusers_p0_s12.webp +0 -0
- images/gallery/base_diffusers_p1_s11.webp +2 -2
- images/gallery/base_diffusers_p1_s12.webp +0 -0
- images/gallery/base_diffusers_p2_s11.webp +2 -2
- images/gallery/base_diffusers_p2_s12.webp +2 -2
- images/gallery/base_diffusers_p3_s11.webp +0 -0
- images/gallery/base_diffusers_p3_s12.webp +0 -0
- images/gallery/base_diffusers_p4_s11.webp +0 -0
- images/gallery/base_diffusers_p4_s12.webp +0 -0
- images/gallery/base_diffusers_p5_s11.webp +2 -2
.gitattributes
CHANGED
|
@@ -158,3 +158,24 @@ images/sft_c_sweep_p0_1.webp filter=lfs diff=lfs merge=lfs -text
|
|
| 158 |
images/sft_plain_fp16_p1.webp filter=lfs diff=lfs merge=lfs -text
|
| 159 |
images/sft_stream_per_block.webp filter=lfs diff=lfs merge=lfs -text
|
| 160 |
images/base_fp16_break_2560.webp filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 158 |
images/sft_plain_fp16_p1.webp filter=lfs diff=lfs merge=lfs -text
|
| 159 |
images/sft_stream_per_block.webp filter=lfs diff=lfs merge=lfs -text
|
| 160 |
images/base_fp16_break_2560.webp filter=lfs diff=lfs merge=lfs -text
|
| 161 |
+
images/gallery/base_comfyui_lora0_p1_s11.webp filter=lfs diff=lfs merge=lfs -text
|
| 162 |
+
images/gallery/base_comfyui_lora1_p0_s11.webp filter=lfs diff=lfs merge=lfs -text
|
| 163 |
+
images/gallery/base_comfyui_p1_s11.webp filter=lfs diff=lfs merge=lfs -text
|
| 164 |
+
images/gallery/base_comfyui_p3_s11.webp filter=lfs diff=lfs merge=lfs -text
|
| 165 |
+
images/gallery/base_diffusers_p0_s12.webp filter=lfs diff=lfs merge=lfs -text
|
| 166 |
+
images/gallery/base_diffusers_p1_s12.webp filter=lfs diff=lfs merge=lfs -text
|
| 167 |
+
images/gallery/base_diffusers_p3_s12.webp filter=lfs diff=lfs merge=lfs -text
|
| 168 |
+
images/gallery/base_diffusers_p6_s11.webp filter=lfs diff=lfs merge=lfs -text
|
| 169 |
+
images/gallery/base_kohakumoss_lora0_p1_s11.webp filter=lfs diff=lfs merge=lfs -text
|
| 170 |
+
images/gallery/base_kohakumoss_p0_s12.webp filter=lfs diff=lfs merge=lfs -text
|
| 171 |
+
images/gallery/base_kohakumoss_p1_s12.webp filter=lfs diff=lfs merge=lfs -text
|
| 172 |
+
images/gallery/base_kohakumoss_p3_s11.webp filter=lfs diff=lfs merge=lfs -text
|
| 173 |
+
images/gallery/base_kohakumoss_p3_s12.webp filter=lfs diff=lfs merge=lfs -text
|
| 174 |
+
images/gallery/base_kohakumoss_p6_s11.webp filter=lfs diff=lfs merge=lfs -text
|
| 175 |
+
images/gallery/sft_comfyui_lora0_p1_s11.webp filter=lfs diff=lfs merge=lfs -text
|
| 176 |
+
images/gallery/sft_comfyui_lora1_p4_s11.webp filter=lfs diff=lfs merge=lfs -text
|
| 177 |
+
images/gallery/sft_comfyui_p1_s11.webp filter=lfs diff=lfs merge=lfs -text
|
| 178 |
+
images/gallery/sft_diffusers_p0_s12.webp filter=lfs diff=lfs merge=lfs -text
|
| 179 |
+
images/gallery/sft_diffusers_p4_s12.webp filter=lfs diff=lfs merge=lfs -text
|
| 180 |
+
images/gallery/sft_kohakumoss_p4_s12.webp filter=lfs diff=lfs merge=lfs -text
|
| 181 |
+
images/sft_plain_fp16_p0.webp filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -60,7 +60,9 @@ are the official ones.
|
|
| 60 |
| `comfyui/moss_image_sft_fp16_fixed.safetensors` | ComfyUI single file (fp16) |
|
| 61 |
| `reports/{base,sft}_fp16_fix.json` | every number on this page, per image |
|
| 62 |
|
| 63 |
-
<img src="images/gallery/base_comfyui_p1_s11.webp" alt="fp16
|
|
|
|
|
|
|
| 64 |
|
| 65 |
## Why: the stream sits at 95% of the fp16 limit
|
| 66 |
|
|
@@ -79,22 +81,25 @@ block.
|
|
| 79 |
|
| 80 |

|
| 81 |
|
| 82 |
-
<img src="images/base_plain_fp16_p0.webp" alt="
|
|
|
|
|
|
|
| 83 |
|
| 84 |
**Where plain fp16 breaks.** ComfyUI with `--fp16-unet` on the official Base file, 50
|
| 85 |
steps, CFG 3, euler / simple: all 8 prompts at 1024^2 finish (stream max 62,080), and so
|
| 86 |
does 2048^2 (64,096, 2.2% below the limit). **2560^2 is the first size that gives a
|
| 87 |
black image**: on step 29 of 50 the stream reaches 65,504 at block 26, every later
|
| 88 |
-
forward is NaN, and the image is black.
|
| 89 |
-
|
| 90 |
-
|
|
|
|
| 91 |
|
| 92 |
<img src="images/base_fp16_break_2560.webp" alt="2560x2560: fp16 without the fix (NaN) | fp16 with the fix | bf16 | fp32">
|
| 93 |
|
| 94 |
fp16 without the fix | fp16 with the fix | bf16 | fp32 (ComfyUI, 2560x2560, prompt 0
|
| 95 |
-
"tabby cat", seed 11;
|
| 96 |
-
and 3072^2 overflow; 1536^2, 2048^2, 768x2048 and
|
| 97 |
-
moves the stream by under 1%.
|
| 98 |
|
| 99 |
<details><summary>SFT charts</summary>
|
| 100 |
|
|
@@ -165,20 +170,29 @@ steps) against fp32.
|
|
| 165 |
1024^2, 50 steps, CFG 3, 8 prompts x seeds 11 / 12 (16 images), each runtime against its
|
| 166 |
own fp32 run. LPIPS (AlexNet) / PSNR, lower / higher is closer.
|
| 167 |
|
| 168 |
-
| runtime | variant | fp16-fixed | official bf16 | fixed vs bf16 |
|
| 169 |
-
| --- | --- | --- | --- | --- |
|
| 170 |
-
| ComfyUI | Base | **0.0062** / 44.8 dB | 0.0501 / 29.3 dB | 0.047 |
|
| 171 |
-
| ComfyUI | SFT | **0.0042** / 43.2 dB | 0.0413 / 29.3 dB | 0.042 |
|
| 172 |
-
| diffusers | Base | **0.0111** / 42.8 dB | 0.0900 / 26.8 dB | 0.089 |
|
| 173 |
-
| diffusers | SFT | **0.0094** / 42.2 dB | 0.0655 / 28.1 dB | 0.065 |
|
| 174 |
-
| KohakuMoss | Base | **0.0145** / 42.7 dB | 0.0934 / 26.7 dB | 0.090 |
|
| 175 |
-
| KohakuMoss | SFT | **0.0121** / 42.9 dB | 0.0683 / 27.4 dB | 0.072 |
|
| 176 |
|
| 177 |
fp16 carries 3 more mantissa bits than bf16; with the stream in range that is what the
|
| 178 |
fixed weights give back. "fixed vs bf16" is the size of bf16's own rounding drift, not an
|
| 179 |
-
error of the fix. No 1024^2 run produced a non-finite latent or image
|
| 180 |
-
|
| 181 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 182 |
`LPIPS*` is the distance to the fp32 panel.
|
| 183 |
|
| 184 |
### Base
|
|
@@ -224,7 +238,8 @@ Each panel: fp16-fixed | official bf16 | fp32 (ComfyUI, seed 11).
|
|
| 224 |
</div>
|
| 225 |
|
| 226 |
Every runtime, both seeds and the adapter panels are in `images/gallery/`
|
| 227 |
-
(`<variant>_<runtime>_p<prompt>_s<seed>.webp`
|
|
|
|
| 228 |
|
| 229 |
## Whole pipeline in fp16
|
| 230 |
|
|
@@ -239,33 +254,36 @@ transformer + fp16 VAE) is what the diffusers snippet below runs.
|
|
| 239 |
## Adapters
|
| 240 |
|
| 241 |
A LoRA (rank 8) and a LoKr (factor 16), trained on the official Base weights in
|
| 242 |
-
KohakuMoss, applied as-is to the fixed weights. Distance
|
| 243 |
-
official bf16 + adapter, next to the adapter's
|
| 244 |
-
|
| 245 |
-
|
| 246 |
-
|
|
| 247 |
-
|
|
| 248 |
-
| ComfyUI | Base |
|
| 249 |
-
| ComfyUI |
|
| 250 |
-
| ComfyUI | SFT |
|
| 251 |
-
|
|
| 252 |
-
| KohakuMoss | Base |
|
| 253 |
-
| KohakuMoss |
|
| 254 |
-
| KohakuMoss | SFT |
|
| 255 |
-
|
| 256 |
-
|
| 257 |
-
|
| 258 |
-
|
|
|
|
|
|
|
|
|
|
| 259 |
|
| 260 |
<div class="mf-gal">
|
| 261 |
<input type="radio" name="gl" id="l0" checked><label for="l0">Base LoRA</label>
|
| 262 |
<input type="radio" name="gl" id="l1"><label for="l1">Base LoKr</label>
|
| 263 |
<input type="radio" name="gl" id="l2"><label for="l2">SFT LoRA</label>
|
| 264 |
<input type="radio" name="gl" id="l3"><label for="l3">SFT LoKr</label>
|
| 265 |
-
<div class="mf-panel" id="pl0"><img src="images/gallery/base_comfyui_lora0_p3_s11.webp" alt=""><p>fp16
|
| 266 |
-
<div class="mf-panel" id="pl1"><img src="images/gallery/base_comfyui_lora1_p3_s11.webp" alt=""><p>fp16
|
| 267 |
-
<div class="mf-panel" id="pl2"><img src="images/gallery/sft_comfyui_lora0_p3_s11.webp" alt=""><p>fp16
|
| 268 |
-
<div class="mf-panel" id="pl3"><img src="images/gallery/sft_comfyui_lora1_p3_s11.webp" alt=""><p>fp16
|
| 269 |
</div>
|
| 270 |
|
| 271 |
Adapters on the joint blocks' q / k / v / o / `ffn_up_gate` / `ffn_down` (the usual
|
|
@@ -329,7 +347,12 @@ See [KohakuMoss](https://github.com/KohakuBlueleaf/KohakuMossTrainer).
|
|
| 329 |
## Notes
|
| 330 |
|
| 331 |
- Measured on an RTX 5090 (fp16 and bf16 matmuls with fp32 accumulation); the fp32
|
| 332 |
-
reference is the official weights in fp32. The 2560^2 example
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 333 |
- The headroom figures cover the prompts, resolutions and sigmas above, and 2560^2 for
|
| 334 |
the fixed Base weights (15.6x). Larger images, very long prompts and finetuned weights
|
| 335 |
were not measured.
|
|
|
|
| 60 |
| `comfyui/moss_image_sft_fp16_fixed.safetensors` | ComfyUI single file (fp16) |
|
| 61 |
| `reports/{base,sft}_fp16_fix.json` | every number on this page, per image |
|
| 62 |
|
| 63 |
+
<img src="images/gallery/base_comfyui_p1_s11.webp" alt="fp16 without the fix | fp16 with the fix | bf16 | fp32, ComfyUI">
|
| 64 |
+
|
| 65 |
+
fp16 without the fix | fp16 with the fix | bf16 | fp32 (ComfyUI, 1024^2, seed 11).
|
| 66 |
|
| 67 |
## Why: the stream sits at 95% of the fp16 limit
|
| 68 |
|
|
|
|
| 81 |
|
| 82 |

|
| 83 |
|
| 84 |
+
<img src="images/base_plain_fp16_p0.webp" alt="fp16 without the fix | fp16 with the fix | bf16 | fp32, 1024^2">
|
| 85 |
+
|
| 86 |
+
fp16 without the fix | fp16 with the fix | bf16 | fp32 (KohakuMoss, 1024^2, prompt 0).
|
| 87 |
|
| 88 |
**Where plain fp16 breaks.** ComfyUI with `--fp16-unet` on the official Base file, 50
|
| 89 |
steps, CFG 3, euler / simple: all 8 prompts at 1024^2 finish (stream max 62,080), and so
|
| 90 |
does 2048^2 (64,096, 2.2% below the limit). **2560^2 is the first size that gives a
|
| 91 |
black image**: on step 29 of 50 the stream reaches 65,504 at block 26, every later
|
| 92 |
+
forward is NaN, and the image is black. KohakuMoss in plain fp16 goes non-finite at the
|
| 93 |
+
same step and block. The same run in fp32 peaks at 67,048 (a single fp32 forward at sigma
|
| 94 |
+
0.7: 67,681), 2.4-3.3% over the fp16 limit; bf16 peaks at 67,072 and stays
|
| 95 |
+
finite. The fixed weights peak at 4,188 (x 16 = 67,008, 15.6x headroom):
|
| 96 |
|
| 97 |
<img src="images/base_fp16_break_2560.webp" alt="2560x2560: fp16 without the fix (NaN) | fp16 with the fix | bf16 | fp32">
|
| 98 |
|
| 99 |
fp16 without the fix | fp16 with the fix | bf16 | fp32 (ComfyUI, 2560x2560, prompt 0
|
| 100 |
+
"tabby cat", seed 11; `LPIPS*` is the distance to fp32). In single forwards over 7
|
| 101 |
+
sigmas, 2560^2, 2048x3072, 3072x2048 and 3072^2 overflow; 1536^2, 2048^2, 768x2048 and
|
| 102 |
+
1024x4096 do not. A 226-token prompt moves the stream by under 1%.
|
| 103 |
|
| 104 |
<details><summary>SFT charts</summary>
|
| 105 |
|
|
|
|
| 170 |
1024^2, 50 steps, CFG 3, 8 prompts x seeds 11 / 12 (16 images), each runtime against its
|
| 171 |
own fp32 run. LPIPS (AlexNet) / PSNR, lower / higher is closer.
|
| 172 |
|
| 173 |
+
| runtime | variant | fp16, no fix | fp16-fixed | official bf16 | fixed vs bf16 |
|
| 174 |
+
| --- | --- | --- | --- | --- | --- |
|
| 175 |
+
| ComfyUI | Base | 0.0062 / 44.7 dB | **0.0062** / 44.8 dB | 0.0501 / 29.3 dB | 0.047 |
|
| 176 |
+
| ComfyUI | SFT | 0.0035 / 42.6 dB | **0.0042** / 43.2 dB | 0.0413 / 29.3 dB | 0.042 |
|
| 177 |
+
| diffusers | Base | 0.0202 / 36.9 dB | **0.0111** / 42.8 dB | 0.0900 / 26.8 dB | 0.089 |
|
| 178 |
+
| diffusers | SFT | 0.0151 / 37.0 dB | **0.0094** / 42.2 dB | 0.0655 / 28.1 dB | 0.065 |
|
| 179 |
+
| KohakuMoss | Base | 0.0171 / 42.0 dB | **0.0145** / 42.7 dB | 0.0934 / 26.7 dB | 0.090 |
|
| 180 |
+
| KohakuMoss | SFT | 0.0053 / 42.2 dB | **0.0121** / 42.9 dB | 0.0683 / 27.4 dB | 0.072 |
|
| 181 |
|
| 182 |
fp16 carries 3 more mantissa bits than bf16; with the stream in range that is what the
|
| 183 |
fixed weights give back. "fixed vs bf16" is the size of bf16's own rounding drift, not an
|
| 184 |
+
error of the fix. No 1024^2 run produced a non-finite latent or image: at this size the
|
| 185 |
+
official weights still fit fp16 and plain fp16 is about as close to fp32 as the fixed
|
| 186 |
+
weights. The difference is headroom (1.05x vs 16.9x), which is what the 2560^2 example
|
| 187 |
+
above uses up.
|
| 188 |
+
|
| 189 |
+
"fp16, no fix" ran on a V100, the other columns on an RTX 5090, with each seed's initial
|
| 190 |
+
noise as the RTX 5090 draws it. The same plain-fp16 input on the two GPUs differs by LPIPS
|
| 191 |
+
0.039 / 0.012 (ComfyUI, Base / SFT), 0.015 / 0.025 (diffusers), 0.040 / 0.008
|
| 192 |
+
(KohakuMoss) over prompt 0 and both seeds; that is part of this column's distance. In
|
| 193 |
+
fp32 the two GPUs agree to 0.0003.
|
| 194 |
+
|
| 195 |
+
Each panel: fp16 without the fix | fp16 with the fix | bf16 | fp32 (ComfyUI, seed 11).
|
| 196 |
`LPIPS*` is the distance to the fp32 panel.
|
| 197 |
|
| 198 |
### Base
|
|
|
|
| 238 |
</div>
|
| 239 |
|
| 240 |
Every runtime, both seeds and the adapter panels are in `images/gallery/`
|
| 241 |
+
(`<variant>_<runtime>_p<prompt>_s<seed>.webp`, `<variant>_<runtime>_lora<i>_p<prompt>_s11.webp`),
|
| 242 |
+
all in the same four columns.
|
| 243 |
|
| 244 |
## Whole pipeline in fp16
|
| 245 |
|
|
|
|
| 254 |
## Adapters
|
| 255 |
|
| 256 |
A LoRA (rank 8) and a LoKr (factor 16), trained on the official Base weights in
|
| 257 |
+
KohakuMoss, applied as-is to the fixed weights. Distance of each base + adapter to fp32 +
|
| 258 |
+
adapter, then between fixed + adapter and official bf16 + adapter, next to the adapter's
|
| 259 |
+
own effect:
|
| 260 |
+
|
| 261 |
+
| runtime | variant | adapter | fp16, no fix | fp16-fixed | bf16 | fixed + adapter vs bf16 + adapter | without adapter | adapter effect |
|
| 262 |
+
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
|
| 263 |
+
| ComfyUI | Base | LoRA | 0.003 | 0.006 | 0.068 | 0.056 | 0.047 | 0.287 |
|
| 264 |
+
| ComfyUI | Base | LoKr | 0.011 | 0.005 | 0.049 | 0.064 | 0.047 | 0.389 |
|
| 265 |
+
| ComfyUI | SFT | LoRA | 0.001 | 0.001 | 0.034 | 0.039 | 0.042 | 0.284 |
|
| 266 |
+
| ComfyUI | SFT | LoKr | 0.001 | 0.001 | 0.024 | 0.039 | 0.042 | 0.395 |
|
| 267 |
+
| KohakuMoss | Base | LoRA | 0.006 | 0.008 | 0.120 | 0.105 | 0.090 | 0.316 |
|
| 268 |
+
| KohakuMoss | Base | LoKr | 0.004 | 0.004 | 0.046 | 0.053 | 0.090 | 0.406 |
|
| 269 |
+
| KohakuMoss | SFT | LoRA | 0.003 | 0.002 | 0.038 | 0.053 | 0.072 | 0.288 |
|
| 270 |
+
| KohakuMoss | SFT | LoKr | 0.002 | 0.001 | 0.037 | 0.042 | 0.072 | 0.417 |
|
| 271 |
+
|
| 272 |
+
(LPIPS. The first three columns: 8 images each, seed 11, against fp32 + adapter run on a
|
| 273 |
+
V100, with plain fp16 + adapter also on the V100; the last three: 16 images each, RTX
|
| 274 |
+
5090.) The adapter changes the image 3-10x more than the fix does, fixed + adapter is as
|
| 275 |
+
close to fp32 + adapter as plain fp16 is at 1024^2, and stays about as close to bf16 +
|
| 276 |
+
adapter as the two bases are without it: it transfers.
|
| 277 |
|
| 278 |
<div class="mf-gal">
|
| 279 |
<input type="radio" name="gl" id="l0" checked><label for="l0">Base LoRA</label>
|
| 280 |
<input type="radio" name="gl" id="l1"><label for="l1">Base LoKr</label>
|
| 281 |
<input type="radio" name="gl" id="l2"><label for="l2">SFT LoRA</label>
|
| 282 |
<input type="radio" name="gl" id="l3"><label for="l3">SFT LoKr</label>
|
| 283 |
+
<div class="mf-panel" id="pl0"><img src="images/gallery/base_comfyui_lora0_p3_s11.webp" alt=""><p>fp16 without the fix + adapter | fp16 with the fix + adapter | bf16 + adapter | fp32 + adapter (ComfyUI)</p></div>
|
| 284 |
+
<div class="mf-panel" id="pl1"><img src="images/gallery/base_comfyui_lora1_p3_s11.webp" alt=""><p>fp16 without the fix + adapter | fp16 with the fix + adapter | bf16 + adapter | fp32 + adapter (ComfyUI)</p></div>
|
| 285 |
+
<div class="mf-panel" id="pl2"><img src="images/gallery/sft_comfyui_lora0_p3_s11.webp" alt=""><p>fp16 without the fix + adapter | fp16 with the fix + adapter | bf16 + adapter | fp32 + adapter (ComfyUI)</p></div>
|
| 286 |
+
<div class="mf-panel" id="pl3"><img src="images/gallery/sft_comfyui_lora1_p3_s11.webp" alt=""><p>fp16 without the fix + adapter | fp16 with the fix + adapter | bf16 + adapter | fp32 + adapter (ComfyUI)</p></div>
|
| 287 |
</div>
|
| 288 |
|
| 289 |
Adapters on the joint blocks' q / k / v / o / `ffn_up_gate` / `ffn_down` (the usual
|
|
|
|
| 347 |
## Notes
|
| 348 |
|
| 349 |
- Measured on an RTX 5090 (fp16 and bf16 matmuls with fp32 accumulation); the fp32
|
| 350 |
+
reference is the official weights in fp32. The 2560^2 example, the "fp16, no fix"
|
| 351 |
+
column and the fp32 + adapter references ran on a V100 (bf16 there is emulated by torch;
|
| 352 |
+
ComfyUI's own default on that GPU casts bf16 weights to fp32, so the 2560^2 bf16 run
|
| 353 |
+
disables that cast). KohakuMoss and diffusers draw their initial noise with torch's CUDA
|
| 354 |
+
generator, which gives different numbers on different GPUs; the V100 runs use the RTX
|
| 355 |
+
5090's noise for each seed.
|
| 356 |
- The headroom figures cover the prompts, resolutions and sigmas above, and 2560^2 for
|
| 357 |
the fixed Base weights (15.6x). Larger images, very long prompts and finetuned weights
|
| 358 |
were not measured.
|
images/base_c_sweep_p0_0.webp
CHANGED
|
|
images/base_c_sweep_p0_1.webp
CHANGED
|
|
images/base_fp16_break_2560.webp
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
images/base_plain_fp16_p0.webp
CHANGED
|
|
images/base_plain_fp16_p1.webp
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
images/gallery/base_comfyui_lora0_p0_s11.webp
CHANGED
|
|
images/gallery/base_comfyui_lora0_p1_s11.webp
CHANGED
|
|
Git LFS Details
|
images/gallery/base_comfyui_lora0_p2_s11.webp
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
images/gallery/base_comfyui_lora0_p3_s11.webp
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
images/gallery/base_comfyui_lora0_p4_s11.webp
CHANGED
|
|
images/gallery/base_comfyui_lora0_p5_s11.webp
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
images/gallery/base_comfyui_lora0_p6_s11.webp
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
images/gallery/base_comfyui_lora0_p7_s11.webp
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
images/gallery/base_comfyui_lora1_p0_s11.webp
CHANGED
|
|
Git LFS Details
|
images/gallery/base_comfyui_lora1_p1_s11.webp
CHANGED
|
|
images/gallery/base_comfyui_lora1_p2_s11.webp
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
images/gallery/base_comfyui_lora1_p3_s11.webp
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
images/gallery/base_comfyui_lora1_p4_s11.webp
CHANGED
|
|
images/gallery/base_comfyui_lora1_p5_s11.webp
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
images/gallery/base_comfyui_lora1_p6_s11.webp
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
images/gallery/base_comfyui_lora1_p7_s11.webp
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
images/gallery/base_comfyui_p0_s11.webp
CHANGED
|
|
images/gallery/base_comfyui_p0_s12.webp
CHANGED
|
|
images/gallery/base_comfyui_p1_s11.webp
CHANGED
|
|
Git LFS Details
|
images/gallery/base_comfyui_p1_s12.webp
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
images/gallery/base_comfyui_p2_s11.webp
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
images/gallery/base_comfyui_p2_s12.webp
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
images/gallery/base_comfyui_p3_s11.webp
CHANGED
|
|
Git LFS Details
|
images/gallery/base_comfyui_p3_s12.webp
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
images/gallery/base_comfyui_p4_s11.webp
CHANGED
|
|
images/gallery/base_comfyui_p4_s12.webp
CHANGED
|
|
images/gallery/base_comfyui_p5_s11.webp
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
images/gallery/base_comfyui_p5_s12.webp
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
images/gallery/base_comfyui_p6_s11.webp
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
images/gallery/base_comfyui_p6_s12.webp
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
images/gallery/base_comfyui_p7_s11.webp
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
images/gallery/base_comfyui_p7_s12.webp
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
images/gallery/base_diffusers_p0_s11.webp
CHANGED
|
|
images/gallery/base_diffusers_p0_s12.webp
CHANGED
|
|
Git LFS Details
|
images/gallery/base_diffusers_p1_s11.webp
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
images/gallery/base_diffusers_p1_s12.webp
CHANGED
|
|
Git LFS Details
|
images/gallery/base_diffusers_p2_s11.webp
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
images/gallery/base_diffusers_p2_s12.webp
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
images/gallery/base_diffusers_p3_s11.webp
CHANGED
|
|
images/gallery/base_diffusers_p3_s12.webp
CHANGED
|
|
Git LFS Details
|
images/gallery/base_diffusers_p4_s11.webp
CHANGED
|
|
images/gallery/base_diffusers_p4_s12.webp
CHANGED
|
|
images/gallery/base_diffusers_p5_s11.webp
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|