Update tokenizer_utils.py
This commit is contained in:
parent
058a2a7887
commit
7bf6253395
1 changed files with 2 additions and 1 deletions
|
|
@ -950,7 +950,8 @@ def patch_sft_trainer_tokenizer():
|
|||
|
||||
check_text = check_text.split("\n")
|
||||
check_text = "\n".join(" "*where + x for x in check_text)
|
||||
|
||||
check_text = check_text.rstrip() + "\n"
|
||||
|
||||
if replacer is None:
|
||||
# .*? matches first match. .+? matches final match.
|
||||
replacer = re.findall(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue