Effective Batch Size = Batch Size × Gradient Accumulation. Gradient accumulation saves VRAM but is slower; a larger Batch Size is faster but uses more VRAM.
LR Scaling: Don't blindly apply the linear rule to LoRA. Validate with loss curves. (My baseline: Batch 3 + LR 0.0003). Note: The vanilla Fizgig benchmark used the default LR 0.0001, which is under-scaled for an effective batch of 3. As widely discussed on GitHub and Reddit, increasing the batch size generally requires a higher LR to compensate for fewer update steps.
Paper TL;DR:
Accurate, Large Minibatch SGD (2017): The "Linear Scaling Rule" — if you multiply batch size by k, multiply LR by k. This was designed for full fine-tuning on ImageNet, not LoRA (e.g., BS 1, LR 1e-4 → BS 4, LR 4e-4).
One weird trick for parallelizing CNNs (2014): The "Square Root Scaling Rule" — if you multiply batch size by k, to keep gradient variance stable, scale LR by k^0.5 instead of k. More conservative when batch gets very large (e.g., BS 1, LR 1e-4 → BS 4, LR 2e-4).
Beware of the Batch Size (2026): For LoRA specifically, batch size is not just a multiplier for LR — it's a first-order design parameter. Optimal batch depends on dataset size (most sensitive), rank, and model capacity. Vanilla LoRA matches fancy variants when batch is tuned properly.
Educational & Research Purpose Only: This repository hosts LoRA models trained on various base models, including Pony, Flux 1 Dev, Anima, Krea2, Moss Image, and SD1.5. All models are intended solely for academic exchange, technical testing, and personal research into image generation algorithms.
Prohibition of Illegal Use: Users must strictly adhere to local laws and regulations when downloading and using these models. It is strictly forbidden to use these models to infringe upon others' privacy, reputation, portrait rights, or other legitimate interests. Do not use them for creating or spreading misinformation, fraudulent activities, or any unethical purposes.
Takedown Notice: These models are shared for non-commercial research purposes. If you are a copyright owner or an authorized agent and believe that any content in this repository infringes upon your rights, please contact me directly. I will promptly review and remove the infringing material upon verification, without any delay.
Content Compliance Notice: Please be aware that certain base models (e.g., Pony) may exhibit a high degree of openness regarding specific prompts. Users are entirely responsible for filtering and auditing the compliance of the generated content.
Limitation of Liability: As the creator/tester of these experimental models, I take no responsibility for any direct or indirect legal liabilities, losses, or disputes arising from the use of this repository. Any image generated and its subsequent consequences are the sole responsibility of the user.