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

Function llama_model_has_encoder

smallthinker/src/llama-model.cpp:14311–14317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14309}
14310
14311bool llama_model_has_encoder(const llama_model * model) {
14312 switch (model->arch) {
14313 case LLM_ARCH_T5: return true;
14314 case LLM_ARCH_T5ENCODER: return true;
14315 default: return false;
14316 }
14317}
14318
14319bool llama_model_has_decoder(const llama_model * model) {
14320 switch (model->arch) {

Callers 5

mainFunction · 0.85
common_init_from_paramsFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected