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

Function llama_model_has_decoder

llama_cpp/llama_cpp.py:1956–1958  ·  view source on GitHub ↗

Returns true if the model contains a decoder that requires llama_decode() call

(model: llama_model_p, /)

Source from the content-addressed store, hash-verified

1954# LLAMA_API bool llama_model_has_decoder(const struct llama_model * model);
1955@ctypes_function("llama_model_has_decoder", [llama_model_p_ctypes], ctypes.c_bool)
1956def llama_model_has_decoder(model: llama_model_p, /) -> bool:
1957 """Returns true if the model contains a decoder that requires llama_decode() call"""
1958 ...
1959
1960
1961# // For encoder-decoder models, this function returns id of the token that must be provided

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…