AI Engineering

How it works, how to do it, and what the catch is

3 pieces for people who build with AI models. Each is written from the primary material: the README, the specification, the paper.

Research explained · 5 min read

MoLT: a looped Transformer that generates each token in one pass

Looped Transformers run the same layers several times to get more depth from fewer weights, and pay for it at generation time. A paper from Huazhong University of Science & Technology, ByteDance Seed and the University of Toronto changes what one loop hands to the next. With that change a new token goes through the stack once, and in the authors' small-model test the looped model is as fast as a plain one. The code for the small models is public. The large training recipes are not.

Technique · 4 min read

Put the agent's map of your database in the database

In a talk at AI Engineer, George Fraser of Fivetran argues that an agent answering questions about a business should read the modelled data warehouse and not the source systems, and that the description of that warehouse belongs in a table inside it. The idea fits in one table and one sentence of system prompt. We tried the smallest version.

Tool in depth · 3 min read

Datasette Agent hides a tool from the model when the user may not use it

Simon Willison's chat agent for Datasette is still in alpha. Its README documents how to put an LLM inside an app that already has users, permissions and a write path, and four of its decisions carry over to any agent you build into your own software.