Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
10040
const llama_model * llama_get_model(const struct llama_context * ctx) {
10041
return &ctx->model;
10042
}
10043
10044
int llama_n_ctx(const struct llama_context * ctx) {
10045
return ctx->cparams.n_ctx;
Callers
15
llama_token_to_piece
Function · 0.70
llama_sample_classifier_free_guidance
Function · 0.70
llama_sample_token_mirostat
Function · 0.70
llama_logit_info
Method · 0.70
llama_tokenize
Function · 0.50
llama_token_to_piece
Function · 0.50
llama_detokenize_spm
Function · 0.50
dump_non_result_info_yaml
Function · 0.50
get_example_targets_batch
Function · 0.50
tokenize_file
Function · 0.50
llama_sampling_sample
Function · 0.50
sample_id
Function · 0.50
Calls
no outgoing calls
Tested by
2
test_prompt
Function · 0.40
test_gen
Function · 0.40