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

Method apply_wrapper

llama_cpp/_internals.py:648–652  ·  view source on GitHub ↗
(
            sampler: llama_cpp.llama_sampler_p,
            cur_p: llama_cpp.llama_token_data_array_p,
        )

Source from the content-addressed store, hash-verified

646 self.apply_func = apply_func
647
648 def apply_wrapper(
649 sampler: llama_cpp.llama_sampler_p,
650 cur_p: llama_cpp.llama_token_data_array_p,
651 ):
652 self.apply_func(cur_p)
653
654 def free_wrapper(sampler: llama_cpp.llama_sampler_p):
655 pass

Callers

nothing calls this directly

Calls 1

apply_funcMethod · 0.80

Tested by

no test coverage detected