mirror of
https://github.com/turboderp-org/exui.git
synced 2026-04-19 22:08:58 +00:00
Add fallback stop condition for Phi3
This commit is contained in:
@@ -124,6 +124,7 @@ class PromptFormat_phi3(PromptFormat):
|
||||
def stop_conditions(self, tokenizer, settings):
|
||||
return \
|
||||
[tokenizer.single_id("<|end|>"),
|
||||
tokenizer.single_id("<|assistant|>"),
|
||||
tokenizer.single_id("<|endoftext|>"),
|
||||
tokenizer.eos_token_id]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user