Alvaro Cintas
Writes most about harness building blocks and learning paths for ai engineers.
Field guides
Entries by Alvaro Cintas are sources in these guides:
Entries
- 2026-11-21R218sharedLangChain 101: measured answers on harness choice, durability and structured outputA free, roughly 390-page manual on LangChain 1.5, LangGraph 1.2, Deep Agents 0.7 and LangSmith where every listing comes from a recorded run. Its measured answers: a plain tool loop, create_agent and a hand-built StateGraph gave identical outcomes on 60 of 60 tasks; create_agent costs about 5 ms a call; Deep Agents used 3.6x to 4.3x the prompt tokens; a node re-ran after a crash in 97 of 100 trials under every durability mode; structured-output strategies failed outright on a small local model.
- 2026-11-16R097MiniMind: the whole LLM training pipeline at 64M parametersOne readable script per stage on a Qwen3-style 64M decoder (8 layers, d768, GQA, 6,400-token vocab; a 198M-A64M MoE too): tokenizer, pretrain, SFT with tool calls mixed in and an open_thinking template switch, hand-written LoRA, DPO, PPO with GAE, GRPO, CISPO, multi-turn agentic RL (488-line train_agent.py: up to 3 tool turns, six mock tools, trajectory reward from answer, tool count, format, reward model and unfinished penalty, clipped to [-3, 3]; rollout engine split torch/sglang) and white-box distillation; open data for every stage, exports to transformers, llama.cpp, vLLM, Ollama. The "2 hours" is mini pretrain + mini SFT on one 3090 (2.31 h, about RMB 3). Agent RL lifts a 20-task tool-math check from 12/20 to 17/20; lm-eval scores are near chance, and the README prints stderr per benchmark. Best lessons: reward sparsity and degenerate GRPO groups at small scale (watch reward variance), judge rewards drift from environment rewards, RL costs general ability, exam-format LoRA adds about 2.9 points. Caveats: data heavily distilled from Qwen3/R1, Chinese-first, tools are mocks, transformers still used for tokenizer/base class/reward model, single-author repo with breaking reorganisations.
Credits come from each entry's byline. How reputation is scored.