Add back a missing bos token
This commit is contained in:
parent
3cd7c5bdd0
commit
63ce5f9c28
1 changed files with 1 additions and 1 deletions
|
@ -262,7 +262,7 @@ def do_train(lora_name: str, always_override: bool, save_steps: int, micro_batch
|
||||||
|
|
||||||
else:
|
else:
|
||||||
ind = prompt.index(train_only_after) + len(train_only_after)
|
ind = prompt.index(train_only_after) + len(train_only_after)
|
||||||
before_tokens = encode(prompt[:ind], False)
|
before_tokens = encode(prompt[:ind], True)
|
||||||
after_tokens = encode(prompt[ind:], False)
|
after_tokens = encode(prompt[ind:], False)
|
||||||
|
|
||||||
full_length = len(after_tokens) + len(before_tokens)
|
full_length = len(after_tokens) + len(before_tokens)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue