Skip to content

u/InterviewDesigner777

In this archive from Aug 2026 to Aug 2026

7
posts
26
comments
7
media
63
score
11 saved before deletion

Top posts

Top comments

You're right — 7900 XT is 20 GB, my bad (XTX is the 24 GB one). That changes the math.

The looping is the ternary weights, not the context. 1.58-bit ternary is coarser than Q4 — it loses precision on instruction-following, and that's exactly what makes an agent loop: it repeats the step it can't resolve. Switch back to Q4 weights and fix the context with KV quantization instead.

For 20 GB with ~18 GB weights:

  • Q8 KV at 120k ≈ 5 GB → total ≈ 23 GB — still doesn't fit, that's your compression trigger
  • Q4 KV at 120k ≈ 2.5 GB → total ≈ 20.5 GB — borderline
  • Q4 KV at ~100k ≈ 2 GB → total ≈ 20 GB — fits

Use -ctk q4_0 -ctv q4_0 and cap context around 100-120k. For your use case (scripts, scraping, order monitoring) the Q4 KV quality drop doesn't matter — the degradation I meant only shows in long-doc RAG where the model must recall exact early details. A monitoring loop won't notice it.

Context compression at 80% is normal llama.cpp behavior when VRAM runs out — it compresses instead of crashing. Q4 KV pushes that trigger way back.

If loops persist after that, drop context to ~96k and keep Q4 weights — on my 2× R9700, Q4 + Q4 KV never loops like ternary did.

2 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.