Instructions to use vidfom/Wan-T2V_14B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use vidfom/Wan-T2V_14B with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("vidfom/Wan-T2V_14B", 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
|
Download DiffSynth-Studio/examples/TeaCache/README.md from vidfom/Wan-T2V_14B: direct link, hf CLI and curl.
- Browser
- Download file 1.19 kB
-
https://huggingface.co/vidfom/Wan-T2V_14B/resolve/main/DiffSynth-Studio/examples/TeaCache/README.md
- Command line
-
hf download hf://vidfom/Wan-T2V_14B/DiffSynth-Studio/examples/TeaCache/README.md
-
curl -L -o README.md https://huggingface.co/vidfom/Wan-T2V_14B/resolve/main/DiffSynth-Studio/examples/TeaCache/README.md
1.19 kB
| # TeaCache | |
| TeaCache ([Timestep Embedding Aware Cache](https://github.com/ali-vilab/TeaCache)) is a training-free caching approach that estimates and leverages the fluctuating differences among model outputs across timesteps, thereby accelerating the inference. | |
| ## Examples | |
| ### FLUX | |
| Script: [./flux_teacache.py](./flux_teacache.py) | |
| Model: FLUX.1-dev | |
| Steps: 50 | |
| GPU: A100 | |
| |TeaCache is disabled|tea_cache_l1_thresh=0.2|tea_cache_l1_thresh=0.8| | |
| |-|-|-| | |
| |23s|13s|5s| | |
| ||| | |
| ### Hunyuan Video | |
| Script: [./hunyuanvideo_teacache.py](./hunyuanvideo_teacache.py) | |
| Model: Hunyuan Video | |
| Steps: 30 | |
| GPU: A100 | |
| The following video was generated using TeaCache. It is nearly identical to [the video without TeaCache enabled](https://github.com/user-attachments/assets/48dd24bb-0cc6-40d2-88c3-10feed3267e9), but with double the speed. | |
| https://github.com/user-attachments/assets/cd9801c5-88ce-4efc-b055-2c7737166f34 | |