Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation & error checking for AdaLoRA timing #2341

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

githubnemo
Copy link
Collaborator

The documentation about how the AdaLoRA works was a bit unclear. Especially that tfinal is not a point in time but a duration.

It was also possible to build schedules that never budget and therefore lead to an exception because the code does not expect this case (which is OK). We prevent such a scenario now by treating this configuration as invalid. (Issue #2337)

Additionally, it was possible to provide total_step=None (the default) which is certainly going to lead to errors. This is technically a breaking change but the same could be said for the new check of the timing values. They both lead to errors in the code.

nemo added 8 commits January 23, 2025 08:08
The documentation about how the AdaLoRA works was a bit unclear.
Especially that `tfinal` is not a point in time but a duration.

It was also possible to build schedules that never budget and
therefore lead to an exception because the code does not expect
this case (which is OK). We prevent such a scenario now by treating
this configuration as invalid. (Issue huggingface#2337)
We also check for `total_step` != None since this is also a
guaranteed error in the code.
Also added `total_step` argument so that the optimizer will not break.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant