Instructions to use Wan-AI/Wan2.1-T2V-1.3B-Diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Wan-AI/Wan2.1-T2V-1.3B-Diffusers 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-1.3B-Diffusers", 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
Update text_encoder/config.json
#15
by Jiqing - opened
- text_encoder/config.json +1 -1
text_encoder/config.json
CHANGED
|
@@ -25,7 +25,7 @@
|
|
| 25 |
"relative_attention_max_distance": 128,
|
| 26 |
"relative_attention_num_buckets": 32,
|
| 27 |
"scalable_attention": true,
|
| 28 |
-
"tie_word_embeddings":
|
| 29 |
"tokenizer_class": "T5Tokenizer",
|
| 30 |
"torch_dtype": "float32",
|
| 31 |
"transformers_version": "4.48.0.dev0",
|
|
|
|
| 25 |
"relative_attention_max_distance": 128,
|
| 26 |
"relative_attention_num_buckets": 32,
|
| 27 |
"scalable_attention": true,
|
| 28 |
+
"tie_word_embeddings": true,
|
| 29 |
"tokenizer_class": "T5Tokenizer",
|
| 30 |
"torch_dtype": "float32",
|
| 31 |
"transformers_version": "4.48.0.dev0",
|