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

Method add_softmax

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

Source from the content-addressed store, hash-verified

704 llama_cpp.llama_sampler_chain_add(self.sampler, sampler)
705
706 def add_softmax(self):
707 warnings.warn(
708 "add_softmax is deprecated; llama_sampler_init_dist now samples directly from logits",
709 DeprecationWarning,
710 stacklevel=2,
711 )
712
713 def add_top_k(self, k: int):
714 sampler = llama_cpp.llama_sampler_init_top_k(k)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected