Instructions to use FastVideo/FastWan-QAD-1.3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use FastVideo/FastWan-QAD-1.3B with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("FastVideo/FastWan-QAD-1.3B", 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
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -49,15 +49,17 @@ The model is built on [Wan-AI/Wan2.1-T2V-1.3B-Diffusers](https://huggingface.co/
|
|
| 49 |
## Inference
|
| 50 |
|
| 51 |
```bash
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
cd
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
|
|
|
|
|
|
| 61 |
```
|
| 62 |
|
| 63 |
## Training
|
|
|
|
| 49 |
## Inference
|
| 50 |
|
| 51 |
```bash
|
| 52 |
+
docker run --gpus all --ipc=host --rm -it ghcr.io/hao-ai-lab/fastvideo/fastvideo-dev:py3.12-sha-f889e6b bash
|
| 53 |
+
|
| 54 |
+
# should drop you in /FastVideo with venv already activated
|
| 55 |
+
git fetch && git checkout main
|
| 56 |
+
# build fastvideo-kernel
|
| 57 |
+
cd fastvideo-kernels/ && ./build.sh && cd ..
|
| 58 |
+
git clone https://github.com/madebyollin/taehv
|
| 59 |
+
uv pip install ./taehv
|
| 60 |
+
|
| 61 |
+
# run generation:
|
| 62 |
+
FASTVIDEO_DISABLE_ATTENTION_COMPILE=0 FASTVIDEO_ATTENTION_BACKEND=ATTN_QAT_INFER python examples/inference/optimizations/FastWan_QAD_TAEHV.py --model FastVideo/FastWan-QAD-1.3B --distilled_model "" --taehv_checkpoint taehv/taew2_1.pth
|
| 63 |
```
|
| 64 |
|
| 65 |
## Training
|