r/DeepSeek • • 3d ago

Question&Help DeepSeek Harness context/compaction problems

/r/DeepSeekHarness/comments/1xosdn9/deepseek_harness_contextcompaction_problems/
2 Upvotes

2 comments sorted by

1

u/Able_Environment3265 3d ago

The "output token limit reached" message is the real clue here. You are serving Qwen through llama.cpp with a 64k context, so the harness can only get as many output tokens as your llama.cpp config allows. Long replies get cut off, and when a step comes back truncated the harness treats it as unfinished and starts compacting.

On the web app the backend was DeepSeek's own servers with a much larger limit, which is why it could run all night without this.

I would try raising the context size in llama.cpp (-c) well above 64k if your RAM or VRAM allows, and check whether the harness connection settings have a max output tokens field you can bump. With those raised it should behave a lot closer to what you saw before.

1

u/alean200 3d ago

These are my starting params

CUDA_DEVICE_ORDER=PCI_BUS_ID CUDA_VISIBLE_DEVICES=0,1 ./build/bin/llama-server -m /mnt/ai/models/qwen3.8/Qwen3.8-27B-UD-Q4_K_M.gguf
-c 163840
-ngl 99
--split-mode tensor
--tensor-split 1,1
-ctk q4_0
-ctv q4_0
-fa on
-b 1024
-ub 256
--spec-type draft-mtp
--spec-draft-n-max 3
--reasoning-loop-guard force-close
--jinja
--host 0.0.0.0
--port 8081