Skip to main content

Module context

Module context 

Source
Expand description

Safe wrapper around llama_context.

Submodules:

Re-exports§

pub use memory_breakdown::MemoryBreakdownEntry;
pub use tensor_capture::CapturedTensor;
pub use tensor_capture::TensorCapture;

Modules§

kv_cache
utilities for working with the kv cache
memory_breakdown
Per-buffer-type memory usage reported by llama.cpp.
params
A safe wrapper around llama_context_params.
perf
Safe wrapper around llama_perf_context_data.
session
utilities for working with session files
tensor_capture
Capture intermediate tensor outputs during crate::LlamaContext::decode.

Structs§

LlamaContext
A safe wrapper around the llama_context C++ context.