Skip to content

Commit

Permalink
bugfix: The 'preprocess_dataset' function call is missing required pa…
Browse files Browse the repository at this point in the history
…rameter (#192)

Co-authored-by: github <[email protected]>
  • Loading branch information
vvycaaa and github authored Dec 25, 2023
1 parent f262347 commit e82e682
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbgpt_hub/train/sft_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def run_sft(
model, tokenizer = load_model_and_tokenizer(
model_args, finetuning_args, training_args.do_train
)
dataset = preprocess_dataset(dataset, tokenizer, data_args, training_args)
dataset = preprocess_dataset(dataset, tokenizer, data_args, training_args, "sft")
data_collator = DataCollatorForSeq2Seq(
tokenizer=tokenizer,
label_pad_token_id=IGNORE_INDEX
Expand Down

0 comments on commit e82e682

Please sign in to comment.