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

Method __init__

examples/server/server.py:10397–10409  ·  view source on GitHub ↗
(
        self,
        *,
        path: str,
        max_bytes: int,
        model_fingerprint: str,
        mmproj_fingerprint: str,
    )

Source from the content-addressed store, hash-verified

10395 _metadata_version = "1"
10396
10397 def __init__(
10398 self,
10399 *,
10400 path: str,
10401 max_bytes: int,
10402 model_fingerprint: str,
10403 mmproj_fingerprint: str,
10404 ) -> None:
10405 self.path = Path(path)
10406 self.max_bytes = max_bytes
10407 self.model_fingerprint = model_fingerprint
10408 self.mmproj_fingerprint = mmproj_fingerprint
10409 self.path.mkdir(parents=True, exist_ok=True)
10410
10411 @staticmethod
10412 def _safe_open(path: Path) -> Any:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected