Applied AI Systems Lab Notes¶
Reproducible experiments across consumer-GPU LLM inference, coding-agent context economics, durable agent execution, post-training (GRPO/RLVR), and hierarchy-aware retrieval. Every note ships with exact hardware/commit metadata, raw CSVs, one-command reproduction, an unexpected finding, and an explicit "What I'd Distrust" section.
- RSS Feed:
https://sourald.com/feed.xml - Interactive Calculators: KV-Cache/VRAM-Fit, Token-Budget & Prefix-Routing Tools
- Verification Ledger: Evidence, Benchmarks & Upstream OSS PRs
Latest Lab Notes (November 2026)¶
1. The 8-Layer Offload Cliff on 16 GB VRAM & Multi-Turn KV-Cache Drift in llama.cpp¶
Date: 2026-11-30 · Hardware: NVIDIA RTX 5080 Laptop 16 GB (sm_120) · Engine: llama.cpp b12167 (240d68fcf) · Repo: p2InferRoute
Spilling just 8 of 64 layers of Qwen3.8-27B from 16 GB VRAM into host RAM collapses decode throughput by -62.0% (33.67 → 12.78 tok/s), while prefill drops only -34.2%. Live multi-turn server telemetry also quantifies the <think> reinjection penalty (6.7× more tokens re-evaluated per turn, +26% prompt latency) and tests llama.cpp#11970.
2. Where Did 56.8% of Your Coding-Agent Tokens Go? Profiling 8.5M Multi-Agent Tokens¶
Date: 2026-11-30 · Turns: 182 across 6 sessions (Claude Code, Codex, Cline, OpenClaw, OpenAI) · Repo: ctx-profiler
MECE exact-sum token attribution (sum(categories) == total_tokens to the exact integer) shows 56.84% pure avoidable waste (27.47% file re-reads, 21.57% verbose tool dumps, 7.81% <think> replay), with deterministic compaction policies cutting total tokens by -61.65% ($36.38 saved per 100 sessions).
3. Killing Agents with SIGKILL (240 Trials) & Why Flat Markdown Breaks Hierarchical RAG¶
Date: 2026-11-30 · Repos: Harness3 (agent-chaos) · GraphRAGAgent (doc-hierarchy-bench) · AgentReliabilityLab (bench-audit)
240 real OS process kills across 4 crash boundaries produce 160 duplicate side effects on naive retries, 80 on uncoordinated checkpoints (langgraph#8039/#7417), and 0 on a SQLite WAL operation-ID journal; plus a 4-way retrieval ablation (0.5208 → 1.0000 Recall@5) and denominator-integrity auditing.
Also see: Previous Local AI Hardware Benchmarks · Engineering Case Studies · Interactive Demos