Instructions to use Delcher/fewsteprl-wan21 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Delcher/fewsteprl-wan21 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import export_to_video # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("nvidia/AnyFlow-Wan2.1-T2V-1.3B-Diffusers", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("Delcher/fewsteprl-wan21") prompt = "A man with short gray hair plays a red electric guitar." output = pipe(prompt=prompt).frames[0] export_to_video(output, "output.mp4") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
Model card
Browse files
README.md
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: anyflow-wan-non-commercial
|
| 4 |
+
license_link: https://huggingface.co/nvidia/AnyFlow-Wan2.1-T2V-1.3B-Diffusers
|
| 5 |
+
base_model: nvidia/AnyFlow-Wan2.1-T2V-1.3B-Diffusers
|
| 6 |
+
pipeline_tag: text-to-video
|
| 7 |
+
library_name: diffusers
|
| 8 |
+
tags:
|
| 9 |
+
- lora
|
| 10 |
+
- reinforcement-learning
|
| 11 |
+
- few-step
|
| 12 |
+
- flow-map
|
| 13 |
+
- fewsteprl
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# FewStepRL — Wan2.1-T2V-1.3B checkpoints
|
| 17 |
+
|
| 18 |
+
Released checkpoints of **FewStepRL: Fine-tuning Few-step Diffusion Models with Reinforcement Learning**
|
| 19 |
+
(video experiments, 4-step AnyFlow-Wan2.1-T2V-1.3B flow map, 480×832, 81 frames).
|
| 20 |
+
|
| 21 |
+
[Paper (arXiv:2611.08240)](https://arxiv.org/abs/2611.08240) ·
|
| 22 |
+
[Code](https://github.com/EDAPINENUT/fewsteprl-wan21) ·
|
| 23 |
+
[Project page](https://edapinenut.github.io/fewsteprl.page/) ·
|
| 24 |
+
[Image checkpoints (SD3.5)](https://huggingface.co/Delcher/fewsteprl-sd35)
|
| 25 |
+
|
| 26 |
+
## Contents
|
| 27 |
+
|
| 28 |
+
```
|
| 29 |
+
<trial>/
|
| 30 |
+
config.yaml # the config the run saved
|
| 31 |
+
checkpoint-250/generator_ema.pt # EMA generator: LoRA A/B + condition_embedder.delta_embedder
|
| 32 |
+
SHA256SUMS
|
| 33 |
+
```
|
| 34 |
+
|
| 35 |
+
| trial | trainer | step |
|
| 36 |
+
|---|---|---|
|
| 37 |
+
| meanflownft | `meanflow_nft` | 250 |
|
| 38 |
+
| dmdnft | `dmdnft_rl` | 250 |
|
| 39 |
+
| dmdawm | `dmdawm_rl` | 250 |
|
| 40 |
+
| fewstepgrpo | `meanflowgrpo_rl` | 250 |
|
| 41 |
+
| meanflowawm | `meanflowawm_rl` | 250 |
|
| 42 |
+
| meanflowopsd | `meanflowopsd_rl` | 250 |
|
| 43 |
+
| reflmx | `meanflowrefl_rl` | 250 |
|
| 44 |
+
|
| 45 |
+
All trials share the reward HPSv3 general + HPSv3 percentile + VideoAlign MQ + VideoAlign TA. Scores (training
|
| 46 |
+
reward and VBench): [checkpoints/README.md](https://github.com/EDAPINENUT/fewsteprl-wan21/blob/main/checkpoints/README.md).
|
| 47 |
+
|
| 48 |
+
## Usage
|
| 49 |
+
|
| 50 |
+
Download the weights into the `checkpoints/` directory of the code repository:
|
| 51 |
+
|
| 52 |
+
```bash
|
| 53 |
+
git clone https://github.com/EDAPINENUT/fewsteprl-wan21 && cd fewsteprl-wan21
|
| 54 |
+
bash download_scripts/download_assets.sh # AnyFlow-Wan, reward models, VBench weights
|
| 55 |
+
hf download Delcher/fewsteprl-wan21 --local-dir checkpoints --include "*.pt"
|
| 56 |
+
cd checkpoints && shasum -a 256 -c SHA256SUMS && cd ..
|
| 57 |
+
```
|
| 58 |
+
|
| 59 |
+
`generator_ema.pt` is applied on top of the full AnyFlow-Wan2.1-T2V-1.3B pipeline:
|
| 60 |
+
|
| 61 |
+
```bash
|
| 62 |
+
python inference.py scripts/eval/configs/sample_wan.yaml --prompt "..." \
|
| 63 |
+
--override seed=0 mode=meanflow_nft meanflow_nft_path=checkpoints/dmdnft/checkpoint-250/generator_ema.pt
|
| 64 |
+
bash scripts/eval/eval_ckpt.sh dmdnft 8 # training rewards on the 256 test prompts
|
| 65 |
+
```
|
| 66 |
+
|
| 67 |
+
## License
|
| 68 |
+
|
| 69 |
+
The weights are derivatives of
|
| 70 |
+
[nvidia/AnyFlow-Wan2.1-T2V-1.3B-Diffusers](https://huggingface.co/nvidia/AnyFlow-Wan2.1-T2V-1.3B-Diffusers),
|
| 71 |
+
whose license restricts the model and derivative weights to **non-commercial use**.
|
| 72 |
+
|
| 73 |
+
## Citation
|
| 74 |
+
|
| 75 |
+
```bibtex
|
| 76 |
+
@article{lin2026fewsteprl,
|
| 77 |
+
title = {FewStepRL: Fine-tuning Few-step Diffusion Models with Reinforcement Learning},
|
| 78 |
+
author = {Lin, Haitao and Ren, Minsi and Li, Yang and Ge, Xingtong and
|
| 79 |
+
Hu, Zheyuan and Hu, Peiyan and Wu, Tailin},
|
| 80 |
+
journal = {arXiv preprint arXiv:2611.08240},
|
| 81 |
+
year = {2026}
|
| 82 |
+
}
|
| 83 |
+
```
|