Commit f9448cddc for llama.cpp
commit f9448cddc48c129a4abc7ff9c2a84c2b4c101c61
Author: Tarek Dakhran <tarek@liquid.ai>
Date: Tue Nov 3 12:29:10 2026 +0100
model : record layer inputs in LFM3 for spec dec (#31598)
diff --git a/src/models/lfm3.cpp b/src/models/lfm3.cpp
index 174ce9cf7..b74dea41b 100644
--- a/src/models/lfm3.cpp
+++ b/src/models/lfm3.cpp
@@ -157,6 +157,8 @@ llama_model_lfm3::graph<decision>::graph(const llama_model & model, const llm_gr
ggml_tensor * inp_out_ids = build_inp_out_ids();
for (int il = 0; il < n_layer; ++il) {
+ res->t_layer_inp[il] = cur;
+
auto * prev_cur = cur;
cur = build_norm(cur, model.layers[il].attn_norm, NULL, LLM_NORM_RMS, il);