KBlueLeaf / Stable-Cascade-FP16-fixed

huggingface.co
Total runs: 0
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: February 20 2024

Introduction of Stable-Cascade-FP16-fixed

Model Details of Stable-Cascade-FP16-fixed

Stable-Cascade FP16 fix

A modified version of Stable-Cascade which is compatibile with fp16 inference

In theory, you don't need to actually download this model file. It is possible to do onfly modification. This model is for experiments.

Demo
FP16 BF16
image/png image/png

LPIPS difference: 0.088

FP16 BF16
image/png image/png

LPIPS difference: 0.012

How

After doing some check to the L1 norm of each hidden state. I found the last block group(8, 24, 24, 8 <- this one) make the hiddens states become bigger and bigger.

So I just apply some transformation on the TimestepBlock to directly modify the scale of hidden state. (Since it is not a residual block, so this is possible)

How the transformation be done is written in the modified "stable_cascade.py", you can put the file into kohya-ss/sd-scripts' stable-cascade branch and uncomment things to check weights or doing the conversion by yourselve.

FP8

Some people may know the FP8 quant for inference SDXL with lowvram cards. The technique can be applied to this model too.
But since the last block group is basically ruined, so it is recommend to ignore the last block group:

for name, module in generator_c.named_modules():
    if "up_blocks.1" in name: continue
    if isinstance(module, torch.nn.Linear):
        module.to(torch.float8_e5m2)
    elif isinstance(module, torch.nn.Conv2d):
        module.to(torch.float8_e5m2)
    elif isinstance(module, torch.nn.MultiheadAttention):
        module.to(torch.float8_e5m2)

This sample code should transform 70% of weight into fp8. (Use FP8 weight with scale is better solution, it is recommended to implement that)

I have tried different transform settings which is more friendly for FP8 but the differences between original model is more significant.

FP8 Demo (Same Seed): image/png

Notice

The modified version of model will not be compatibile with the lora/lycoris trained on original weight.
(actually it can, just do the same transformation, I'm considering to rewrite a version to use key name to determine what to do.)

Also the ControlNets will not be compatible too. Unless you also apply the needed transformation to them.

I don't want to do all of these by myself so hope some others will do that.

License

Stable-Cascade is published with a non-commercial lisence so I use CC-BY-NC 4.0 to publish this model. The source code to make this model is published with apache-2.0 license

Runs of KBlueLeaf Stable-Cascade-FP16-fixed on huggingface.co

0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About Stable-Cascade-FP16-fixed huggingface.co Model

More Stable-Cascade-FP16-fixed license Visit here:

https://choosealicense.com/licenses/cc-by-nc-4.0

Stable-Cascade-FP16-fixed huggingface.co

Stable-Cascade-FP16-fixed huggingface.co is an AI model on huggingface.co that provides Stable-Cascade-FP16-fixed's model effect (), which can be used instantly with this KBlueLeaf Stable-Cascade-FP16-fixed model. huggingface.co supports a free trial of the Stable-Cascade-FP16-fixed model, and also provides paid use of the Stable-Cascade-FP16-fixed. Support call Stable-Cascade-FP16-fixed model through api, including Node.js, Python, http.

Stable-Cascade-FP16-fixed huggingface.co Url

https://huggingface.co/KBlueLeaf/Stable-Cascade-FP16-fixed

KBlueLeaf Stable-Cascade-FP16-fixed online free

Stable-Cascade-FP16-fixed huggingface.co is an online trial and call api platform, which integrates Stable-Cascade-FP16-fixed's modeling effects, including api services, and provides a free online trial of Stable-Cascade-FP16-fixed, you can try Stable-Cascade-FP16-fixed online for free by clicking the link below.

KBlueLeaf Stable-Cascade-FP16-fixed online free url in huggingface.co:

https://huggingface.co/KBlueLeaf/Stable-Cascade-FP16-fixed

Stable-Cascade-FP16-fixed install

Stable-Cascade-FP16-fixed is an open source model from GitHub that offers a free installation service, and any user can find Stable-Cascade-FP16-fixed on GitHub to install. At the same time, huggingface.co provides the effect of Stable-Cascade-FP16-fixed install, users can directly use Stable-Cascade-FP16-fixed installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

Stable-Cascade-FP16-fixed install url in huggingface.co:

https://huggingface.co/KBlueLeaf/Stable-Cascade-FP16-fixed

Url of Stable-Cascade-FP16-fixed

Stable-Cascade-FP16-fixed huggingface.co Url

Provider of Stable-Cascade-FP16-fixed huggingface.co

KBlueLeaf
ORGANIZATIONS

Other API from KBlueLeaf

huggingface.co

Total runs: 40.1K
Run Growth: 32.0K
Growth Rate: 79.77%
Updated:November 29 2024
huggingface.co

Total runs: 26.9K
Run Growth: -10.3K
Growth Rate: -38.08%
Updated:January 22 2025
huggingface.co

Total runs: 1.6K
Run Growth: -1.7K
Growth Rate: -106.24%
Updated:November 29 2024
huggingface.co

Total runs: 1.5K
Run Growth: -133
Growth Rate: -9.17%
Updated:August 14 2023
huggingface.co

Total runs: 1.1K
Run Growth: -271
Growth Rate: -24.09%
Updated:November 29 2024
huggingface.co

Total runs: 62
Run Growth: -21
Growth Rate: -33.87%
Updated:February 26 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:April 18 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:July 04 2026