Skip to content

Commit 1e28ac1

Browse files
authored
Add Mistral adapter (#77)
1 parent 5b5aa30 commit 1e28ac1

File tree

1 file changed

+19
-13
lines changed

1 file changed

+19
-13
lines changed

index.html

+19-13
Original file line numberDiff line numberDiff line change
@@ -9407,22 +9407,22 @@
94079407

94089408
switch(sel)
94099409
{
9410-
case "1": //alpaca
9410+
case "1": //Alpaca
94119411
st = defaultsettings.instruct_starttag;
94129412
et = defaultsettings.instruct_endtag;
94139413
systag = "";
94149414
break;
9415-
case "2": //vicuna
9415+
case "2": //Vicuna
94169416
st = "\\nUSER: ";
94179417
et = "\\nASSISTANT: ";
94189418
systag = "";
94199419
break;
9420-
case "3": //metharme
9420+
case "3": //Metharme
94219421
st = `<|user|>`;
94229422
et = `<|model|>`;
94239423
systag = "";
94249424
break;
9425-
case "4": //llama 2 chat
9425+
case "4": //Llama 2 chat
94269426
st = "[INST] ";
94279427
et = " [/INST]";
94289428
systag = "";
@@ -9447,21 +9447,26 @@
94479447
et = "<|END_OF_TURN_TOKEN|><|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|>";
94489448
systag = "<|START_OF_TURN_TOKEN|><|SYSTEM_TOKEN|>";
94499449
break;
9450-
case "9": //llama 3 chat
9450+
case "9": //Llama 3 chat
94519451
st = "<|eot_id|><|start_header_id|>user<|end_header_id|>\\n\\n";
94529452
et = "<|eot_id|><|start_header_id|>assistant<|end_header_id|>\\n\\n";
94539453
systag = "<|start_header_id|>system<|end_header_id|>\\n\\n";
94549454
break;
9455-
case "10": // Phi-3 Mini
9456-
st = "<|end|><|user|>\\n";
9457-
et = "<|end|>\\n<|assistant|>";
9455+
case "10": //Phi-3 Mini
9456+
st = "<|end|><|user|>\\n";
9457+
et = "<|end|>\\n<|assistant|>";
94589458
systag = "<|system|>\\n";
9459-
break;
9460-
case "11": // Gemma 2
9461-
st = "<end_of_turn>\\n<start_of_turn>user\\n";
9462-
et = "<end_of_turn>\\n<start_of_turn>model\\n";
9459+
break;
9460+
case "11": //Gemma 2
9461+
st = "<end_of_turn>\\n<start_of_turn>user\\n";
9462+
et = "<end_of_turn>\\n<start_of_turn>model\\n";
94639463
systag = "<start_of_turn>user\\n";
9464-
break;
9464+
break;
9465+
case "12": //Mistral
9466+
st = "\\n[INST] ";
9467+
et = " [/INST]\\n";
9468+
systag = "";
9469+
break;
94659470
default:
94669471
break;
94679472
}
@@ -16978,6 +16983,7 @@
1697816983
<option value="9">Llama 3 Chat</option>
1697916984
<option value="10">Phi-3</option>
1698016985
<option value="11">Gemma-2</option>
16986+
<option value="12">Mistral</option>
1698116987
</select>
1698216988

1698316989
<table class="settingsmall text-center" style="font-size:9px; border-spacing: 3px 2px; border-collapse: separate;">

0 commit comments

Comments
 (0)