llama-cpp-d ~master (2026-03-20T18:06:26.5280947)
Dub
Repo
LlamaModel.loadFromFile
llama
model
LlamaModel
Load from a D string path, with optional GPU layer count.
LlamaModel
loadFromFile
(const(char)* path, llama_model_params params)
LlamaModel
loadFromFile
(string path, int nGpuLayers)
struct
LlamaModel
static
LlamaModel
loadFromFile
(
string
path
,
int
nGpuLayers
= 0
)
Meta
Source
See Implementation
llama
model
LlamaModel
functions
chatTemplate
metaKeyAt
metaVal
metaValAt
mixins
__anonymous
properties
decoderStartToken
desc
hasDecoder
hasEncoder
isRecurrent
metaCount
nCtxTrain
nEmbd
nHead
nLayer
nParams
nVocab
size
vocab
static functions
loadFromFile
loadVocabOnly
Load from a D string path, with optional GPU layer count.