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

Method add_typical

llama_cpp/_internals.py:725–727  ·  view source on GitHub ↗
(self, p: float, min_keep: int = 1)

Source from the content-addressed store, hash-verified

723 llama_cpp.llama_sampler_chain_add(self.sampler, sampler)
724
725 def add_typical(self, p: float, min_keep: int = 1):
726 sampler = llama_cpp.llama_sampler_init_typical(p, min_keep)
727 llama_cpp.llama_sampler_chain_add(self.sampler, sampler)
728
729 def add_temp(self, temp: float):
730 sampler = llama_cpp.llama_sampler_init_temp(temp)

Callers 1

_init_samplerMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected