File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed
Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -1095,13 +1095,12 @@ struct clip_graph {
10951095
10961096 // Vision encoder: use RMS norm per metadata (eps), FFN op per hparams
10971097 ggml_tensor * cur = build_vit (
1098- inp, n_pos,
1099- NORM_TYPE_RMS,
1100- hparams.ffn_op ,
1101- learned_pos_embd,
1102- nullptr );
1103-
1104- // keep runtime quiet in normal runs; shapes are correct by construction
1098+ inp, n_pos,
1099+ NORM_TYPE_RMS,
1100+ hparams.ffn_op ,
1101+ learned_pos_embd,
1102+ nullptr );
1103+ // keep runtime quiet in normal runs; shapes are correct by construction
11051104
11061105 // Apply spatial patch merge (e.g., 2x2) before projector if requested
11071106 {
@@ -1114,11 +1113,11 @@ struct clip_graph {
11141113 }
11151114 }
11161115
1117- // 2-layer MLP projector: mm.0 -> GELU -> mm.2
1116+ // 2-layer MLP projector: mm.0 -> GELU -> mm.2
11181117 ggml_tensor * embeddings = cur;
11191118
1120- // projector matmuls assume canonical [n_in, n_out] weights; no runtime transposes
1121- GGML_ASSERT (model.mm_0_w != nullptr );
1119+ // projector matmuls assume canonical [n_in, n_out] weights; no runtime transposes
1120+ GGML_ASSERT (model.mm_0_w != nullptr );
11221121 // ensure projector input is a packed 2D matrix [n_in, n_tokens]
11231122 embeddings = ggml_reshape_2d (ctx0, embeddings, embeddings->ne [0 ], embeddings->ne [1 ]);
11241123 embeddings = ggml_cont_2d (ctx0, embeddings, embeddings->ne [0 ], embeddings->ne [1 ]);
You can’t perform that action at this time.
0 commit comments