Instructions to use Wan-AI/Wan2.1-T2V-14B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Wan-AI/Wan2.1-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("Wan-AI/Wan2.1-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] - Inference
- Notebooks
- Google Colab
- Kaggle
Set default `num_inference_steps` for the Inference Widget
#24
by sbrandeis HF Staff - opened
With this change, the inference widget displayed on the Hugging Face Hub will perform requests with num_inference_requests parameter set to 10.
This should speed up inference and result into a better UX.
StevenZhang changed pull request status to closed
StevenZhang changed pull request status to open
StevenZhang changed pull request status to merged
A young woman (early 20s, casual outfit) sits at a cozy desk with a laptop, smartphone, and a cup of coffee.