clip : fix confused naming ffn_up and ffn_down (#13290)

* clip :  fix confused naming ffn_up and ffn_down

* rm ffn_i/o/g naming

* rename n_embd, n_ff

* small fix

* no check n_ff
This commit is contained in:
Xuan-Son Nguyen 2025-05-05 12:54:44 +02:00 committed by GitHub
parent ae803bfc3d
commit 5215b91e93
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 86 additions and 82 deletions

View file

@ -92,6 +92,10 @@ struct mtmd_cli_context {
batch = llama_batch_init(params.n_batch, 0, 1);
n_batch = params.n_batch;
if (!model || !lctx) {
exit(1);
}
if (!llama_model_chat_template(model, nullptr) && params.chat_template.empty()) {
LOG_ERR("Model does not have chat template.\n");
LOG_ERR(" For old llava models, you may need to use '--chat-template vicuna'\n");