-
Notifications
You must be signed in to change notification settings - Fork 16
Accept strings for checkpoint type on download #308
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
base: main
Are you sure you want to change the base?
Conversation
Oh I see the confusion. I wanted to pass a string, but it's designed to take one of I think string makes the most sense (and matches the cli), but having it accept either might be easiest for users. |
@mryab , @artek0chumak , What do you think of it now? |
DownloadCheckpointType.MERGED, | ||
DownloadCheckpointType.ADAPTER, | ||
}: | ||
url += f"&checkpoint={checkpoint_type.value}" | ||
else: | ||
raise ValueError( | ||
f"Invalid checkpoint type for LoRATrainingType: {checkpoint_type}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this error will never be reached because of the check in lines 614:620, so we can delete this.
Needs to check string value.