← All tags

#math

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.

My Experiments with Voice Generation: Kokoro, Silero, Vosk and Lip Sync from Scratch

How neural TTS turns text into sound, mel spectrograms and iSTFT vocoders in code, a local English and Russian voice stack, and lip sync from a loudness envelope.

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.

Building My First Robot Arm: Servos, Steppers, and the Math on Paper

From a servo kit that reset the Arduino to a geared stepper arm, with the inverse kinematics, torque, and stress math I did by hand.