Lora not learning anything #1757
Replies: 3 comments 2 replies
|
your learning rate isn't high enough for the low rank of 16 and the AdamW optimiser. for rank-16 you may be able to use as high as 3e-4, but if your LR is not high enough, it will just be stuck in local minima. you can see the model weights ARE changing - the image is definitely different. alternatively, you can keep the LR the same and switch optimiser to optimi-lion (or another Lion variant) and it will definitely start to cook the model more rapidly. once you increase batch size you will again have to increase the learning rate a little bit. there's the Prodigy optimiser also supported, which bypasses most of the need for setting a learning rate. you'll want to set LR to 1.0 for that. |
|
also i note the flow schedule shift is set to 2 which might not be training the high-noise timesteps enough to really change the image composition, you might want to try a value like 3 or 5. |
|
This is a great improvement! Could you please share your training dataset size and your lycoris configuration? Thanks |

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
To demonstrate this issue I ran a training with a minimal dataset composed of one picture repeated 12 times :
Here is the caption for the picture (generated by Qwen 7B) :
Here is my configuration file :
multidatabackend :
And prompt library :
I reused the exact same prompt of the only picture in training for my validation samples and here is the result at 400 steps :
As you can see it's not even close to the training picture, even if it's the exact same prompt.
I targeted all layers in the network with this line (to be sure to have the maximum influence) :
But even like that the model fails to be close to one single image.
From what I know about lora the model should be really close to that picture after few steps considering that there is only one to learn...
I'd be grateful if you could help me understand what's wrong here.
Thank you.
All reactions