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

Method get_seed

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

Source from the content-addressed store, hash-verified

852 )
853
854 def get_seed(self) -> int:
855 return llama_cpp.llama_sampler_get_seed(self.sampler)
856
857 def sample(self, ctx: LlamaContext, idx: int = -1) -> int:
858 return llama_cpp.llama_sampler_sample(self.sampler, ctx.ctx, idx)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected