Downloads · 30 days
6
4% of all-time downloads
ighoshsubho/lora-grpo-flux-dev
lora-grpo-flux-dev is a text-to-image model from ighoshsubho. Use it when you need an image from a text prompt. It is set up for peft. The card lists the license as apache-2.0.
This LoRA (Low-Rank Adaptation) model is a fine-tuned version of FLUX.1-dev using Flow-GRPO (Flow-based Group Relative Policy Optimization), a novel reinforcement learning technique for flow matching models.
Downloads · 30 days
6
4% of all-time downloads
All-time downloads
157
Public
Repo size
734 MB
Likes
2
Public
Click a slice to open those files.
.safetensors359 MB · 100%
From the Hugging Face model README
This LoRA (Low-Rank Adaptation) model is a fine-tuned version of FLUX.1-dev using Flow-GRPO (Flow-based Group Relative Policy Optimization), a novel reinforcement learning technique for flow matching models.
This model was trained using the Flow-GRPO methodology described in the paper "Flow-GRPO: Training Flow Matching Models via Online RL". Flow-GRPO integrates online reinforcement learning into flow matching models by:
import torch
from diffusers import FluxPipeline
# Load the base model
pipe = FluxPipeline.from_pretrained(
"black-forest-labs/FLUX.1-dev",
torch_dtype=torch.bfloat16,
device_map="auto"
)
# Load the LoRA weights
pipe.load_lora_weights("ighoshsubho/lora-grpo-flux-dev")
# Generate an image
prompt = "A serene landscape with mountains and a lake at sunset"
image = pipe(
prompt,
height=512,
width=512,
guidance_scale=3.5,
num_inference_steps=20,
max_sequence_length=256,
).images[0]
image.save("generated_image.png")
# You can adjust the LoRA influence
pipe.set_adapters(["default"], adapter_weights=[0.8]) # 80% LoRA influence
This model demonstrates improvements in:
If you use this model, please cite the Flow-GRPO paper:
@article{liu2025flow,
title={Flow-GRPO: Training Flow Matching Models via Online RL},
author={Liu, Jie and Liu, Gongye and Liang, Jiajun and Li, Yangguang and Liu, Jiaheng and Wang, Xintao and Wan, Pengfei and Zhang, Di and Ouyang, Wanli},
journal={arXiv preprint arXiv:2505.05470},
year={2025}
}
This model is released under the Apache 2.0 License, following the base FLUX.1-dev model license.