models : Record layer inputs for all granite models (#30957)

Branch: GraniteSpeculatorSupport
AI-usage: full (Claude + Sonnet 5.5)
Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>
This commit is contained in:
Gabe Goodhart authored and GitHub committed 2026-10-22 10:02:41 +03:00
1 parent dfeea52005
commit bf039c8496
4 files changed
+8

No files matched your search

+2
View File
@@ -153,6 +153,8 @@ llama_model_granite_hybrid::graph::graph(const llama_model & model, const llm_gr
}
for (int il = 0; il < n_layer; ++il) {
res->t_layer_inp[il] = inpL;
struct ggml_tensor * inpSA = inpL;
// norm
+2
View File
@@ -154,6 +154,8 @@ llama_model_granite_swa::graph::graph(
cb(inpL, "deepstack_in", il);
}
res->t_layer_inp[il] = inpL;
ggml_tensor * inpSA = inpL;
// norm
+2
View File
@@ -293,6 +293,8 @@ llama_model_granite_switch::graph::graph(
ggml_tensor * cur;
for (int il = 0; il < n_layer; ++il) {
res->t_layer_inp[il] = inpL;
ggml_tensor * inpSA = inpL;
cur = build_norm(inpL, model.layers[il].attn_norm, NULL, LLM_NORM_RMS, il);
+2
View File
@@ -159,6 +159,8 @@ llama_model_granite::graph::graph(
cb(inpL, "deepstack_in", il);
}
res->t_layer_inp[il] = inpL;
ggml_tensor * inpSA = inpL;
// norm