Skip to content

Commit

Permalink
Add Mistral style w/out BOS
Browse files Browse the repository at this point in the history
  • Loading branch information
chimezie committed Feb 1, 2024
1 parent 21f891d commit bfa0498
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pylib/prompting/model_style.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ class style(Enum):
pdelim.POST_ALL_CONTEXT: '\n[/INST]',
}

MISTRAL_INSTRUCTION_DELIMITERS_NO_BOS = {
pdelim.PRE_ALL_CONTEXT: '[INST]',
pdelim.POST_ALL_CONTEXT: '\n[/INST]',
}

CHATML_DELIMITERS = {
pdelim.PRE_PREAMBLE: '<|im_start|>system\n',
pdelim.PREQUERY: '<|im_end|>\n<|im_start|>user\n',
Expand Down

0 comments on commit bfa0498

Please sign in to comment.