A Kaggle Notebook to Train Stable Diffusion 1.5 and XL (SDXL) on a Free Kaggle Account with 2x Dual T4 GPU for free by using Kohya GUI (Patreon)
Downloads
Content
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
Files