"""
Saves a given torch model to specified filename.
This method exists specifically to avoid tensor sharing issues which are
- not allowed in `safetensors`. [More information on tensor sharing](torch_shared_tensors)
+ not allowed in `safetensors`. [More information on tensor sharing](../torch_shared_tensors)
Args:
model (`torch.nn.Module`):
"""
Loads a given filename onto a torch model.
This method exists specifically to avoid tensor sharing issues which are
- not allowed in `safetensors`. [More information on tensor sharing](torch_shared_tensors)
+ not allowed in `safetensors`. [More information on tensor sharing](../torch_shared_tensors)
Args:
model (`torch.nn.Module`):