kohya-ss / kohya-ss/sd-scripts
All new LORAs produce "modules.devices.NansException: A tensor with all NaNs was produced in Unet" in StableDiffusion
- Dominant language
- Python
- Stars
- 7.2k
- Forks
- 1.2k
- Avg merge
- 11m
- Merged PRs (30d)
- 2
Description
Was using very old version, replaced with fresh install to be able to train SDXL and all new LORA become broken.
Reducing learning rate or training steps to very low allows to generate but only on level where model not actually trained yet and not giving anything close to dataset - so its useless anyway.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing SDXL LORA training from the fresh install and trace the reported modules.devices.NansException back to the failing training stage. Compare behavior with the older version and reduced learning-rate or step settings; done means newly trained LORAs no longer produce all-NaN tensors while learning the dataset.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100