module

ML::LLM

Class methods

cleanup

Cleanup llama backend (call at program end)

Source
gpu_available?

Check if GPU offload is supported

Source
init

Initialize llama backend (call once at program start)

Source
register_context(context : Context) : Nil
Source
register_model(model : Model) : Nil
Source
system_info

Get system info string

Source
unregister_context(context : Context) : Nil
Source
unregister_model(model : Model) : Nil
Source

Nested types