Instructions to use darask0/MOSS-Image_4-step_adapter_lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use darask0/MOSS-Image_4-step_adapter_lora with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("OpenMOSS-Team/MOSS-Image-SFT", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("darask0/MOSS-Image_4-step_adapter_lora") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Download code/configs/smoke.json from darask0/MOSS-Image_4-step_adapter_lora: direct link, hf CLI and curl.
- Browser
- Download file 242 Bytes
-
https://huggingface.co/darask0/MOSS-Image_4-step_adapter_lora/resolve/main/code/configs/smoke.json
- Command line
-
hf download hf://darask0/MOSS-Image_4-step_adapter_lora/code/configs/smoke.json
-
curl -L -o smoke.json https://huggingface.co/darask0/MOSS-Image_4-step_adapter_lora/resolve/main/code/configs/smoke.json
242 Bytes
| { | |
| "out_dir": "/workspace/runs/smoke", | |
| "iterations": 24, | |
| "micro": 1, | |
| "fake_per_gen": 2, | |
| "fake_warmup": 4, | |
| "adv_start": 2, | |
| "adv_warmup": 4, | |
| "log_every": 2, | |
| "sample_every": 12, | |
| "save_every": 24, | |
| "export_every": 24, | |
| "eval_count": 4 | |
| } | |