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

Function llama_model_has_decoder

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

Source from the content-addressed store, hash-verified

14317}
14318
14319bool llama_model_has_decoder(const llama_model * model) {
14320 switch (model->arch) {
14321 case LLM_ARCH_T5ENCODER: return false;
14322 default: return true;
14323 }
14324}
14325
14326llama_token llama_model_decoder_start_token(const llama_model * model) {
14327 return model->hparams.dec_start_token_id;

Callers 2

common_init_from_paramsFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected