SDXL LoRA training - 8GB VRAM #2594
Replies: 1 comment 2 replies
-
It is, quite easy be default. There are full settings tutorials for this*. Lowest I have seen people do is 6gb, but some have managed to pull 4gb (by having lots of ram to fall back on). However you don't need to worry too much, since with Nvidia you can easily use some of the RAM also, the system works. There is also the dynamo backends which help with this. Just give it a try. I run 4060 TI 18gb and depending on what I am doing, I can be low as 6 gb and high as 15 gb. I run fp8 training by default regardless. Also you don't need high resolutions images to train with. My dataset is a mess of all sort of dimensions for a reason, it helps with the training. My smallest dimension can be low as 384. But generally I don't go above 1024 because I haven't really found any actual benefit for it in my training runs - just slows the process down. *Keep in mind that all settings are just suggestion. There are no optimal settings for training, every thing you want to do will require some adjusting along with trial and error to get the best output. I don't really do LoRAs to generate with or publish, I just enjoy the puzzle of trying to get a thing to happen. Also don't be scared if the training overflows to use RAM side, most of the time it doesn't affect speeds at all and even if it does the difference not really anything to worry about. When you are training with your own setup, it calls for certain amount of patience to begin with. I run training when I am at work, or I do other things. E: Just to add... Just try stuff. Look guides only enough to get started and then just try stuff. Make notes on what works and doesn't work. Just... Have fun with the process. You will very quickly find things which work, and things that save Vram and wasn't mentioned in some guide. Go forth and have fun! |
Beta Was this translation helpful? Give feedback.
-
Guys,
I have a RTX 4060 Ti 8GB, and I would like to know if it's possible to train a SDXL LoRA with only 8GB of VRAM, with the Lora > Training > Parameters > Basic > Max Resolution set to 1024x1024.
I've watched this video: https://www.youtube.com/watch?v=ovuO8bT9Nzw and now I have a basic notion to start the training, I would just need the help regarding VRAM.
Any help is much appreciated.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions