Fix warning in push_to_hub
_The documentation is not available anymore as the PR was closed or merged._
Fix warning:
```
FutureWarning: 'shard_size' was renamed to 'max_shard_size' in version 2.1.1 and will be removed in 2.4.0.
```