DFloat11 / Chroma-DF11

huggingface.co
Total runs: 2.6K
24-hour runs: 14
7-day runs: 95
30-day runs: 93
Model's Last Updated: June 26 2025
text-to-image

Introduction of Chroma-DF11

Model Details of Chroma-DF11

DFloat11 Compressed Model: lodestones/Chroma

This is a DFloat11 losslessly compressed version of the original lodestones/Chroma (v39) model. It reduces model size by 32% compared to the original BFloat16 model, while maintaining bit-identical outputs and supporting efficient GPU inference .

🔥🔥🔥 Thanks to DFloat11 compression, Chroma can now run smoothly on a single 16GB GPU without any quality loss. 🔥🔥🔥

📊 Performance Comparison
Metric Chroma (BFloat16) Chroma (DFloat11)
Model Size 17.80 GB 12.16 GB
Peak GPU Memory
(1024×1024 image generation)
18.33 GB 13.26 GB
Generation Time
(A100 GPU)
56 seconds 59 seconds
🔧 How to Use
  1. Install or upgrade the DFloat11 pip package (installs the CUDA kernel automatically; requires a CUDA-compatible GPU and PyTorch installed) :

    pip install -U dfloat11[cuda12]
    # or if you have CUDA version 11:
    # pip install -U dfloat11[cuda11]
    
  2. Install or upgrade the diffusers library.

    pip install -U diffusers
    
  3. To use the DFloat11 model, run the following example code in Python:

    import torch
    from diffusers import ChromaTransformer2DModel, ChromaPipeline
    from transformers.modeling_utils import no_init_weights
    from dfloat11 import DFloat11Model
    
    with no_init_weights():
        transformer = ChromaTransformer2DModel().to(torch.bfloat16)
    
    DFloat11Model.from_pretrained(
        "DFloat11/Chroma-DF11",
        bfloat16_model=transformer,
        device="cpu",
    )
    
    pipe = ChromaPipeline.from_pretrained("lodestones/Chroma", transformer=transformer, torch_dtype=torch.bfloat16)
    pipe.enable_model_cpu_offload()
    
    prompt = [
        "A high-fashion close-up portrait of a blonde woman in clear sunglasses. The image uses a bold teal and red color split for dramatic lighting. The background is a simple teal-green. The photo is sharp and well-composed, and is designed for viewing with anaglyph 3D glasses for optimal effect. It looks professionally done."
    ]
    negative_prompt =  ["low quality, ugly, unfinished, out of focus, deformed, disfigure, blurry, smudged, restricted palette, flat colors"]
    
    image = pipe(
        prompt=prompt,
        negative_prompt=negative_prompt,
        generator=torch.Generator("cpu").manual_seed(433),
        num_inference_steps=40,
        guidance_scale=3.0,
    ).images[0]
    
    image.save("chroma-output.png")
    
🔍 How It Works

We apply Huffman coding to losslessly compress the exponent bits of BFloat16 model weights, which are highly compressible (their 8 bits carry only ~2.6 bits of actual information). To enable fast inference, we implement a highly efficient CUDA kernel that performs on-the-fly weight decompression directly on the GPU.

The result is a model that is ~32% smaller , delivers bit-identical outputs , and achieves performance comparable to the original BFloat16 model.

Learn more in our research paper .

📄 Learn More

Runs of DFloat11 Chroma-DF11 on huggingface.co

2.6K
Total runs
14
24-hour runs
162
3-day runs
95
7-day runs
93
30-day runs

More Information About Chroma-DF11 huggingface.co Model

Chroma-DF11 huggingface.co

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

Chroma-DF11 huggingface.co Url

https://huggingface.co/DFloat11/Chroma-DF11

DFloat11 Chroma-DF11 online free

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

DFloat11 Chroma-DF11 online free url in huggingface.co:

https://huggingface.co/DFloat11/Chroma-DF11

Chroma-DF11 install

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

Chroma-DF11 install url in huggingface.co:

https://huggingface.co/DFloat11/Chroma-DF11

Url of Chroma-DF11

Chroma-DF11 huggingface.co Url

Provider of Chroma-DF11 huggingface.co

DFloat11
ORGANIZATIONS

Other API from DFloat11