Skip to content

Changing/Specifying the path to all-MiniLM-L6-v2 #97

Answered by drazvan
jvhuang1786 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @jvhuang1786 !

Currently it only possible to change the name of the model (https://github.com/NVIDIA/NeMo-Guardrails/blob/main/nemoguardrails/actions/llm/generation.py#L73). This is not documented so we'll fix this.
Adding support for a cache_path parameter is not very difficult. If you have a bit of time to contribute, I can point you in the right direction (needs to be added here: https://github.com/NVIDIA/NeMo-Guardrails/blob/main/nemoguardrails/kb/basic.py#L31) and we need to make sure we propagate it correctly from the config:

models:
   ...
   - type: embedding
     engine: SentenceTransformer
     model: all-MiniLM-L6-v2
     parameters: 
       cache_path: ...

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Haxeebraja
Comment options

Answer selected by jvhuang1786
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants