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/scripts/pssh.sh from darask0/MOSS-Image_4-step_adapter_lora: direct link, hf CLI and curl.
- Browser
- Download file 713 Bytes
-
https://huggingface.co/darask0/MOSS-Image_4-step_adapter_lora/resolve/main/code/scripts/pssh.sh
- Command line
-
hf download hf://darask0/MOSS-Image_4-step_adapter_lora/code/scripts/pssh.sh
-
curl -L -o pssh.sh https://huggingface.co/darask0/MOSS-Image_4-step_adapter_lora/resolve/main/code/scripts/pssh.sh
713 Bytes
| # ssh/rsync helpers for the pod in scripts/pod.env: pssh.sh CMD... | pssh.sh --push SRC DST | pssh.sh --pull SRC DST | |
| set -euo pipefail | |
| source "$(dirname "$0")/pod.env" | |
| KEY=$HOME/.runpod/ssh/runpodctl-ssh-key | |
| OPTS=(-i "$KEY" -p "$POD_PORT" -o StrictHostKeyChecking=accept-new -o UserKnownHostsFile=$HOME/.runpod/ssh/known_hosts -o ConnectTimeout=20 -o ServerAliveInterval=30) | |
| if [[ "${1:-}" == --push ]]; then rsync -rlptz --no-owner --no-group --exclude .git -e "ssh ${OPTS[*]}" "$2" "root@$POD_HOST:$3" | |
| elif [[ "${1:-}" == --pull ]]; then rsync -rlptz --no-owner --no-group --exclude .git -e "ssh ${OPTS[*]}" "root@$POD_HOST:$2" "$3" | |
| else exec ssh "${OPTS[@]}" "root@$POD_HOST" "$@"; fi | |