Instructions to use wavespeed/Wan2.1-T2V-14B-Diffusers-fp16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use wavespeed/Wan2.1-T2V-14B-Diffusers-fp16 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("wavespeed/Wan2.1-T2V-14B-Diffusers-fp16", 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
File size: 1,359 Bytes
574873c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | ---
base_model: Wan-AI/Wan2.1-T2V-14B-Diffusers
language:
- en
- zh
library_name: diffusers
license: apache-2.0
pipeline_tag: text-to-video
tags:
- wan
- wan2.1
- text-to-video
- video-generation
- fp16
- diffusers
base_model_relation: quantized
---
# Wan2.1-T2V-14B-Diffusers-fp16
An fp16 cast of [Wan2.1-T2V-14B-Diffusers](https://huggingface.co/Wan-AI/Wan2.1-T2V-14B-Diffusers).
## What was changed
Upstream ships the transformer in fp32. Here every component is stored in fp16,
which halves the download and the resident weight footprint — the transformer
goes from ~57.2 GB to ~28.6 GB — with no change to tensor names or shapes.
Nothing is quantized; this is a straight dtype cast.
fp16 rather than bf16 is deliberate: it is the dtype our fp8/nf4 variants are
built on top of, so the whole family shares one baseline.
## Usage
```python
import torch
from diffusers import WanPipeline
pipe = WanPipeline.from_pretrained(
"wavespeed/Wan2.1-T2V-14B-Diffusers-fp16", torch_dtype=torch.float16
).to("cuda")
frames = pipe("a paper boat drifting down a gutter after rain", num_frames=81).frames[0]
```
## Related
- [`wavespeed/Wan2.1-T2V-14B-Diffusers-fp16-nf4`](https://huggingface.co/wavespeed/Wan2.1-T2V-14B-Diffusers-fp16-nf4)
— the same baseline with NF4-quantized transformer blocks.
## License
Apache-2.0, inherited from Wan2.1.
|