# Teapot

Tiniest LLM

By Evan Tanner

Aug 2026

## Skills

- [Integrations](https://evan.cyou/skill/integrations)
- [Linux](https://evan.cyou/skill/linux)

Teapot was one of the projects that I used to explore how language models function. The project was inspired by the HTTP 418 "I'm a teapot" error message; therefore, I built a very basic in-house model with only 128,000 parameters. The data used to train the model was a single paragraph which contained a teapot-related riddle and some additional questions based on the lines of the riddle itself. I purposely limited the scope of the project: Teapot does not have any general knowledge nor can it respond to anything outside of its training data. This limitation was crucial to the project as it allowed me to develop a small and simple model to work with.

> I'm a teapot, short and stout, asked for something I won't pour out. A message arrives with a purpose in doubt, but one little number will give me away outright. I simmer, I signal, I stubbornly stay, refusing the task in a peculiar way. Not broken, not lost, just tied in a knot, what am I, brewing inside the pot?

I created a custom language model using Python and MLX, and then built the infrastructure necessary to make that model accessible. Even though Teapot is small, it has many of the same functions as larger model serving systems (e.g., batching, a KV cache, streaming response delivery, and an OpenAI-compatible chat interface). By building these components around a very small model, I was able to examine both how models receive requests from applications and how models produce responses that can be returned to those applications; as well as the training and inference processes of the model itself.

I am looking for the simplest demonstration possible of how I use a language model and how the ecosystem supporting it works. What makes Teapot so valuable to me is the fact that its infrastructure is accessible enough for me to create and use as a learning tool. Using only one riddle allowed me to keep the training data small enough to manage, but gave me hands on experience with MLX, the behavior of the model, and the deployment options available to provide access to the model through a chat interface.

[All projects](https://evan.cyou/projects)

---

Evan Tanner

[Terms of Service](https://evan.cyou/terms) [Privacy Policy](https://evan.cyou/privacy)

Source: https://evan.cyou/projects/teapot
