server : remove initial start-of-text tokens from llama2, llama3 templates
This commit is contained in:
parent
f50bd5c5ba
commit
4be8de1604
1 changed files with 2 additions and 2 deletions
|
@ -56,7 +56,7 @@ export const promptFormats = {
|
||||||
// ----------------------------
|
// ----------------------------
|
||||||
|
|
||||||
"llama2": {
|
"llama2": {
|
||||||
template: `<s>[INST] <<SYS>>\n{{prompt}}\n<</SYS>>\n\nTest Message [/INST] Test Successful </s>{{history}}`,
|
template: `[INST] <<SYS>>\n{{prompt}}\n<</SYS>>\n\nTest Message [/INST] Test Successful </s>{{history}}`,
|
||||||
|
|
||||||
historyTemplate: `{{message}}`,
|
historyTemplate: `{{message}}`,
|
||||||
|
|
||||||
|
@ -75,7 +75,7 @@ export const promptFormats = {
|
||||||
// ----------------------------
|
// ----------------------------
|
||||||
|
|
||||||
"llama3": {
|
"llama3": {
|
||||||
template: `<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\n{{prompt}}<|eot_id|>\n{{history}}<|start_header_id|>{{char}}<|end_header_id|>\n\n`,
|
template: `<|start_header_id|>system<|end_header_id|>\n\n{{prompt}}<|eot_id|>\n{{history}}<|start_header_id|>{{char}}<|end_header_id|>\n\n`,
|
||||||
|
|
||||||
historyTemplate: `<|start_header_id|>{{name}}<|end_header_id|>\n\n{{message}}<|eot_id|>\n`,
|
historyTemplate: `<|start_header_id|>{{name}}<|end_header_id|>\n\n{{message}}<|eot_id|>\n`,
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue