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

Method add_greedy

llama_cpp/_internals.py:698–700  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

696 self.close()
697
698 def add_greedy(self):
699 sampler = llama_cpp.llama_sampler_init_greedy()
700 llama_cpp.llama_sampler_chain_add(self.sampler, sampler)
701
702 def add_dist(self, seed: int):
703 sampler = llama_cpp.llama_sampler_init_dist(seed)

Callers 1

_init_samplerMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected