Kohya GUI Kaggle Notebook: Free SD 1.5 & SDXL Training on Dual T4 GPUs (Patreon)
Downloads
Content
Kohya GUI Kaggle notebook trains Stable Diffusion 1.5 and SDXL LoRA or DreamBooth models for free on a Kaggle account, on a single T4 or dual T4 GPUs.
Note: this is an older post kept for reference. The current, maintained version is Kohya FLUX Fine Tuning / DreamBooth Training Tutorial: Windows & Cloud.
Supports 2x T4 GPU training, where batch size 2 gives an effective batch size of 4, and auto-downloads the best SD 1.5 and SDXL DreamBooth configs. Updated in May 2025 for Python 3.11; for best quality the post now recommends Kohya FLUX training on Massed Compute.
Patreon exclusive posts index to find our scripts easily, Patreon scripts updates history to see which updates arrived to which scripts and amazing Patreon special generative scripts list that you can use in any of your task.
Join discord to get help, chat, discuss and also tell me your discord username to get your special rank : SECourses Discord
Please also Star, Watch and Fork our Stable Diffusion & Generative AI GitHub repository and join our Reddit subreddit and follow me on LinkedIn (my real profile)
=======
Latest notebook file : kohya-sdxl-lora-training-on-a-free-kaggle-notebook_v28.ipynb
27 May 2025 Update
Notebook updated since Kaggle moved to Python 3.11
Works perfect both on Single GPU training and Dual T4 GPU training
For best quality I recommend Kohya FLUX on Massed Compute : https://youtu.be/FvpWy1x5etM
Dual GPU using logic explained in this video watch it entirely : https://youtu.be/-uhL2nW7Ddw
Now it will install way faster
13 March 2025 Update
Now Gradio live share working thus no more ngrok
Libraries updated to the latest version and now faster installation
Dual T4 x2 Working Again - SDXL Base 1.0 DreamBooth Working - Now We Use SDPA instead of xFormers - Configs Updated
To use Dual GPU during training watch this tutorial to understand logic : https://youtu.be/-uhL2nW7Ddw
Auto downloaded best config files updated
Batch size 2 is still working even with Dual T4 GPU training thus effective batch size becomes 4
Latest Kohya works
Full new tutorial for on Kaggle SDXL Training Video released
Video link > https://youtu.be/16-b1AjvyBE
Please also upvote Reddit thread if possible
22 February 2024 Update
Read more info here about best configs and why SD 1.5 better on Kaggle : https://www.patreon.com/posts/full-workflow-sd-98620163
30 January 2024 Update
Very best SD 1.5 config added and it is just amazing
Added 768x768 reg images links as well
Check this link to see SD 1.5 config results : https://www.reddit.com/r/StableDiffusion/comments/1adh41p/next_level_sd_15_based_models_training_workflow/
Tutorial link for this notebook file : https://www.youtube.com/watch?v=16-b1AjvyBE
Register a free Kaggle account : https://www.kaggle.com/
Verify your Phone number : https://www.kaggle.com/settings
Start a new notebook by clicking + Create button
Upload below attached notebook (import notebook)
Click Here to open GitHub readme file of this tutorial
Related posts
Kohya FLUX Fine Tuning / DreamBooth Training Tutorial: Windows & Cloud
Musubi Tuner App: 1-Click LoRA & Fine-Tune Training With 435 Presets
Kohya FLUX LoRA Training: Full Tutorial & Configs for Windows & Cloud
All posts in this topic: LoRA and Fine-Tuning Training: Kohya, Musubi Tuner, OneTrainer, AI Toolkit · New to SECourses? Start Here: Best and Most Popular SECourses Posts