MCPcopy Index your code
hub / github.com/abetlen/llama-cpp-python / set_seed

Method set_seed

llama_cpp/llama.py:641–647  ·  view source on GitHub ↗

Set the random seed. Args: seed: The random seed.

(self, seed: int)

Source from the content-addressed store, hash-verified

639 self.cache = cache
640
641 def set_seed(self, seed: int):
642 """Set the random seed.
643
644 Args:
645 seed: The random seed.
646 """
647 self._seed = seed
648
649 def reset(self):
650 """Reset the model state."""

Callers 2

_create_completionMethod · 0.95
test_real_llamaFunction · 0.95

Calls

no outgoing calls

Tested by 1

test_real_llamaFunction · 0.76