llama-cpp-hs
Safe HaskellSafe-Inferred
LanguageHaskell2010

Llama.Internal.Foreign.Split

Synopsis

Documentation

c_llama_split_path Source #

Arguments

:: CString 
-> CSize 
-> CString 
-> CInt 
-> CInt 
-> IO CInt

Returns length of written string or required buffer size

LLAMA_API int llama_split_path(char * split_path, size_t maxlen, const char * path_prefix, int split_no, int split_count);

c_llama_split_prefix Source #

Arguments

:: CString 
-> CSize 
-> CString 
-> CInt 
-> CInt 
-> IO CInt

Returns length of written string or required buffer size

LLAMA_API int llama_split_prefix(char * split_prefix, size_t maxlen, const char * split_path, int split_no, int split_count);

c_llama_print_system_info Source #

Arguments

:: IO CString

Returns system info string

LLAMA_API const char * llama_print_system_info(void);

c_llama_log_set :: FunPtr (CInt -> CString -> Ptr () -> IO ()) -> Ptr () -> IO () Source #

LLAMA_API void llama_log_set(ggml_log_callback log_callback, void * user_data);