Instructions to use Skywork/Matrix-Game with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Skywork/Matrix-Game 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("Skywork/Matrix-Game", 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
Download text_encoder_i2v/generation_config.json from Skywork/Matrix-Game: direct link, hf CLI and curl.
- Browser
- Download file 121 Bytes
-
https://huggingface.co/Skywork/Matrix-Game/resolve/refs%2Fpr%2F4/text_encoder_i2v/generation_config.json
- Command line
-
hf download hf://Skywork/Matrix-Game@refs/pr/4/text_encoder_i2v/generation_config.json
-
curl -L -o generation_config.json https://huggingface.co/Skywork/Matrix-Game/resolve/refs%2Fpr%2F4/text_encoder_i2v/generation_config.json
121 Bytes
| { | |
| "_from_model_config": true, | |
| "bos_token_id": 128000, | |
| "eos_token_id": 128001, | |
| "transformers_version": "4.40.1" | |
| } | |