← All tags

#local-llm

What the Weights Remember: I Read a Neural Network's Game from Its Weights, Then Hand-Wrote One That Beat Training

After reading a post on LLMs reading model weights, I trained two tiny game networks, read the game back with a forty-line script, and hand-wrote a five-neuron player that beat the trained one.

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.

Build Your Own LLM API: An Open-Weight Model Behind a Gateway You Control

How I serve an open-weight model with vLLM behind a small FastAPI gateway that adds API keys, rate limits, token caps, streaming and usage logs, while staying OpenAI-compatible.

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.