fixed model bug

This commit is contained in:
Saifeddine ALOUI 2023-04-20 22:41:32 +02:00
parent 5478b7dfe6
commit 5eebffab04
3 changed files with 6 additions and 2 deletions

4
app.py
View File

@ -410,7 +410,9 @@ class Gpt4AllWebUI(GPT4AllAPI):
save_config(self.config, self.config_file_path)
print("==============================================")
print("Parameters changed to:")
print(f"\tBackend:{self.config['backend']}")
print(f"\tModel:{self.config['model']}")
print(f"\tPersonality language:{self.config['personality_language']}")
print(f"\tPersonality category:{self.config['personality_category']}")
@ -424,6 +426,8 @@ class Gpt4AllWebUI(GPT4AllAPI):
print(f"\top_p:{self.config['top_p']}")
print(f"\trepeat_penalty:{self.config['repeat_penalty']}")
print(f"\trepeat_last_n:{self.config['repeat_last_n']}")
print("==============================================")
return jsonify({"status":"ok"})

View File

@ -28,7 +28,7 @@ class LLAMACPP(GPTBackend):
super().__init__(config)
self.model = Model(
ggml_model=f"./models/llamacpp/{self.config['model']}",
ggml_model=f"./models/llama_cpp/{self.config['model']}",
n_ctx=self.config['ctx_size'],
seed=self.config['seed'],
)

View File

@ -14,5 +14,5 @@
<br>
<br>
After installing the extension, go to <a href="chat.openai.com/chat"/> and the extension popup will apear.<br>
All personalities will be implemented to gpt4All and can be used with any llamacpp model.
All personalities will be implemented to gpt4All and can be used with any llamacpp or gpt-j model.
</footer>