-
Notifications
You must be signed in to change notification settings - Fork 711
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
[SPARKNLP-1091] AutoGGUFModel embeddings support #14433
base: master
Are you sure you want to change the base?
[SPARKNLP-1091] AutoGGUFModel embeddings support #14433
Conversation
@DevinTDHa let's make the changes and have this feature as |
Hi @maziyarpanahi, Sounds good to me! I will update this PR to inlude the new annotator. |
…aCppInferenceProperties
- also adds embedding support for AutoGGUFModel, as it already has the parameter
- Also adds example notebook
bed0f06
to
13c06a8
Compare
7fd370f
to
b59a339
Compare
@maziyarpanahi I have updated this PR to include the functionaltiy as a new Annotator AutoGGUFEmbeddings |
Description
This PR enables proper embedding support for AutoGGUFModels with a new annotator called AutoGGUFEmbeddings. The returned annotations will then contain an embedding vector, similar to the other sentence embedding annotators.
This PR also contains an end-to-end example notebook:
https://github.com/JohnSnowLabs/spark-nlp/blob/b59a339164d2a2c37633e2c9ec12762134c5c2c6/examples/python/llama.cpp/llama.cpp_in_Spark_NLP_AutoGGUFEmbeddings.ipynb
The pretrained model is available at
#14448
How Has This Been Tested?
Old and new tests passing on Scala and python side.
Types of changes