Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix: Preserve token fields when converting TrainingArguments to SF…
…TConfig (#1794) * Preserve token fields when converting TrainingArguments to SFTConfig TrainingArguments.to_dict() redacts token fields, so we have to individually copy them over when converting to SFTConfig to avoid breaking push_to_hub functionality. Also adds a test. * run precommit * one-line args_as_dict definition per suggestion from kashif * generalize token copying to match TrainingArguments behavior * unwrap |= on dict, to support python 3.8 * use .update instead of |= or for-loop
- Loading branch information