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

Class LlamaState

llama_cpp/llama.py:2450–2465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2448
2449
2450class LlamaState:
2451 def __init__(
2452 self,
2453 input_ids: npt.NDArray[np.intc],
2454 scores: npt.NDArray[np.single],
2455 n_tokens: int,
2456 llama_state: bytes,
2457 llama_state_size: int,
2458 seed: int,
2459 ):
2460 self.input_ids = input_ids
2461 self.scores = scores
2462 self.n_tokens = n_tokens
2463 self.llama_state = llama_state
2464 self.llama_state_size = llama_state_size
2465 self.seed = seed
2466
2467
2468LogitsProcessor = Callable[

Callers 1

save_stateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…