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

Function llama_context_default_params

llama.cpp:9711–9733  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9709}
9710
9711struct llama_context_params llama_context_default_params() {
9712 struct llama_context_params result = {
9713 /*.seed =*/ LLAMA_DEFAULT_SEED,
9714 /*.n_ctx =*/ 512,
9715 /*.n_batch =*/ 512,
9716 /*.n_threads =*/ GGML_DEFAULT_N_THREADS, // TODO: better default
9717 /*.n_threads_batch =*/ GGML_DEFAULT_N_THREADS,
9718 /*.rope_scaling_type =*/ LLAMA_ROPE_SCALING_UNSPECIFIED,
9719 /*.rope_freq_base =*/ 0.0f,
9720 /*.rope_freq_scale =*/ 0.0f,
9721 /*.yarn_ext_factor =*/ -1.0f,
9722 /*.yarn_attn_factor =*/ 1.0f,
9723 /*.yarn_beta_fast =*/ 32.0f,
9724 /*.yarn_beta_slow =*/ 1.0f,
9725 /*.yarn_orig_ctx =*/ 0,
9726 /*.mul_mat_q =*/ true,
9727 /*.f16_kv =*/ true,
9728 /*.logits_all =*/ false,
9729 /*.embedding =*/ false,
9730 };
9731
9732 return result;
9733}
9734
9735struct llama_model_quantize_params llama_model_quantize_default_params() {
9736 struct llama_model_quantize_params result = {

Callers 12

mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
to_llama_cparamsMethod · 0.50
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50

Calls

no outgoing calls

Tested by 4

mainFunction · 0.40
mainFunction · 0.40
mainFunction · 0.40
mainFunction · 0.40