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

net = OFAModel.from_pretrained(checkpoint_file="checkpoint_best.pt") #64

Open
xhz2003 opened this issue Dec 8, 2024 · 0 comments
Open

Comments

@xhz2003
Copy link

xhz2003 commented Dec 8, 2024

Training for the downstream task I got the checkpoint_best.pt file and then instantiated the network with the following code:
from models.ofa.ofa import OFAModel
net = OFAModel.from_pretrained(checkpoint_file=“checkpoint_best.pt”)
However, an error was reported:
Traceback (most recent call last).
File “test.py”, line 2, in
net = OFAModel.from_pretrained(checkpoint_file=“checkpoint_best.pt”)
TypeError: from_pretrained() missing 1 required positional argument: 'model_name_or_path'
So here's the required argument
What does model_name_or_path mean?

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

1 participant