This is an example repo for fine-tuning and publishing your own custom Flux model using Replicate and GitHub Actions.
- A Replicate account
- A handful of training images
- Fork this repository.
- Remove the images in the data directory and replace them with your own images.
- Commit your changes to Git and push to your main branch on GitHub.
- Create a Replicate API token and add it as a repository secret named
REPLICATE_API_TOKEN
. - Trigger the workflow from your GitHub repo page: "Actions" > "Train a model" > "Run workflow".
- Go to the replicate.com/trainings to see your training in progress.
Check out these guides for tips on training and running Flux models: