Skip to content

Commit 6247fd2

Browse files
style: fix indentation in build_eagle2vl
1 parent e35a94b commit 6247fd2

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

tools/mtmd/clip.cpp

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff 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]);

0 commit comments

Comments
 (0)