mtmd: add n_embd_head (#26342)

Co-authored-by: Daniel Han <unslothai@gmail.com>
This commit is contained in:
Xuan-Son Nguyen
2026-07-31 15:30:19 +02:00
committed by GitHub
co-authored by Daniel Han
parent a09d8abf8c
commit db7d8b24b5
5 changed files with 11 additions and 3 deletions
+2
View File
@@ -54,6 +54,8 @@ struct clip_hparams {
int32_t projection_dim = 0;
int32_t n_head = 0;
int32_t n_head_kv = 0;
// 0 = derive from n_embd; set when qkv width != n_embd
int32_t n_embd_head = 0;
int32_t n_layer = 0;
int32_t n_merge = 1; // number of patch merges **per-side**