kohya-ss / kohya-ss/sd-scripts

SDXL LoRA Training Stuck at Step 0

Open
#1,939 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
7.2k
Forks
1.2k
Avg merge
11m
Merged PRs (30d)
2

Description

I am encountering an issue where the SDXL LoRA training process stucks step 0, fails to progress, and prematurely increments the epoch count (e.g., current_epoch: 0, epoch: 1). Despite setting num_epochs=40, the training does not complete even a single epoch. The GPU power consumption remains low, indicating underutilization.

Environment

OS: Windows 11

Python: Conda virtual environment (Python 3.10.6)

GPU: [RTX 4070 for laptop]

Dependencies: All packages updated to latest versions (Torch, xformers, etc.)

Script: Custom PowerShell script launching train_network.py with SDXL-specific parameters.

![Image](https://github.com/user-attachments/assets/6af648d6-0c5a-4496-9930-a2d02891dac1)

Here's the screenshot,it just stucks here for hours

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the stall with the reported Windows 11, Python 3.10.6, RTX 4070 Laptop, and SDXL parameters in the custom PowerShell script. Inspect train_network.py and the training output around step 0 and epoch counting; done means identifying a reproducible cause and confirming that one epoch progresses normally.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.