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

Method __init__

llama_cpp/llama_cache.py:107–111  ·  view source on GitHub ↗
(
        self, cache_dir: str = ".cache/llama_cache", capacity_bytes: int = (2 << 30)
    )

Source from the content-addressed store, hash-verified

105 """Cache for a llama.cpp model using disk."""
106
107 def __init__(
108 self, cache_dir: str = ".cache/llama_cache", capacity_bytes: int = (2 << 30)
109 ):
110 super().__init__(capacity_bytes)
111 self.cache = diskcache.Cache(cache_dir)
112
113 @property
114 def cache_size(self):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected