8gb SDXL Recommended Settings #683
Replies: 5 comments 3 replies
-
Please use In addition, |
Beta Was this translation helpful? Give feedback.
-
RuntimeError: NaN detected in latents: C:\IA\XL\kohya_ss\train\img\10_fxxfls man\3f0xxf1l35-(01)-0000-0000.png |
Beta Was this translation helpful? Give feedback.
-
Finale can work with this but start to generate an preview and fail with Black Picture accelerate launch --num_cpu_threads_per_process 8 ./sdxl_train_network.py --enable_bucket --pretrained_model_name_or_path="C:/IA/XL/stable-diffusion-webui/models/Stable-diffusion/sd_xl_base_1.0.safetensors" --train_data_dir="C:/IA/XL/kohya_ss/train/img" --resolution="1024, 1024" --output_dir="C:/IA/XL/kohya_ss/train/model" --logging_dir="C:/IA/XL/kohya_ss/train/log" --network_alpha="0.5" --save_model_as=safetensors --network_module=networks.lora --unet_lr=0.0005 --network_train_unet_only --network_dim=8 --output_name="fxxfls" --lr_scheduler_num_cycles="10" --cache_text_encoder_outputs --learning_rate="0.0005" --lr_scheduler="constant" --train_batch_size="1" --max_train_steps="1600" --save_every_n_epochs="1" --mixed_precision="fp16" --save_precision="fp16" --optimizer_type="AdamW" --max_data_loader_n_workers="0" --max_token_length=150 --vae_batch_size="2" --min_snr_gamma=5 --gradient_checkpointing --xformers --bucket_no_upscale --vae="C:\IA\XL\stable-diffusion-webui\models\VAE\sdxl_vae.safetensors" --cache_latents --cache_latents_to_disk --gradient_checkpointing some idea? |
Beta Was this translation helpful? Give feedback.
-
I'm running to completion with the SDXL branch of Kohya on an RTX3080 in Win10, but getting no apparent movement in the loss. Despite this the end results don't seem terrible. This makes me wonder if the reporting of loss to the console is not accurate. Very slow training. My Train_network_config.toml is set to: My dataset_config.toml is set to: [[datasets]] [[datasets.subsets]] |
Beta Was this translation helpful? Give feedback.
-
So I've been trying to train an SDXL LORA on my 3050 8GB, and I've been struggling. My training command currently is
I've heard that it is possible, and I've even tried to model my settings after theirs. This has helped. Now I get OOM errors when building the optimiser. I was hoping we could all share our solutions for training SDXL on 8gb.
Beta Was this translation helpful? Give feedback.
All reactions