Instructions to use Alibaba-Research-Intelligence-Computing/wan-toy-transform with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Alibaba-Research-Intelligence-Computing/wan-toy-transform with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image, export_to_video # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Alibaba-Research-Intelligence-Computing/wan-toy-transform", dtype=torch.bfloat16, device_map="cuda") pipe.to("cuda") prompt = "A man with short gray hair plays a red electric guitar." image = load_image( "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/guitar-man.png" ) output = pipe(image=image, prompt=prompt).frames[0] export_to_video(output, "output.mp4") - Notebooks
- Google Colab
- Kaggle
| { | |
| "alpha_pattern": {}, | |
| "auto_mapping": null, | |
| "base_model_name_or_path": null, | |
| "bias": "none", | |
| "corda_config": null, | |
| "eva_config": null, | |
| "exclude_modules": null, | |
| "fan_in_fan_out": false, | |
| "inference_mode": false, | |
| "init_lora_weights": true, | |
| "layer_replication": null, | |
| "layers_pattern": null, | |
| "layers_to_transform": null, | |
| "loftq_config": {}, | |
| "lora_alpha": 96, | |
| "lora_bias": false, | |
| "lora_dropout": 0.0, | |
| "megatron_config": null, | |
| "megatron_core": "megatron.core", | |
| "modules_to_save": null, | |
| "peft_type": "LORA", | |
| "r": 96, | |
| "rank_pattern": {}, | |
| "revision": null, | |
| "target_modules": [ | |
| "q", | |
| "k_img", | |
| "k", | |
| "v_img", | |
| "v", | |
| "o", | |
| "ffn.2", | |
| "ffn.0" | |
| ], | |
| "task_type": null, | |
| "trainable_token_indices": null, | |
| "use_dora": false, | |
| "use_rslora": false | |
| } |