MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / llama_get_model

Function llama_get_model

llama.cpp:10040–10042  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10038}
10039
10040const llama_model * llama_get_model(const struct llama_context * ctx) {
10041 return &ctx->model;
10042}
10043
10044int llama_n_ctx(const struct llama_context * ctx) {
10045 return ctx->cparams.n_ctx;

Callers 15

llama_token_to_pieceFunction · 0.70
llama_logit_infoMethod · 0.70
llama_tokenizeFunction · 0.50
llama_token_to_pieceFunction · 0.50
llama_detokenize_spmFunction · 0.50
tokenize_fileFunction · 0.50
llama_sampling_sampleFunction · 0.50
sample_idFunction · 0.50

Calls

no outgoing calls

Tested by 2

test_promptFunction · 0.40
test_genFunction · 0.40