kohya-ss / kohya-ss/sd-scripts
SDXL LoRA Training Stuck at Step 0
- 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.

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