Skip to content

Instantly share code, notes, and snippets.

View patrickhulce's full-sized avatar
😎
Live, eat, breathe code

Patrick Hulce patrickhulce

😎
Live, eat, breathe code
View GitHub Profile
@patrickhulce
patrickhulce / lora.py
Created May 18, 2025 03:30
Modal LoRA training script.
# ---
# deploy: true
# ---
# # Fine-tune Flux on a style using LoRA
# This example finetunes the [Flux.1-dev model](https://huggingface.co/black-forest-labs/FLUX.1-dev)
# on images of a style (by default, a style named sksStoryBook)
# using a technique called textual inversion from [the "Dreambooth" paper](https://dreambooth.github.io/).
# Effectively, it teaches a general image generation model a new "proper noun",