llama

D bindings and wrappers for llama.cpp.

Modules

adapter
module llama.adapter
Undocumented in source.
backend
module llama.backend
Undocumented in source.
batch
module llama.batch
Undocumented in source.
chat
module llama.chat
Undocumented in source.
ctx
module llama.ctx
Undocumented in source.
ggml
module llama.ggml

Direct re-export of ggml.h bindings (use when not importing llama.llama).

ggml_alloc
module llama.ggml_alloc

D companion module for ggml-alloc.h - re-exports importC bindings

ggml_backend
module llama.ggml_backend

D companion module for ggml-backend.h - re-exports importC bindings

ggml_cpu
module llama.ggml_cpu

D companion module for ggml-cpu.h - re-exports importC bindings

ggml_opt
module llama.ggml_opt

D companion module for ggml-opt.h - re-exports importC bindings

gguf
module llama.gguf

D companion module for gguf.h - re-exports importC bindings

llama
module llama.llama
Undocumented in source.
model
module llama.model
Undocumented in source.
mtmd
module llama.mtmd

D bindings and wrappers for libmtmd (multimodal support).

owned
module llama.owned

Mixin template for single-ownership wrappers around C pointers.

sampling
module llama.sampling
Undocumented in source.
vocab
module llama.vocab
Undocumented in source.

Public Imports

llama.llama
public import llama.llama;
Undocumented in source.
llama.owned
public import llama.owned;
Undocumented in source.
llama.backend
public import llama.backend;
Undocumented in source.
llama.model
public import llama.model;
Undocumented in source.
llama.ctx
public import llama.ctx;
Undocumented in source.
llama.batch
public import llama.batch;
Undocumented in source.
llama.vocab
public import llama.vocab;
Undocumented in source.
llama.sampling
public import llama.sampling;
Undocumented in source.
llama.chat
public import llama.chat;
Undocumented in source.
llama.adapter
public import llama.adapter;
Undocumented in source.
llama.mtmd
public import llama.mtmd;
Undocumented in source.

Meta