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

Method _metadata_compatible

examples/server/server.py:12408–12411  ·  view source on GitHub ↗
(self, metadata: Optional[Dict[str, str]])

Source from the content-addressed store, hash-verified

12406 save_file(tensors, str(path), metadata=metadata)
12407
12408 def _metadata_compatible(self, metadata: Optional[Dict[str, str]]) -> bool:
12409 if metadata is None:
12410 return False
12411 return all(metadata.get(key) == value for key, value in self._metadata.items())
12412
12413 def _read_entry_header(self, path: Path) -> Optional["SequenceDiskCache.Header"]:
12414 with self._safe_open(path) as tensors:

Callers 1

_read_entry_headerMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected