MCPcopy Create free account
hub / github.com/abetlen/llama-cpp-python / _save_file

Method _save_file

examples/server/server.py:10423–10430  ·  view source on GitHub ↗
(
        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:

Callers 1

saveMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected