← Все теги

#local-llm

Что помнят веса: я прочитал игру нейросети по её весам, а потом написал вручную сеть, которая обыграла обученную

После поста Саймона Уиллисона о том, как LLM читают веса моделей, я обучил две крошечные сети-игрока, вычитал игру обратно скриптом на сорок строк и написал вручную игрока на пяти нейронах, который обыграл обученного.

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.