Instructions to use BestWishYsh/MagicTime with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use BestWishYsh/MagicTime with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("BestWishYsh/MagicTime", 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 Magic_Weights/magic_text_encoder/default/adapter_config.json from BestWishYsh/MagicTime: direct link, hf CLI and curl.
- Browser
- Download file 654 Bytes
-
https://huggingface.co/BestWishYsh/MagicTime/resolve/refs%2Fpr%2F3/Magic_Weights/magic_text_encoder/default/adapter_config.json
- Command line
-
hf download hf://BestWishYsh/MagicTime@refs/pr/3/Magic_Weights/magic_text_encoder/default/adapter_config.json
-
curl -L -o adapter_config.json https://huggingface.co/BestWishYsh/MagicTime/resolve/refs%2Fpr%2F3/Magic_Weights/magic_text_encoder/default/adapter_config.json
654 Bytes
| { | |
| "alpha_pattern": {}, | |
| "auto_mapping": null, | |
| "base_model_name_or_path": null, | |
| "bias": "none", | |
| "enable_lora": null, | |
| "fan_in_fan_out": false, | |
| "inference_mode": false, | |
| "init_lora_weights": true, | |
| "layers_pattern": null, | |
| "layers_to_transform": null, | |
| "loftq_config": {}, | |
| "lora_alpha": 1, | |
| "lora_dropout": 0.05, | |
| "lora_dtype": "fp32", | |
| "megatron_config": null, | |
| "megatron_core": "megatron.core", | |
| "modules_to_save": null, | |
| "peft_type": null, | |
| "r": 32, | |
| "rank_pattern": {}, | |
| "revision": null, | |
| "swift_type": "LORA", | |
| "target_modules": ".*self_attn.*", | |
| "task_type": null, | |
| "use_merged_linear": false, | |
| "use_qa_lora": false | |
| } |