(weights, filename)
| 786 | if safe_serialization: |
| 787 | |
| 788 | def save_function(weights, filename): |
| 789 | return safetensors.torch.save_file(weights, filename, metadata={"format": "pt"}) |
| 790 | |
| 791 | else: |
| 792 | save_function = torch.save |
nothing calls this directly
no outgoing calls
no test coverage detected