Han's Generative AI Quest

LLM Architecture Refresh [9]: Teaching a Small Model to Call Tools

A language model can't run a calculator or open a calendar. It writes text, and a program reads it. In this post I look at what a tool call is, how a program checks one without a person, how well small Qwen2.5 models call tools before any training, and what supervised fine-tuning on ToolACE's demonstrations changes, on a base model that can't call yet and on an instruct model that can, measured against a control trained on random calls so the format can be told apart from the skill.

LLM Architecture Refresh [8]: Learning from Rewards

What happens when we train a language model using rewards instead of correct answers? In this post, I implement Group Relative Policy Optimization (GRPO) from scratch using Qwen2.5-0.5B-Instruct and LoRA. The model generates multiple solutions to multiplication problems, receives rewards from a programmatic verifier, and learns by comparing its attempts. I train it from three random seeds, and three more times with each group's rewards shuffled, to separate what the reward taught from what the training loop does on its own, and look at how RLHF runs the same loop with a learned judge in place of a program.

Agentic Workflows [1]: Honeyguide: who maintains the understanding when agents write the code?

Coding agents make code easier to write and change, but what an agent works out about a repository usually stays in one private conversation. Honeyguide keeps that understanding as a checkable map meant to be shared: every claim cites its source lines, a separate Checker reads those lines against the claim, and a refresh keeps the map current as the code changes. On the repo I tested, the map didn't measurably help an agent answer more accurately. This post shows how the checking and the upkeep work and what they cost. The shared team workflow isn't built yet, and whether it saves engineering time is open.