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

Function llama_load_session_file

llama_cpp/llama_cpp.py:2659–2666  ·  view source on GitHub ↗
(
    ctx: llama_context_p,
    path_session: bytes,
    tokens_out: CtypesArray[llama_token],
    n_token_capacity: Union[ctypes.c_size_t, int],
    n_token_count_out: CtypesPointerOrRef[ctypes.c_size_t],
    /,
)

Source from the content-addressed store, hash-verified

2657 ctypes.c_bool,
2658)
2659def llama_load_session_file(
2660 ctx: llama_context_p,
2661 path_session: bytes,
2662 tokens_out: CtypesArray[llama_token],
2663 n_token_capacity: Union[ctypes.c_size_t, int],
2664 n_token_count_out: CtypesPointerOrRef[ctypes.c_size_t],
2665 /,
2666) -> bool: ...
2667
2668
2669_llama_load_session_file = llama_load_session_file

Callers

nothing calls this directly

Calls 1

_warn_deprecatedFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…