Update tokenizer_utils.py
This commit is contained in:
parent
9f1b839d34
commit
c792fa4f20
1 changed files with 1 additions and 0 deletions
|
|
@ -945,6 +945,7 @@ def patch_sft_trainer_tokenizer():
|
|||
" from functools import partial\n"\
|
||||
" tokenizer = partial(tokenizer, add_special_tokens = False)\n"\
|
||||
" processing_class = tokenizer\n"\
|
||||
" print(1111)\n"
|
||||
"else:\n"\
|
||||
" add_special_tokens = False if has_bos_token_already else add_special_tokens\n\n"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue