Revert "Make sharded checkpoints work in offline mode"
Revert "Make sharded checkpoints work in offline mode"

This reverts commit 3564c6578630a3bef29d2c7c36c7d29b68acd874.

huggingface/transformers,huggingface/transformers,huggingface/transformers,huggingface/transformers