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

infer #173

Open
zaoruis opened this issue Sep 28, 2024 · 2 comments
Open

infer #173

zaoruis opened this issue Sep 28, 2024 · 2 comments

Comments

@zaoruis
Copy link

zaoruis commented Sep 28, 2024

I've finished training on my own data set. However, when I implemented the inference function, it showed that the keys were true. May I ask why? How to solve this problem?
image

@zaoruis
Copy link
Author

zaoruis commented Sep 28, 2024

I can load the weight of the model after fine tuning and train again, why can't I load the weight of the model after fine tuning for reasoning? In addition, why can the weights you publish be inferred, but the weights I fine-tune cannot be inferred?

@LiheYoung
Copy link
Contributor

The models are stored in state_dict["model"], you should use torch.load(...)["model"] instead.

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