kohya-ss / kohya-ss/sd-scripts

Flux can't change prompt during training

Open
#1,513 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

bmaltais says this is a problem in sd-scripts

Changing the prompt.txt during training produces the following message when the next sample point is reached, at which point it hangs. I like to change the prompt to see various aspects as the training proceeds, but can't with Flux loras.

(path)\venv\lib\site-packages\torch\utils\checkpoint.py:61: UserWarning: None of the inputs have requires_grad=True. Gradients will be None
warnings.warn(

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce Flux LoRA training while changing prompt.txt before the next sample point, using the reported torch.utils.checkpoint.py warning as the initial symptom. Trace why training hangs after the prompt change; done means prompt updates take effect without the warning-induced hang.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.