```python
Saves a given torch model to disk, handling sharding and shared tensors issues.

See also [`save_torch_state_dict`] to save a state dict with more flexibility.

For more information about tensor sharing, check out [this guide](https://huggingface.co/docs/safetensors/torch_shared_tensors).