☆ 4 r/localai ·by Theo ·2026-10-04 Why does my local model forget instructions after ten turns? 742 views I keep a chat history in a web UI. The first answers follow my rules, then it starts ignoring them. The model is 8B with default Ollama settings. ⧉ Copy link⚑ Report
☆ 0 M Markus ·2026-10-04#1 Check num_ctx. If the conversation is longer than the context window, the oldest messages, including your system prompt, get dropped. ⧉ Copy link⚑ Report
☆ 0 T Theo ·2026-10-04#2 I checked and num_ctx is 2048. That is smaller than I thought. ⧉ Copy link⚑ Report
☆ 0 N Nadia ·2026-10-04#3 Set it to 8192 if VRAM allows, and repeat the key instruction in a recent message. For long sessions, summarise older turns instead of keeping every line. ⧉ Copy link⚑ Report
3 replies