Run this model with HF Jobs
Run akhaliq/MOSS-Image-SFT-4-steps on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/akhaliq/MOSS-Image-SFT-4-steps. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/akhaliq/MOSS-Image-SFT-4-steps on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use akhaliq/MOSS-Image-SFT-4-steps with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use akhaliq/MOSS-Image-SFT-4-steps 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("akhaliq/MOSS-Image-SFT-4-steps") 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
Quickstart restructure: ComfyUI-first (download table + workflow), diffusers/CLI secondary
Browse files56 unmodified lines57585960616061626364656667686970717273747576777879808182838485868788899018 unmodified lines10911011186878811211311411511611756 unmodified lines
## Quickstart
**diffusers** (base bf16 transformer + this LoRA, release sampler, 4 steps, CFG 1).Note: the custom pipeline has **no `load_lora_weights`** β use the bundled### π’ Easiest β ComfyUI (recommended)
1. **Update ComfyUI** (needs the MOSS-Image support from 16 Oct 2026 β the `Load CLIP` node must offer type `moss_image`).2. **Download 4 files** into your ComfyUI folders:
| File | Put in | Source | |---|---|---| | `moss_image_sft_bf16.safetensors` (10 GB) | `models/diffusion_models/` | [Comfy-Org/MOSS-Image](https://huggingface.co/Comfy-Org/MOSS-Image) | | `qwen3.5_9b_int8_convrot.safetensors` (10 GB) | `models/text_encoders/` | [Comfy-Org/MOSS-Image](https://huggingface.co/Comfy-Org/MOSS-Image) | | `flux2-vae.safetensors` (0.3 GB) | `models/vae/` | [Comfy-Org/MOSS-Image](https://huggingface.co/Comfy-Org/MOSS-Image) | | **`moss_image_sft_4step_v2.0.safetensors`** (1.2 GB) | `models/loras/` | **this repo** |
3. **Drag [`comfyui/moss-image-4step-turbo.json`](https://huggingface.co/akhaliq/MOSS-Image-SFT-4-steps/blob/main/comfyui/moss-image-4step-turbo.json) onto the canvas** and hit Queue. The workflow already has the right settings: `LoraLoaderModelOnly` at strength 1.0, sampler **euler / simple, 4 steps, CFG 1.0**.
> β οΈ Running the default MOSS-Image template (25β50 steps, CFG 2.5β3) with this> LoRA gives smudged, overcooked output β the distilled model wants **4 steps> and CFG 1.0** (6β8 steps above 1024Β²). Full-quality option: load the merged> fp32 single file `moss_image_sft_4step_v2.0_fp32.safetensors` in> `Load Diffusion Model` and skip the LoRA entirely (see *ComfyUI* below).
### π diffusers
Base bf16 transformer + this LoRA, release sampler, 4 steps, CFG 1. Note: thecustom pipeline has **no `load_lora_weights`** β use the bundled[`apply_lora.py`](https://huggingface.co/akhaliq/MOSS-Image-SFT-4-steps/blob/main/apply_lora.py):
```python18 unmodified lines> degrades fine text first. For maximum quality use the merged **fp32**> `transformer/` instead.
**ComfyUI:** `LoraLoaderModelOnly` β `lora.safetensors` (strength 1.0) on thestock MOSS-Image-SFT diffusion model; sampler `euler`, scheduler `simple`(flow-matching, shift 5), **4 steps, CFG 1.0**. Done β nothing else to load.### π» Single-file CLI
`python inference.py --prompt "..." --steps 4 --out out.png`
**Resolution β steps** (measured, [`hires_probe/`](https://huggingface.co/datasets/akhaliq/moss-image-turbo-eval)):the 4-step anchors cover ~4k latent tokens. Above that, give it more steps βREADME.md+31-5