A young black dragon with gold lit scales curled around a glowing golden egg in a dark cavern, embers drifting over molten rock below

A FIELD GUIDE

How to Train Your Dragon

Raising your own small language model, from first egg to first flight.

BY MARK A EVANS

GET THE BOOK ON GUMROAD

Pay what you want, starting at $1. Ten chapters. Yours forever.

THE PITCH

Everyone is renting dragons.
This book is about raising your own.

The biggest models on Earth live behind someone else's API. You pay by the token, you follow their rules, and the dragon never learns your name. For a great many jobs, that is power you do not need, rented at a price you do not control.

A small model, raised on your own data and aimed at one job, is a different animal entirely. It runs on hardware you own. It answers in milliseconds. It never phones home.

This is not a textbook and it is not theory. It is the field guide Mark A Evans wrote after actually doing it, twice: Cast, a 3.3 million parameter model that turns plain English into database queries, and Imagine, a 1.6 billion parameter model built with a full fine tune, which scored a perfect 40 out of 40 on held out tests and shipped to production.

Real story. Real numbers. Every failure left in. No PhD required.

PROOF, NOT PROMISES

Two dragons, already raised

The book follows two real models from egg to production. Everything in it was learned by training these two.

Cast

The first dragon. Small, fast, precise.

A tiny model trained from scratch to translate natural language into database queries. Proof that a model does not need billions of parameters to do one job brilliantly.

3.3M parameters, total
English in, database queries out

Imagine

The second dragon. The one that shipped.

A specialized machine learning model built with a full fine tune on everything Cast taught. It passed every held out test it was given, 40 out of 40, and went on to run in production, answering real questions against real data.

1.6B parameters, full fine tune
40/40 on held out tests
Live shipped to production

If a model with 3.3 million parameters can do this, imagine what yours can do.

INSIDE THE BOOK

Ten chapters, egg to open sky

Each chapter pairs the story of what actually happened with the practical craft of doing it yourself.

  1. 1

    Why Small Dragons

    The case for raising your own model instead of renting a giant one, and the jobs small dragons win.

  2. 2

    Choosing Your Dragon

    Picking the right size, shape, and temperament of model for the one job you need done.

  3. 3

    Feeding Time: Data

    What a young model eats, how to gather and clean its food, and why data decides everything.

  4. 4

    Building the Nest

    The training setup: hardware, code, and the environment your dragon grows up in.

  5. 5

    The Long Night

    The training run itself. Loss curves, dead runs, 2 AM decisions, and knowing when to let it cook.

  6. 6

    First Flight: Validation

    Held out tests, honest scoring, and the moment a model proves it can fly on its own.

  7. 7

    When to Say No

    Teaching a model to refuse what it does not know instead of making something up.

  8. 8

    The Stable: Deployment

    Giving your dragon a home in production: serving it, watching it, and keeping it healthy.

  9. 9

    Releasing Your Dragon

    Publishing your model to the world, weights and all, and standing behind your work.

  10. 10

    What Next

    Where a dragon keeper goes from here: bigger jobs, stranger models, and the road ahead.

ME

MARK A EVANS

INTERCHAINED

ABOUT THE AUTHOR

The keeper

Mark A Evans builds machine learning systems end to end: the models, the networks they run on, and the tools that keep them alive. He trained Cast and Imagine from scratch, then built the infrastructure to run models like them for anyone, anywhere.

Through Interchained, he develops the technology in this book and the systems around it, and writes up what he learns so the next keeper starts further along than he did.

PIN

A peer to peer inference network, so models can be served and reached without a central landlord.

Hearth

A model residency protocol that keeps declared models warm and reports honest states instead of silent timeouts.

Cast and Imagine

The two small models at the heart of this book, trained from scratch and shipped to production.

BEGIN

Your dragon is waiting to hatch

Ten chapters. Two real dragons. Every number on the table. Name your price and start raising your own.

GET THE BOOK ON GUMROAD

Pay what you want, starting at $1

10 chapters Real training numbers The full Cast and Imagine story No PhD required