[FIX] Fix bug in finetune.py
This commit is contained in:
@ -123,7 +123,7 @@ def train(
|
|||||||
)
|
)
|
||||||
tokenizer.padding_side = "left" # Allow batched inference
|
tokenizer.padding_side = "left" # Allow batched inference
|
||||||
|
|
||||||
def tokenize(prompt):
|
def tokenize(prompt, add_eos_token=True):
|
||||||
# there's probably a way to do this with the tokenizer settings
|
# there's probably a way to do this with the tokenizer settings
|
||||||
# but again, gotta move fast
|
# but again, gotta move fast
|
||||||
result = tokenizer(
|
result = tokenizer(
|
||||||
|
|||||||
Reference in New Issue
Block a user