-
Notifications
You must be signed in to change notification settings - Fork 34
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
Code embeddings #84
Comments
Hi @rragundez , Maybe you can have a try to angle = AnglE.from_pretrained('WhereIsAI/UAE-Code-Large-V1').cuda()
angle.encode("YOUR CODE") |
Let me try it and I'll comment back here the results |
It did work but results over solidity code is not very good. thanks. I am going to try with LLM trained on SOlidity code, but it has GGUF files, how would I use those in this library? for example: |
maybe you can use its base model: https://huggingface.co/andrijdavid/Solidity-Llama3-8b |
Would this work out of the box just putting the model name as the argument? |
Yes. For LLM inference, you can check it document: https://angle.readthedocs.io/en/latest/notes/quickstart.html#infer-llm-based-models Since this model hasn't been trained on sentence embedding learning, it is recommended to use some prompts to improve performance. You can specify a prompt with |
there is no need to specify a |
Is there any information if this is also recommended for extracting embeddings from code snippets? In particular Javascipt and Solidity?
The text was updated successfully, but these errors were encountered: