mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-06-03 00:00:46 +00:00
beta version out
This commit is contained in:
parent
f2de613a1c
commit
e8dc519b35
@ -219,7 +219,11 @@ class LoLLMsAPPI(LollmsApplication):
|
|||||||
progress = 0
|
progress = 0
|
||||||
installation_dir = self.lollms_paths.personal_models_path/self.config["binding_name"]
|
installation_dir = self.lollms_paths.personal_models_path/self.config["binding_name"]
|
||||||
if model_type=="gptq":
|
if model_type=="gptq":
|
||||||
filename = model_path.split("/")[4]
|
parts = model_path.split("/")
|
||||||
|
if len(parts)==2:
|
||||||
|
filename = parts[2]
|
||||||
|
else:
|
||||||
|
filename = parts[4]
|
||||||
installation_path = installation_dir / filename
|
installation_path = installation_dir / filename
|
||||||
else:
|
else:
|
||||||
filename = Path(model_path).name
|
filename = Path(model_path).name
|
||||||
@ -1029,7 +1033,7 @@ class LoLLMsAPPI(LollmsApplication):
|
|||||||
|
|
||||||
conditionning = self.personality.personality_conditioning
|
conditionning = self.personality.personality_conditioning
|
||||||
if self.config["override_personality_model_parameters"]:
|
if self.config["override_personality_model_parameters"]:
|
||||||
conditionning = conditionning+ "!@>user description:\n"+self.config["user_description"]+"\n"
|
conditionning = conditionning+ "!@>user description:\nName:"+self.config["user_name"]+"\n"+self.config["user_description"]+"\n"
|
||||||
|
|
||||||
if len(self.personality.files)>0 and self.personality.vectorizer:
|
if len(self.personality.files)>0 and self.personality.vectorizer:
|
||||||
pr = PromptReshaper("!@>document chunks:\n{{doc}}\n{{conditionning}}\n{{content}}")
|
pr = PromptReshaper("!@>document chunks:\n{{doc}}\n{{conditionning}}\n{{content}}")
|
||||||
|
2
app.py
2
app.py
@ -14,7 +14,7 @@ __github__ = "https://github.com/ParisNeo/lollms-webui"
|
|||||||
__copyright__ = "Copyright 2023, "
|
__copyright__ = "Copyright 2023, "
|
||||||
__license__ = "Apache 2.0"
|
__license__ = "Apache 2.0"
|
||||||
|
|
||||||
__version__ ="6.5"
|
__version__ ="6.5(beta)"
|
||||||
|
|
||||||
main_repo = "https://github.com/ParisNeo/lollms-webui.git"
|
main_repo = "https://github.com/ParisNeo/lollms-webui.git"
|
||||||
import os
|
import os
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
4
web/dist/index.html
vendored
4
web/dist/index.html
vendored
@ -6,8 +6,8 @@
|
|||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>LoLLMS WebUI - Welcome</title>
|
<title>LoLLMS WebUI - Welcome</title>
|
||||||
<script type="module" crossorigin src="/assets/index-01aa7718.js"></script>
|
<script type="module" crossorigin src="/assets/index-c8056422.js"></script>
|
||||||
<link rel="stylesheet" href="/assets/index-912a1e1a.css">
|
<link rel="stylesheet" href="/assets/index-bc493f0a.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
|
@ -2225,7 +2225,7 @@ export default {
|
|||||||
const path = this.$refs.addmodeldialog.model_path;
|
const path = this.$refs.addmodeldialog.model_path;
|
||||||
|
|
||||||
// Emit an event to the Socket.IO server
|
// Emit an event to the Socket.IO server
|
||||||
socket.emit("install_model", { path: path }, (response) => {
|
socket.emit("install_model", { path: path, type: this.$store.state.models_zoo[0].type }, (response) => {
|
||||||
// Handle the response from the server
|
// Handle the response from the server
|
||||||
console.log("Model installation successful:", response);
|
console.log("Model installation successful:", response);
|
||||||
});
|
});
|
||||||
@ -2461,7 +2461,7 @@ export default {
|
|||||||
|
|
||||||
socket.on('install_progress', progressListener);
|
socket.on('install_progress', progressListener);
|
||||||
|
|
||||||
socket.emit('install_model', { path: path });
|
socket.emit('install_model', { path: path, type: this.$store.state.models_zoo[0].type });
|
||||||
console.log("Started installation, please wait");
|
console.log("Started installation, please wait");
|
||||||
},
|
},
|
||||||
uploadLocalModel() {
|
uploadLocalModel() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user