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

Loading the v1 checkpoint fails #251

Closed
jacobbieker opened this issue May 22, 2024 · 2 comments
Closed

Loading the v1 checkpoint fails #251

jacobbieker opened this issue May 22, 2024 · 2 comments

Comments

@jacobbieker
Copy link

Hi,

I've tried running this small snippet to load the latest model checkpoint

from src.model_clay import CLAYModule

CKPT_PATH = "Clay-1.0.5.7_epoch-13_val-loss-0.3098.ckpt"

# Load model
rgb_model = CLAYModule.load_from_checkpoint(
    CKPT_PATH,
    strict=False
)

This fails with

ValueError: Invalid model size base. Expected one of dict_keys(['tiny', 'small', 'medium', 'large'])
@jacobbieker jacobbieker changed the title Loading the v1 checkpoint fails with the cloned repository Loading the v1 checkpoint fails May 22, 2024
@yellowcap
Copy link
Member

@jacobbieker sorry for the lack of documentation, we have not yet merged the v1 model code to main. We will do this probably this week. In the meantime, could you try running the following notebook using the dev branch?

https://github.com/Clay-foundation/model/blob/nbs-v1/nbs/finetune-workshop-clay.ipynb

There is an S3 link to the model checkpoint in the "load the model" section.

@jacobbieker
Copy link
Author

That worked! Thank you!

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

No branches or pull requests

2 participants