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
|
Download README.md from Delcher/fewsteprl-wan21: direct link, hf CLI and curl.
- Browser
- Download file 2.93 kB
-
https://huggingface.co/Delcher/fewsteprl-wan21/resolve/main/README.md
- Command line
-
hf download hf://Delcher/fewsteprl-wan21/README.md
-
curl -L -o README.md https://huggingface.co/Delcher/fewsteprl-wan21/resolve/main/README.md
2.93 kB
| license: other | |
| license_name: anyflow-wan-non-commercial | |
| license_link: https://huggingface.co/nvidia/AnyFlow-Wan2.1-T2V-1.3B-Diffusers | |
| base_model: nvidia/AnyFlow-Wan2.1-T2V-1.3B-Diffusers | |
| pipeline_tag: text-to-video | |
| library_name: diffusers | |
| tags: | |
| - lora | |
| - reinforcement-learning | |
| - few-step | |
| - flow-map | |
| - fewsteprl | |
| # FewStepRL — Wan2.1-T2V-1.3B checkpoints | |
| Released checkpoints of **FewStepRL: Fine-tuning Few-step Diffusion Models with Reinforcement Learning** | |
| (video experiments, 4-step AnyFlow-Wan2.1-T2V-1.3B flow map, 480×832, 81 frames). | |
| [Paper (arXiv:2611.08240)](https://arxiv.org/abs/2611.08240) · | |
| [Code](https://github.com/EDAPINENUT/fewsteprl-wan21) · | |
| [Project page](https://edapinenut.github.io/fewsteprl.page/) · | |
| [Image checkpoints (SD3.5)](https://huggingface.co/Delcher/fewsteprl-sd35) | |
| ## Contents | |
| ``` | |
| <trial>/ | |
| config.yaml # the config the run saved | |
| checkpoint-250/generator_ema.pt # EMA generator: LoRA A/B + condition_embedder.delta_embedder | |
| SHA256SUMS | |
| ``` | |
| | trial | trainer | step | | |
| |---|---|---| | |
| | meanflownft | `meanflow_nft` | 250 | | |
| | dmdnft | `dmdnft_rl` | 250 | | |
| | dmdawm | `dmdawm_rl` | 250 | | |
| | fewstepgrpo | `meanflowgrpo_rl` | 250 | | |
| | meanflowawm | `meanflowawm_rl` | 250 | | |
| | meanflowopsd | `meanflowopsd_rl` | 250 | | |
| | reflmx | `meanflowrefl_rl` | 250 | | |
| All trials share the reward HPSv3 general + HPSv3 percentile + VideoAlign MQ + VideoAlign TA. Scores (training | |
| reward and VBench): [checkpoints/README.md](https://github.com/EDAPINENUT/fewsteprl-wan21/blob/main/checkpoints/README.md). | |
| ## Usage | |
| Download the weights into the `checkpoints/` directory of the code repository: | |
| ```bash | |
| git clone https://github.com/EDAPINENUT/fewsteprl-wan21 && cd fewsteprl-wan21 | |
| bash download_scripts/download_assets.sh # AnyFlow-Wan, reward models, VBench weights | |
| hf download Delcher/fewsteprl-wan21 --local-dir checkpoints --include "*.pt" | |
| cd checkpoints && shasum -a 256 -c SHA256SUMS && cd .. | |
| ``` | |
| `generator_ema.pt` is applied on top of the full AnyFlow-Wan2.1-T2V-1.3B pipeline: | |
| ```bash | |
| python inference.py scripts/eval/configs/sample_wan.yaml --prompt "..." \ | |
| --override seed=0 mode=meanflow_nft meanflow_nft_path=checkpoints/dmdnft/checkpoint-250/generator_ema.pt | |
| bash scripts/eval/eval_ckpt.sh dmdnft 8 # training rewards on the 256 test prompts | |
| ``` | |
| ## License | |
| The weights are derivatives of | |
| [nvidia/AnyFlow-Wan2.1-T2V-1.3B-Diffusers](https://huggingface.co/nvidia/AnyFlow-Wan2.1-T2V-1.3B-Diffusers), | |
| whose license restricts the model and derivative weights to **non-commercial use**. | |
| ## 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} | |
| } | |
| ``` | |