Instructions to use IamCreateAI/Ruyi-Mini-7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use IamCreateAI/Ruyi-Mini-7B 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("IamCreateAI/Ruyi-Mini-7B", 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 image_encoder/preprocessor_config.json from IamCreateAI/Ruyi-Mini-7B: direct link, hf CLI and curl.
- Browser
- Download file 316 Bytes
-
https://huggingface.co/IamCreateAI/Ruyi-Mini-7B/resolve/main/image_encoder/preprocessor_config.json
- Command line
-
hf download hf://IamCreateAI/Ruyi-Mini-7B/image_encoder/preprocessor_config.json
-
curl -L -o preprocessor_config.json https://huggingface.co/IamCreateAI/Ruyi-Mini-7B/resolve/main/image_encoder/preprocessor_config.json
316 Bytes
| { | |
| "crop_size": 336, | |
| "do_center_crop": true, | |
| "do_normalize": true, | |
| "do_resize": true, | |
| "feature_extractor_type": "CLIPFeatureExtractor", | |
| "image_mean": [ | |
| 0.48145466, | |
| 0.4578275, | |
| 0.40821073 | |
| ], | |
| "image_std": [ | |
| 0.26862954, | |
| 0.26130258, | |
| 0.27577711 | |
| ], | |
| "resample": 3, | |
| "size": 336 | |
| } | |