Run this model with HF Jobs
Run DFloat11/Wan2.1-T2V-14B-Diffusers-DF11 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/DFloat11/Wan2.1-T2V-14B-Diffusers-DF11. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/DFloat11/Wan2.1-T2V-14B-Diffusers-DF11 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use DFloat11/Wan2.1-T2V-14B-Diffusers-DF11 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use DFloat11/Wan2.1-T2V-14B-Diffusers-DF11 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("DFloat11/Wan2.1-T2V-14B-Diffusers-DF11", 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
import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("DFloat11/Wan2.1-T2V-14B-Diffusers-DF11", dtype=torch.bfloat16, device_map="cuda")
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]
DFloat11 Compressed Model: Wan-AI/Wan2.1-T2V-14B-Diffusers
This model uses DFloat11 lossless compression. It's 30% smaller than the original BFloat16 model, yet produces bit-identical outputs and runs efficiently on GPUs.
π Performance Comparison
| Metric | Wan2.1-T2V-14B (BFloat16) | Wan2.1-T2V-14B (DFloat11) |
|---|---|---|
| Model Size | 28.64 GB | 19.39 GB |
| Peak GPU Memory (2s 480p Video) |
30.79 GB | 22.22 GB |
| Generation Time (an A100 GPU) |
339 seconds | 348 seconds |
π How It Works
We apply Huffman coding to the exponent bits of BFloat16 model weights, which are highly compressible. We leverage hardware-aware algorithmic designs to enable highly efficient, on-the-fly weight decompression directly on the GPU. Find out more in our research paper.
π§ How to Use
A complete usage guide is available in our GitHub repository: https://github.com/LeanModels/DFloat11/tree/master/examples/wan2.1.
π Learn More
- Downloads last month
- 1,174