Run this model with HF Jobs
Run Edapinenut/fewsteprl-sd35 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/Edapinenut/fewsteprl-sd35. 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/Edapinenut/fewsteprl-sd35 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 Edapinenut/fewsteprl-sd35 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Edapinenut/fewsteprl-sd35 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-3.5-medium", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("Edapinenut/fewsteprl-sd35") 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
FewStepRL β SD3.5-Medium checkpoints
Released checkpoints of FewStepRL: Fine-tuning Few-step Diffusion Models with Reinforcement Learning (image experiments, 4-step SD3.5-Medium flow map).
Paper (arXiv:2611.08240) Β· Code Β· Project page Β· Video checkpoints (Wan2.1)
Contents
<trial>/
config.yaml # the config the run saved
checkpoint-<step>/generator_ema.pt # EMA generator: Stage-3 LoRA + delta_embedder
aux_vel/{mix,ocr}/
config.yaml
aux_v_transformer/ # auxiliary v-predictor (diffusers SD3Transformer2DModel)
SHA256SUMS
| trial | trainer | reward | step |
|---|---|---|---|
| meanflownft_mix | meanflow_nft |
mixed | 400 |
| dmdnft_mix | dmdnft_rl |
mixed | 400 |
| dmdawm_mix | dmdawm_rl |
mixed | 400 |
| fewstepgrpo_mix | meanflowgrpo_rl |
mixed | 300 |
| meanflowawm_mix | meanflowawm_rl |
mixed | 400 |
| meanflowopsd_mix | meanflowopsd_rl |
mixed | 400 |
| reflmx_mix | meanflowrefl_rl |
mixed | 400 |
| flowgrpo_mix / awm_mix / nft_mix | original objectives (baselines) | mixed | 400 |
| meanflownft_ocr | meanflow_nft |
OCR | 200 |
| dmdnft_ocr | dmdnft_rl |
OCR | 200 |
| dmdawm_ocr | dmdawm_rl |
OCR | 400 |
| fewstepgrpo_ocr | meanflowgrpo_rl |
OCR | 200 |
| meanflowawm_ocr | meanflowawm_rl |
OCR | 400 |
Scores and per-checkpoint notes: checkpoints/README.md.
Usage
Download the weights into the checkpoints/ directory of the code repository:
git clone https://github.com/EDAPINENUT/fewsteprl-sd35 && cd fewsteprl-sd35
bash download_scripts/download_assets.sh # SD3.5-Medium, AnyFlow Stage-1/2 LoRAs, reward models
hf download Delcher/fewsteprl-sd35 --local-dir checkpoints --include "*.pt" "*.safetensors"
cd checkpoints && shasum -a 256 -c SHA256SUMS && cd ..
generator_ema.pt is applied on top of SD3.5-Medium + the AnyFlow Stage-1 and Stage-2 LoRAs, never alone:
bash scripts/eval/sample.sh meanflownft_mix # 4-step sampling with a released checkpoint
bash scripts/eval/eval_ckpt.sh meanflownft_mix 8 # sample + score
The aux_vel/{mix,ocr} v-predictors are only needed to train the dmd* trials.
License
The weights are derivatives of SD3.5-Medium and are subject to the Stability AI Community License.
Citation
@article{lin2026fewsteprl,
title = {FewStepRL: Fine-tuning Few-step Diffusion Models with Reinforcement Learning},
author = {Lin, Haitao and Ren, Minsi and Li, Yang and Ge, Xingtong and
Hu, Zheyuan and Hu, Peiyan and Wu, Tailin},
journal = {arXiv preprint arXiv:2611.08240},
year = {2026}
}
- Downloads last month
- -
Model tree for Edapinenut/fewsteprl-sd35
Base model
stabilityai/stable-diffusion-3.5-medium