← All tags

#long-context

ctx-compact: What I Learned Trying to Fit Long Conversations into a Token Budget as a ml researcher

My open-source experiment on compacting long chats: a dependency graph that worked on synthetic data, neighbour smoothing that worked on LoCoMo, and an honest negative result.

CASSQ: Spending KV Cache Bits Only Where the Context Needs Them

Context-Aware Semantic Salience Quantization: an entropy score decides, token by token, whether a KV cache entry keeps 8 bits or drops to 2. The maths from my notebook, working code, the memory numbers and the weak spots.

One 40 GB GPU, Three AI Engines: KV Cache Maths and VRAM Collisions

How memory really scales when you push a 27B-class model towards long context on a 40 GB GPU, and how to host chat, image generation and voice on the same card without out-of-memory crashes.

Architecting a Zero-Cloud Agent Memory Lab: vLLM, pgvector, and a Context Budget That Never Blows Up

How I built a local lab for agent memory: compaction with a PI controller, a conflict sentinel in pgvector, Ollama vs vLLM benchmarks, and the quantization maths that frees VRAM for 32k context.

The Dark Art of Context Truncation & Dynamic Prompt Compaction in Production RAG

Truncation, packing, and query-conditioned compaction when production RAG outgrows the context window.