Merge pull request #394 from QwenLM/jklj077-patch-1

Update finetune.py
This commit is contained in:
Junyang Lin 2024-05-11 16:49:29 +08:00 committed by GitHub
commit e294ff7b23
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ def preprocess(
chat_template=TEMPLATE,
tokenize=True,
add_generation_prompt=False,
padding=True,
padding="max_length",
max_length=max_len,
truncation=True,
)