Skip to content

Commit

Permalink
Revert "Add logging to modeling tf utils, will be reverted just for d…
Browse files Browse the repository at this point in the history
…ebugging"

This reverts commit 774b6b7.
  • Loading branch information
a8nova committed May 5, 2024
1 parent 782e41f commit 897f9a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/modeling_tf_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2475,7 +2475,7 @@ def save_pretrained(
output_model_file = os.path.join(save_directory, weights_name)

shards, index = tf_shard_checkpoint(self.weights, max_shard_size, weights_name=weights_name)
logger.info(f"shards {shards}\nindex {index}")

# Clean the folder from a previous save
for filename in os.listdir(save_directory):
full_filename = os.path.join(save_directory, filename)
Expand Down

0 comments on commit 897f9a0

Please sign in to comment.