mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-18 20:17:50 +00:00
fixed model bug
This commit is contained in:
parent
5478b7dfe6
commit
5eebffab04
4
app.py
4
app.py
@ -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"})
|
||||
|
||||
|
||||
|
@ -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'],
|
||||
)
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user