Linaqruf / kohya-trainer

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

Adafactor - IndexError: list index out of range #296

Closed rayshan closed 10 months ago

rayshan commented 10 months 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 10 months ago

You can't use adafactor scheduler if relative_step is False

I suggest to stick with constant with warmup

rayshan commented 10 months ago

Got it, thank you!