Instructions to use FastVideo/FastHunyuan-diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use FastVideo/FastHunyuan-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("FastVideo/FastHunyuan-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
Download text_encoder/config.json from FastVideo/FastHunyuan-diffusers: direct link, hf CLI and curl.
- Browser
- Download file 780 Bytes
-
https://huggingface.co/FastVideo/FastHunyuan-diffusers/resolve/7e948fca38562e218ae34485e005956592d36d9b/text_encoder/config.json
- Command line
-
hf download hf://FastVideo/FastHunyuan-diffusers@7e948fca38562e218ae34485e005956592d36d9b/text_encoder/config.json
-
curl -L -o config.json https://huggingface.co/FastVideo/FastHunyuan-diffusers/resolve/7e948fca38562e218ae34485e005956592d36d9b/text_encoder/config.json
780 Bytes
| { | |
| "_name_or_path": "/ephemeral/hao.zhang/codefolder/FastVideo-OSP/data/FastHunyuan/text_encoder", | |
| "architectures": [ | |
| "LlamaModel" | |
| ], | |
| "attention_bias": false, | |
| "attention_dropout": 0.0, | |
| "bos_token_id": 128000, | |
| "eos_token_id": 128001, | |
| "head_dim": 128, | |
| "hidden_act": "silu", | |
| "hidden_size": 4096, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 14336, | |
| "max_position_embeddings": 8192, | |
| "mlp_bias": false, | |
| "model_type": "llama", | |
| "num_attention_heads": 32, | |
| "num_hidden_layers": 32, | |
| "num_key_value_heads": 8, | |
| "pretraining_tp": 1, | |
| "rms_norm_eps": 1e-05, | |
| "rope_scaling": null, | |
| "rope_theta": 500000.0, | |
| "tie_word_embeddings": false, | |
| "torch_dtype": "float16", | |
| "transformers_version": "4.46.1", | |
| "use_cache": true, | |
| "vocab_size": 128320 | |
| } | |