快速结论:该报错出现在 llama.cpp 的 recurrent/hybrid 模型上,当调用 llama_memory_seq_rm 回滚整批最后一段 decode(且 n_rs_seq > 0)时,函数返回 true 但没有恢复 recurrent state,导致后续解码结果与“未回滚”不一致。优先排查:确认是否通过 MTP/推测解码等路径手动开启了 n_rs_seq,并避免在该路径下一次性移除整批 decode 的所有 token。
适用环境:Issue 已确认的环境为 Linux x86_64,llama.cpp version 10298(commit 15586e2d7),GNU
参考来源
AI 工具推荐
想把多个 AI 模型放在一个入口?
GamsGo AI 集成 ChatGPT、DeepSeek、Gemini、Claude、Midjourney、Veo 等常用模型,适合写作、绘图、视频和日常 AI 工作流。
推广链接:通过此链接购买,我可能获得佣金,不影响你的价格。
这个方案解决了吗?
可以继续搜索完整报错,或查看同一工具的其他排查指南。
![[bug]: Having a connector between a generator and a batch node won't let Invoke start a generation](https://www.chat-gpts.plus/wp-content/uploads/2026/08/9150-595a19d6-768x403.jpg)
![[bug]: invoke desktop application fails to updated due to (valid) global uv configuration](https://www.chat-gpts.plus/wp-content/uploads/2026/08/9498-a09c004e-768x403.jpg)
![[Question]: error when attaching file in chat ----AttributeError("'Request' object has no attribute 'file'")](https://www.chat-gpts.plus/wp-content/uploads/2026/08/11805-40332ec3-768x403.jpg)