Update tokenizer_utils.py
This commit is contained in:
parent
55967af47d
commit
50f95ea65e
1 changed files with 1 additions and 1 deletions
|
|
@ -946,7 +946,7 @@ def patch_sft_trainer_tokenizer():
|
|||
" tokenizer = partial(tokenizer, add_special_tokens = False)\n"\
|
||||
" processing_class = tokenizer\n"\
|
||||
"else:\n"\
|
||||
" add_special_tokens = False if has_bos_token_already else add_special_tokens\n\n"
|
||||
" add_special_tokens = False if has_bos_token_already else add_special_tokens"
|
||||
|
||||
check_text = check_text.split("\n")
|
||||
check_text = "\n".join(" "*where + x for x in check_text)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue