Writing
34 posts on agents, memory, retrieval, local inference, and evals.
A local evaluation of Human-Like-Qwen2.5-7B against real SMS and Reddit writing, what its DPO training data explains, and why this matters for YC's LLMs That Write Well request.
How I build and release software with Claude: research in artifacts, a system design doc, goal-driven agents, ADRs, layered verification with a second opinion, PR stewardship, and a regular security cadence. Free PDF guide included.
A 75-page, build-first guide to coding-agent harnesses: implement the bounded Rust core, study production concerns, and trace the architecture to Quecto.
A walkthrough of my arXiv paper BudgetBench: a protocol and open-source harness that treats the per-call input-token budget as the independent variable when comparing memory strategies for local LLM agents, with the pilot results, the null results, and the tokenizer bug we caught in our own numbers.
Two teachers, rejection sampling and rank-32 LoRA on a single M4 Pro produced a 4.9 GB build of Ornith-1.5-9B that scores +5.5 MMLU and +3.0 HumanEval over the stock 4-bit release. The mechanism turned out to be reasoning termination, not knowledge.
I converted a 23-page Nature paper to DocLang, embedded it three ways, and counted every token. DocLang costs 2.7× markdown on a stock tokenizer and loses on retrieval. Docling's structured text wins, and 38% of the paper was bibliography and journal boilerplate the summarizer never needed.
mlx_lm.lora --train crashed on granitemoe, granitemoehybrid, and lfm2_moe with a VJP error on integer routing indices. Found while fine-tuning Qwen3-30B-A3B on an M5 Pro, traced to a missing mx.stop_gradient, fixed and merged upstream as mlx-lm PR #1795.
ornith-9b, running fully local and free through the Claude Code harness, wrote a real performance PR against quecto with three optimizations. Claude Sonnet 5 verified the diff line by line: one claim was correct, one was mislabeled, and one didn't do what it said — and got fixed for real before merge. Released as quecto-agent v0.2.2.
Measured on an M5 Pro: pairing Qwen3.8-27B with a 0.8B draft model peaks at a 119% decode speedup, the best result in this series, but it does not work out of the box. mlx_lm refuses to run speculative decoding against Qwen3.8's hybrid attention cache at all; getting a real number required patching it. Includes the original Qwen3-8B result (58% peak) and a Qwen3.6 self-speculative MTP comparison.
Measured on an M5 Pro: batching concurrent requests raises aggregate throughput right up until peak memory approaches physical RAM, then throughput collapses and the process eventually has to be killed. The wall is unified memory, not compute.
Measured on an M5 Pro: batched matmul (GEMM) holds a flat ~80x throughput advantage over matrix-vector ops (GEMV) at every size tested. That gap is why batching multiplies prefill throughput but barely touches decode.
Verbatim MLX and mlx-lm error strings with verified causes: model type not supported, Metal insufficient memory, quantize group size, and float16 NaN.
Measured on an M5 Pro: quantizing the KV cache halves how fast decode degrades with context, but halves prefill throughput too. Break-even math included.
Agent Plugins v1.0.0 standardizes just 2 component types across 7 clients. What the portable core fixes, what it defers, and why Claude Code is missing.
The second entry in the QuECTO build series: how a 1.3 MB core grew into a 3.5 MB coding agent with reasoning controls, verification gates, session persistence, subagents, multimodal input, telemetry, and a native evaluation harness.
A detailed walkthrough of my paper MEDFIT-LLM: a controlled, multi-architecture study of how domain-focused fine-tuning lets small language models compete with much larger general-purpose models on medical tasks.
Learn what an AI agent harness is, how it controls tools, context, memory, retries, verification, cost, and reliability, and how agent harnesses can be evaluated systematically.
I replaced my portfolio's standalone /ask page with a grounded, multi-turn RAG chat embedded in the homepage hero, built on Cloudflare AI Search. Here's the architecture and what broke.
I shipped a hosted, read-only MCP server for adityakarnam.com, plus an interactive Fit Check and Projects app any MCP client can open. Here's how it works and why I built it.
Emergent's $1.5B round, HCLTech's ₹3,500 crore data centers, and Karnataka's policy point at one gap: India's missing agent infrastructure layer.
Latency and response-quality results for Ollama, vLLM Metal and SGLang on one M5 Pro Mac, plus a Qwen 3.5 sweep from 0.8B to 9B judged by Gemma 4.
I built subagent-fleet to route Claude Code-style subagents across local Ollama machines, with LiteLLM generation, health checks, model warmup, and a live dashboard.
I built an n8n workflow pulling from 7 RSS feeds, used Google Gemini to write MDX posts, and auto-published 139 blog posts to GitHub. Here's what Google Search Console showed.
embenx gives one Collection API over 15+ vector backends including FAISS, pgvector and Qdrant, plus hybrid search, temporal memory and a built-in MCP server.
Why identical MLX inputs give different outputs: batch-invariance tests from 512 to 4096 matrices, plus bfloat16, float32 and float16 error behavior.
Building a self-hosted ML lab on Mac minis with 64GB unified memory: Ray cluster, arm64 Docker, MinIO object storage and Streamlit, and what it cost versus AWS.
Discover how ancient Stoic wisdom can help you create meaning, embrace virtue, and stop postponing your authentic life. Learn from Viktor Frankl, Seneca, and Marcus Aurelius.
Learn to identify and fix poorly performing AI prompts with our comprehensive guide and free grader tool. Transform weak prompts into high-performing instructions that get 10x better results.
Discover when to use prompt graders versus prompt libraries for optimal AI results. Compare approaches, see real examples, and learn which tool fits your specific use case.
Manual sharding in plain PostgreSQL, no Citus: shard tables, routing insert and read functions, a unified view, range reads, and insert/read benchmarks.
Every social media feed is filled with people conquering mountains. Someone is scaling Everest, another person is posting perfect yoga poses…
Hey folks! Welcome to another edition of our Friday ritual where we decide between caffeine or hops (let's be real, sometimes both are…
We all face moments when everything seems to be falling apart. When deadlines pile up, projects fail, relationships strain, and the path…
Today marks the beginning of a new decade in my life. Thirty years of existence, and six years of professional experience as a software…
Essays on technology and society live at calltothink.com.