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

Checkpoint name attributed may needs updated for OFA_large #77

Closed
allanj opened this issue Apr 22, 2022 · 1 comment
Closed

Checkpoint name attributed may needs updated for OFA_large #77

allanj opened this issue Apr 22, 2022 · 1 comment

Comments

@allanj
Copy link

allanj commented Apr 22, 2022

I downloaded the pre-trained OFA-large checkpoint here: https://ofa-beijing.oss-cn-beijing.aliyuncs.com/checkpoints/ofa_large.pt

And try to load the model by

task = tasks.setup_task(cfg.task)
models, cfg = checkpoint_utils.load_model_ensemble(
    pre_trained_model_path,
    task=task
)

But it doesn't work and it shows didn't find the corresponding model name.

Then I check the checkpoint , found the name is m6_unify_large

Then I modify this line https://github.com/OFA-Sys/OFA/blob/main/models/ofa/ofa.py#L320 to replace ofa_large to m6_unify_large then everything works fine.

I guess maybe need to update a bit the checkpoint state and upload again

@logicwong
Copy link
Member

Thank you so much for pointing this out! We have updated and uploaded the OFA-large checkpoint.

@allanj allanj closed this as completed Apr 22, 2022
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