Views
No views yet
| Reward Function | Weight | Purpose |
|---|---|---|
| HPSv3 General | 1.0 | General aesthetic quality assessment |
| HPSv3 Percentile | 1.0 | Percentile-based aesthetic normalization |
| VideoAlign Motion Quality | 1.0 | Video motion coherence and quality |
| VideoAlign Text Alignment | 1.0 | Text-to-video semantic alignment |
full_shardbfloat16flow_sde1{
2 "r": 128,
3 "lora_alpha": 64,
4 "target_modules": [
5 "to_k",
6 "to_q",
7 "to_v",
8 "to_out.0",
9 "net.0.proj",
10 "net.2"
11 ],
12 "lora_dropout": 0.0,
13 "bias": "none",
14 "init_lora_weights": "gaussian"
15}pip install diffusers transformers accelerate torch1import torch
2from diffusers import WanPipeline
3from diffusers.utils import export_to_video
4
5# Load base model
6pipe = WanPipeline.from_pretrained(
7 "Wan-AI/Wan2.1-T2V-1.3B-Diffusers",
8 torch_dtype=torch.bfloat16,
9 device_map="auto"
10)
11
12# Load LoRA weights
13pipe.load_lora_weights("YOUR_USERNAME/longcat-step1000")
14
15# Generate video
16prompt = "A golden retriever playing in a sunny park, high quality, detailed"
17video = pipe(
18 prompt=prompt,
19 height=480,
20 width=832,
21 num_frames=81,
22 num_inference_steps=50,
23 guidance_scale=4.5,
24 generator=torch.Generator().manual_seed(42)
25).frames[0]
26
27# Save video
28export_to_video(video, "output.mp4", fps=16)1from diffusers import WanPipeline
2import torch
3
4pipe = WanPipeline.from_pretrained(
5 "Wan-AI/Wan2.1-T2V-1.3B-Diffusers",
6 torch_dtype=torch.bfloat16
7).to("cuda")
8
9# Load this LoRA
10pipe.load_lora_weights("YOUR_USERNAME/longcat-step1000")
11
12# Generate
13video = pipe(
14 "A cat walking on the street",
15 height=480,
16 width=832,
17 num_frames=81,
18 num_inference_steps=50,
19 guidance_scale=4.5
20).frames[0]1@misc{genrl,
2 author = {GenRL Contributors},
3 title = {GenRL: Reinforcement Learning Framework for Visual Generation},
4 year = {2026},
5 publisher = {GitHub},
6 journal = {GitHub repository},
7 howpublished = {\url{https://github.com/ModelTC/GenRL}},
8}