transformers
6fc38adf - Add model checkpointing to push_to_hub and PushToHubCallback (#14492)

Commit
4 years ago
Add model checkpointing to push_to_hub and PushToHubCallback (#14492) * Add checkpointing to push_to_hub and PushToHubCallback * Add checkpoint loading * Add missing default value * Correct method name * make style * Moving everything to the right location * make style * Revert changes to file_utils.py * Update src/transformers/keras_callbacks.py Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com> * Update src/transformers/keras_callbacks.py Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com> * Adding docstrings and comments to clarify code * make style * Fix organization positional arg * Fix load_repo_checkpoint to no longer accidentally create empty repos * make style * Remove unnecessary 'organization' argument in load_repo_checkpoint * Avoid private `_create_or_get_repo` method * make style * Update src/transformers/modeling_tf_utils.py Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com> Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
Author
Parents
Loading