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

Method set_cache

llama_cpp/llama.py:633–639  ·  view source on GitHub ↗

Set the cache. Args: cache: The cache to set.

(self, cache: Optional[BaseLlamaCache])

Source from the content-addressed store, hash-verified

631 )
632
633 def set_cache(self, cache: Optional[BaseLlamaCache]):
634 """Set the cache.
635
636 Args:
637 cache: The cache to set.
638 """
639 self.cache = cache
640
641 def set_seed(self, seed: int):
642 """Set the random seed.

Calls

no outgoing calls