Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Remove deprecated push_to_hub_token to resolve warning #419

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open
8 changes: 4 additions & 4 deletions tuning/sft_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,11 +348,11 @@ def train(
# from our object directly. In the future, we should consider renaming this class and / or
# not adding things that are not directly used by the trainer instance to it.

transformer_train_arg_fields = [x.name for x in dataclasses.fields(SFTConfig)]
transformer_train_arg_fields = [
x.name for x in dataclasses.fields(SFTConfig) if not x.name.startswith("_")
]
transformer_kwargs = {
k: v
for k, v in train_args.to_dict().items()
if k in transformer_train_arg_fields
k: v for k, v in vars(train_args).items() if k in transformer_train_arg_fields
}

additional_args = {
Expand Down