Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -72,14 +72,14 @@ def prepare_prompt(prompt, chat_history):
|
|
72 |
|
73 |
def apply_prompt_syntax(prompt, system_prompt, prompt_template, bake_in_prompt_syntax):
|
74 |
model_family_syntax = {
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
}
|
84 |
|
85 |
if bake_in_prompt_syntax:
|
|
|
72 |
|
73 |
def apply_prompt_syntax(prompt, system_prompt, prompt_template, bake_in_prompt_syntax):
|
74 |
model_family_syntax = {
|
75 |
+
βllama3-instruct (llama-3, 3.1 & 3.2) - systemβ: ββ"<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\n{system_prompt}<|eot_id|><|start_header_id|>user<|end_header_id|>\n\n{prompt}<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\nβββ,
|
76 |
+
βllama3-instruct (llama-3, 3.1 & 3.2) - userβ: ββ"<|begin_of_text|><|start_header_id|>user<|end_header_id|>\n\n{prompt}<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\nβββ,
|
77 |
+
βgranite-13b-chat & instruct - systemβ: ββ"<|system|>\n{system_prompt}\n<|user|>\n{prompt}\n<|assistant|>\n\nβββ,
|
78 |
+
βgranite-13b-chat & instruct - userβ: ββ"<|user|>\n{prompt}\n<|assistant|>\n\nβββ,
|
79 |
+
βmistral & mixtral v2 tokenizer - systemβ: ββ"<s>[INST] System Prompt: {system_prompt} [/INST][INST] {prompt} [/INST]\n\nβββ,
|
80 |
+
βmistral & mixtral v2 tokenizer - userβ: ββ"<s>[INST] {prompt} [/INST]\n\nβββ,
|
81 |
+
βno syntax - systemβ: ββ"{system_prompt}\n\n{prompt}ββ",
|
82 |
+
βno syntax - userβ: ββ"{prompt}ββ"
|
83 |
}
|
84 |
|
85 |
if bake_in_prompt_syntax:
|