Method
_save_file
(
tensors: Dict[str, np.ndarray],
path: Path,
metadata: Dict[str, str],
)
Source from the content-addressed store, hash-verified
| 10421 | |
| 10422 | @staticmethod |
| 10423 | def _save_file( |
| 10424 | tensors: Dict[str, np.ndarray], |
| 10425 | path: Path, |
| 10426 | metadata: Dict[str, str], |
| 10427 | ) -> None: |
| 10428 | from safetensors.numpy import save_file |
| 10429 | |
| 10430 | save_file(tensors, str(path), metadata=metadata) |
| 10431 | |
| 10432 | @staticmethod |
| 10433 | def fingerprint_file(path: str) -> str: |
Tested by
no test coverage detected