back to home

writes

Post-Training an Agentic LLM: 18% → 42% on Unseen Tasks, and Why the Ruler Kept Being the Bug

#post-training#agents#sft#dpo#grpo#evals#qwen

Can a self-hosted open model run a long-prompt, many-tool agent loop as reliably as a frontier API model? QLoRA SFT took Qwen3-32B from 18% to 42% on unseen tool-use tasks. DPO failed three times, GRPO didn't transfer, pass@k explained why, and a stock 27B tied a frontier reference model with no training at all.

Fine-Tuning Small Models to Take Notes: Hard Errors 28% → 11%

#post-training#lora#distillation#evals#qwen#fp8#vllm

A 230M LFM in June, then about 20 LoRA fine-tunes to an FP8 Qwen3.5-4B in November. The graders that lied, the dev loss that lied, a blind 7-arm bake-off, a pre-registered eval, and why two days of code beat three rounds of training data.

Fine-Tuning an NLI Encoder as a 90-Row Classifier: 40/41, and Why I Didn't Trust It

#post-training#nlp#classification#evals#roberta#embeddings

Reusing RoBERTa-large-MNLI's entailment head turned 90 labelled examples into a 40/41 classifier in 77 seconds on a laptop. Then a blind relabel overturned 9 of the 41 gold labels, and a padding experiment showed my embedding-probe classifier was reading length, not intent.

Post-Training a Slide-Design Model: SFT, DPO, a Verifier, and a Prompt Bug

#post-training#sft#dpo#tinker#evals#best-of-n#qwen

One week fine-tuning Qwen3.6-35B-A3B on Tinker to lay out slides as editable HTML. SFT and a float DPO run improved single samples, best-of-N with a cheap deterministic verifier removed the remaining held-out failures, a taste judge showed what selection can't fix, and the defect I spent two days training against was in the prompt contract.

Breaking the NN Ceiling — LightGBM, FT-Transformer, and Why Ensembles Work

#machine-learning#lightgbm#transformer#ensemble#onnx

The neural net was stuck at 264s. Diagnostics said rare pairs were the problem. The fix wasn't a better NN — it was two completely different models and an ensemble that cut MAE to 253s.

From 351s to 253s — Feature Engineering, Neural Nets, and Why Statistics Beat XGBoost

#machine-learning#feature-engineering#pytorch#deep-learning

Zone-pair median — a dictionary lookup — beats XGBoost with zero ML. Here's how I built 26 features, iterated through 4 neural net versions, and hit a ceiling that no architecture change could break.

From 0.300 to 0.537 — 15 Experiments Training an LLM Stock Trader with SFT and GRPO

#reinforcement-learning#llm#sft#grpo#deepseek#fine-tuning

15 models. 4 disasters. A complete experiment log of training a 7B LLM to trade stocks using supervised fine-tuning and Group Relative Policy Optimization — what worked, what broke, and why.

Building an RL Environment That Actually Works — Rewards, World Models, and Why Environments Are Harder Than Training

#reinforcement-learning#llm#pytorch#openenv#world-model

Every shortcut I left in the environment, the agent found and exploited. Here's how I designed observations, rewards, grading, and a neural world model for training LLM trading agents on real Indian equity data.