mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-12-23 21:18:00 +01:00
Add back a missing bos token
This commit is contained in:
parent
3cd7c5bdd0
commit
63ce5f9c28
@ -262,7 +262,7 @@ def do_train(lora_name: str, always_override: bool, save_steps: int, micro_batch
|
||||
|
||||
else:
|
||||
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)
|
||||
|
||||
full_length = len(after_tokens) + len(before_tokens)
|
||||
|
Loading…
Reference in New Issue
Block a user