update webui
Former-commit-id: 343a4cd82b07a40f96ba413d1d991419ff07a24a
This commit is contained in:
@@ -185,6 +185,7 @@ def get_template_and_fix_tokenizer(
|
||||
if tokenizer.pad_token_id is None and tokenizer.eos_token_id is not None:
|
||||
tokenizer.pad_token = tokenizer.eos_token
|
||||
|
||||
tokenizer.add_special_tokens(dict(additional_special_tokens=template.stop_words))
|
||||
return template
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user