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

Add local_files_only parameter to load_from_checkpoint method #226

Merged
merged 3 commits into from
Nov 27, 2024

Conversation

zzaebok
Copy link
Contributor

@zzaebok zzaebok commented Jul 29, 2024

This PR adds local_files_only parameter to load_from_checkpoint method as discussed in #225

The local_files_only parameter is created in the constructor of each encoder and CometModel.

I found that even after downloaded a ckpt file (such as Unbabel/wmt22-comet-da), pretrained_model specified in checkpoint's hparams.yaml should also be downloaded to use tokenizer. So I wrote it in docstring in load_from_checkpoint.
Please let me know if there is anything to be fixed 😃

@ricardorei ricardorei merged commit 180bfe3 into Unbabel:master Nov 27, 2024
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.

2 participants