Linaqruf / kohya-trainer

Adapted from https://note.com/kohya_ss/n/nbf7ce8d80f29 for easier cloning
Apache License 2.0
1.86k stars 309 forks source link

Adafactor - IndexError: list index out of range #296

Closed rayshan closed 1 year ago

rayshan commented 1 year ago

When using this optimizer config:

Screenshot 2023-09-13 at 8 31 32 PM

I get this error:

Screenshot 2023-09-13 at 10 01 30 PM

I think when I hit this line, name === 'adafactor', so it cannot be split. I think learning rate was supposed to be appended to the string in this line but it didn't.

Recommendation: store values in variables instead of manipulating strings.

Linaqruf commented 1 year ago

You can't use adafactor scheduler if relative_step is False

I suggest to stick with constant with warmup

rayshan commented 1 year ago

Got it, thank you!