MCPcopy Create free account
hub / github.com/abetlen/llama-cpp-python / llama_model_n_params

Function llama_model_n_params

llama_cpp/llama_cpp.py:1940–1942  ·  view source on GitHub ↗

Returns the total number of parameters in the model

(model: llama_model_p, /)

Source from the content-addressed store, hash-verified

1938# LLAMA_API uint64_t llama_model_n_params(const struct llama_model * model);
1939@ctypes_function("llama_model_n_params", [llama_model_p_ctypes], ctypes.c_uint64)
1940def llama_model_n_params(model: llama_model_p, /) -> int:
1941 """Returns the total number of parameters in the model"""
1942 ...
1943
1944
1945# // Returns true if the model contains an encoder that requires llama_encode() call

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…