llama-cpp-hs
Safe HaskellNone
LanguageHaskell2010

Llama.Internal.Foreign.Context

Synopsis

Documentation

llama_time_us :: IO Int64 Source #

Get current time in microseconds

llama_max_devices :: IO CSize Source #

Maximum number of devices supported

llama_supports_mmap :: IO CBool Source #

Features supported by backend

llama_n_ctx :: CLlamaContext -> IO CUInt Source #

Context-related accessors

c_llama_pooling_type_into :: CLlamaContext -> Ptr CInt -> IO () Source #

Get pooling type from context

c_llama_get_kv_self :: CLlamaContext -> IO CLlamaKVCache Source #

Get KV cache from context