Skip to content

Commit

Permalink
fix: update dataclass objects directly instead of creating new variab…
Browse files Browse the repository at this point in the history
…les (#418)

Signed-off-by: Mehant Kammakomati <mehant.kammakomati2@ibm.com>
  • Loading branch information
kmehant authored Dec 13, 2024
1 parent a098e70 commit a89f76b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tuning/sft_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,9 +295,9 @@ def train(
(
formatted_train_dataset,
formatted_validation_dataset,
dataset_text_field,
data_args.dataset_text_field,
data_collator,
max_seq_length,
train_args.max_seq_length,
dataset_kwargs,
) = process_dataargs(data_args, tokenizer, train_args, additional_data_handlers)
additional_metrics["data_preprocessing_time"] = (
Expand Down Expand Up @@ -327,7 +327,7 @@ def train(
}

additional_args = {
"dataset_text_field": dataset_text_field,
"dataset_text_field": data_args.dataset_text_field,
"dataset_kwargs": dataset_kwargs,
}
training_args = SFTConfig(**transformer_kwargs, **additional_args)
Expand Down

0 comments on commit a89f76b

Please # to comment.