added bare model

This commit is contained in:
Saifeddine ALOUI 2024-07-24 01:35:50 +02:00
parent bfb8a9322a
commit 8b15bdd4c5
6 changed files with 193 additions and 178 deletions

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
View File

@ -6,8 +6,8 @@
<script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js"></script> <script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js"></script>
<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</title> <title>LoLLMS WebUI</title>
<script type="module" crossorigin src="/assets/index-9fb50d9a.js"></script> <script type="module" crossorigin src="/assets/index-2de3b115.js"></script>
<link rel="stylesheet" href="/assets/index-f7f15056.css"> <link rel="stylesheet" href="/assets/index-2bf4e8d6.css">
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>

View File

@ -469,6 +469,7 @@
<select @change="handleTemplateSelection"> <select @change="handleTemplateSelection">
<option value="lollms">Lollms communication template</option> <option value="lollms">Lollms communication template</option>
<option value="lollms_simplified">Lollms simplified communication template</option> <option value="lollms_simplified">Lollms simplified communication template</option>
<option value="bare">Bare, useful when in chat mode</option>
<option value="llama3">LLama3 communication template</option> <option value="llama3">LLama3 communication template</option>
<option value="mistral">Mistral communication template</option> <option value="mistral">Mistral communication template</option>
</select> </select>
@ -4220,6 +4221,19 @@ export default {
this.configFile.end_ai_header_id_template = ": " this.configFile.end_ai_header_id_template = ": "
this.configFile.end_ai_message_id_template = "" this.configFile.end_ai_message_id_template = ""
this.settingsChanged=true this.settingsChanged=true
} else if (selectedOption === 'bare') {
console.log("Using lollms template")
this.configFile.start_header_id_template = ""
this.configFile.system_message_template = "system"
this.configFile.end_header_id_template = ": "
this.configFile.separator_template = "\n"
this.configFile.start_user_header_id_template = ""
this.configFile.end_user_header_id_template = ": "
this.configFile.end_user_message_id_template = ""
this.configFile.start_ai_header_id_template = ""
this.configFile.end_ai_header_id_template = ": "
this.configFile.end_ai_message_id_template = ""
this.settingsChanged=true
} else if (selectedOption === 'llama3') { } else if (selectedOption === 'llama3') {
console.log("Using llama3 template") console.log("Using llama3 template")
this.configFile.start_header_id_template = "<|start_header_id|>" this.configFile.start_header_id_template = "<|start_header_id|>"

@ -1 +1 @@
Subproject commit 09d096030dbfc75c3075fcd4b25ea061f6113fe8 Subproject commit 00c227852bd61208c1ad261698bf06b9cbcfe184

@ -1 +1 @@
Subproject commit fbe2f39241435f7d663b1a05d4ac45d56bd23644 Subproject commit a03ecace40232953deccfa922f409c8462d00042