-
Notifications
You must be signed in to change notification settings - Fork 454
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BaseConfig update for transformers>=4.22.0 (#386)
* Fix BaseConfig to make push_to_hub work again * Update BaseConfig.get_configuration_file docstring to match transformers * Remove BaseConfig.get_config_dict since it is the same implementation as the base class (PretrainedConfig) * Update BaseConfig._get_config_dict and BaseConfig.to_dict * Update BaseConfig.from_dict * Add requirement on transformers version in setup.py * Style fix * Revert "Remove BaseConfig.get_config_dict since it is the same implementation as the base class (PretrainedConfig)" This reverts commit 5907b00. * Re-add BaseConfig.get_config_dict as it is actually useful * Make BaseConfig compatible with transformers <= 4.21.0 * Add todo comment * Use cached_file instead of hf_hub_download for transformers < 4.22 * Update minimum transformers required version Co-authored-by: Ella Charlaix <80481427+echarlaix@users.noreply.github.com>
- Loading branch information
1 parent
8db740c
commit adf37aa
Showing
2 changed files
with
157 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters