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
Edapinenut commited on
Model card
Browse files1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192---license: otherlicense_name: stabilityai-ai-communitylicense_link: https://huggingface.co/stabilityai/stable-diffusion-3.5-medium/blob/main/LICENSE.mdbase_model: stabilityai/stable-diffusion-3.5-mediumpipeline_tag: text-to-imagelibrary_name: diffuserstags:- lora- reinforcement-learning- few-step- flow-map- fewsteprl---
# 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)](https://arxiv.org/abs/2611.08240) ·[Code](https://github.com/EDAPINENUT/fewsteprl-sd35) ·[Project page](https://edapinenut.github.io/fewsteprl.page/) ·[Video checkpoints (Wan2.1)](https://huggingface.co/Delcher/fewsteprl-wan21)
## Contents
```<trial>/ config.yaml # the config the run saved checkpoint-<step>/generator_ema.pt # EMA generator: Stage-3 LoRA + delta_embedderaux_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](https://github.com/EDAPINENUT/fewsteprl-sd35/blob/main/checkpoints/README.md).
## Usage
Download the weights into the `checkpoints/` directory of the code repository:
```bashgit clone https://github.com/EDAPINENUT/fewsteprl-sd35 && cd fewsteprl-sd35bash download_scripts/download_assets.sh # SD3.5-Medium, AnyFlow Stage-1/2 LoRAs, reward modelshf 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:
```bashbash scripts/eval/sample.sh meanflownft_mix # 4-step sampling with a released checkpointbash 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](https://huggingface.co/stabilityai/stable-diffusion-3.5-medium/blob/main/LICENSE.md).
## Citation
```bibtex@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}}```README.mdAdded+92