Skip to content

How to write the correct config file for GPT4All? #453

Answered by AvengerMoJo
AvengerMoJo asked this question in Q&A
Discussion options

You must be logged in to vote

[nlp]
lang = "en"
pipeline = ["llm"]
batch_size = 1024

[components]

[components.llm]
factory = "llm"

[components.llm.task]
@llm_tasks = "spacy.TextCat.v3"
labels = ["COMPLIMENT", "INSULT"]

[components.llm.task.label_definitions]
"COMPLIMENT" = "a polite expression of praise or admiration.",
"INSULT" = "a disrespectful or scornfully abusive remark or act."
exclusive_classes = True
allow_none = False

#[components.llm.task.examples]
#@misc = "spacy.FewShotReader.v1"
#path = "example.json"

[components.llm.model]
@llm_models = "langchain.GPT4All.v1"

name has to be folllow , can't use full path. ~/.cache/gpt4all/

name = "gemma-2b-it-q4_k_m.gguf"
query = {"@llm_queries": "spacy.CallLangChain.v1"}

Replies: 3 comments 1 reply

Comment options

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

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by AvengerMoJo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested feat/model Feature: models
2 participants
Converted from issue

This discussion was converted from issue #451 on March 19, 2024 10:15.