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

Unixcoder fine tune on POJ-104, how to use it for inference? #322

Open
HamzaBale opened this issue Jun 10, 2024 · 0 comments
Open

Unixcoder fine tune on POJ-104, how to use it for inference? #322

HamzaBale opened this issue Jun 10, 2024 · 0 comments

Comments

@HamzaBale
Copy link

Hi everybody, yesterday i executed the script that you can find here. This process returned a file called "model.bin" in the directory "saved_models", now i want to use this model in order to create embeddings for source code, in evaluation mode like i used to do here:"
model = UniXcoder("microsoft/unixcoder-base")
model.to(device)
model.eval()"
How to do that?

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