Sphere
Log in Join
☆ 4

Why does my local model forget instructions after ten turns?

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.

⚑ Report

3 replies

☆ 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.

⚑ Report
☆ 0
T Theo ·2026-10-04#2

I checked and num_ctx is 2048. That is smaller than I thought.

⚑ 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.

⚑ Report
Log in to reply.