mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-23 00:18:20 +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:
|
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…
Reference in New Issue
Block a user