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

Function llama_get_logits_ith

llama_cpp/llama_cpp.py:3213–3218  ·  view source on GitHub ↗

Logits for the ith token. Equivalent to: llama_get_logits(ctx) + i*n_vocab

(
    ctx: llama_context_p, i: Union[ctypes.c_int32, int], /
)

Source from the content-addressed store, hash-verified

3211 ctypes.POINTER(ctypes.c_float),
3212)
3213def llama_get_logits_ith(
3214 ctx: llama_context_p, i: Union[ctypes.c_int32, int], /
3215) -> CtypesArray[ctypes.c_float]:
3216 """Logits for the ith token. Equivalent to:
3217 llama_get_logits(ctx) + i*n_vocab"""
3218 ...
3219
3220
3221# // Get all output token embeddings.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…