Skip to content

Commit 114b4dd

Browse files
committed
graphs
1 parent 5b4a8f1 commit 114b4dd

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/llama-graph.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,10 @@ struct llm_graph_params {
628628
return
629629
cparams.embeddings == other.cparams.embeddings &&
630630
cparams.causal_attn == other.cparams.causal_attn &&
631+
// mtp_step selects which MTP block the graph references; reusing a
632+
// graph built for step k with step k' != k would silently feed the
633+
// wrong block's weights.
634+
cparams.mtp_step == other.cparams.mtp_step &&
631635
arch == other.arch &&
632636
gtype == other.gtype &&
633637
cvec == other.cvec &&

0 commit comments

Comments
 (0)