Ian O’Byrne
Overstory Writing

What’s Actually Inside an AI Model? (It’s Not What You Think)

Why understanding the structure of an AI model matters.

Posted
Aug 29, 2025
Last revised
Aug 29, 2025
Author
Ian O’Byrne
Read
4 min
Topics
ai · privacy · generative-ai

When you work on your computer, you should be able to understand what files are.

As an example, a Word document (.docx) sits on your drive. You can open it, edit it, share it, and check its metadata. You can download Microsoft Word itself, see version histories, and even unpack the contents to understand what’s happening under the hood.

But lately, as I’ve been downloading and running my own AI models from Hugging Face, I started wondering: what am I actually downloading? When I click “download model” and watch 14GB flow to my computer, what’s in that digital box?

This question became more pressing during a recent professional development week, where I had teachers download and explore AI models locally. Their reactions ranged from confusion to amazement as they dug into the files. “Wait,” one teacher asked, staring at her screen, “the entire AI is just… these files?”

The answer is both simpler and more fascinating than you might expect.

Why Download AI Models Locally Anyway?

Before we crack open the box, let’s talk about why you’d want to run AI models on your own computer instead of just using ChatGPT or Claude online:

Privacy First: No data leaves your computer. Everything stays local.

You ‘re in Control: You decide which model version to use, when to update, and how much computing power to dedicate.

Perfect for Sensitive Settings: Classrooms, research environments, or anywhere you need guaranteed data privacy.

Experimentation Freedom: Want to try that weird experimental model? Go for it. No corporate guardrails.

The Three Pieces of AI

When you download an AI model, you’re getting three essential components. Think of them as the holy trinity of artificial intelligence:

1. The Brain: Model Weights

Imagine an AI as a giant brain made of billions of tiny knobs. Like the world’s most complex audio mixing board. Each knob is a “parameter,” and when the AI was trained, it slowly twisted and adjusted every single knob to learn patterns in text, images, or whatever data it studied.

These knobs are the model weights , billions of tiny numbers that encode everything the AI “knows.” When you see “7B parameters,” that means 7 billion knobs, each storing a decimal number that influences how the AI thinks.

Here’s the mind-bending part: these weights are just math. Pure numbers. There’s no code, no algorithms. Just billions of carefully tuned values that somehow add up to intelligence. A 7-billion parameter model? That’s roughly 14 gigabytes of nothing but decimal numbers.

2. The Blueprint: Config File

Every AI needs architectural plans. A blueprint that tells software how to interpret all those weights. This is the config file , usually a small JSON document that describes:

  • How many layers does the neural network have
  • How information flows between components
  • The model’s dimensions and structure
  • Special settings that affect behavior

Think of it like architectural plans for a building. The weights are the bricks and materials, but the config file tells you how to stack them into something that works.

3. The Translator: Tokenizer Files

Here’s something that surprised my teachers most: AI doesn’t understand words the way we do. Instead, it breaks everything into smaller chunks called “tokens.”

The tokenizer is like a specialized text-cutting machine. When you type “I love ice-cream!” it might chop it into pieces like:

  • “I”
  • ” love” (note the space)
  • ” ice”
  • “-cream”
  • ”!”

Each piece gets converted to a number, because remember, AI only understands math. The tokenizer files contain all the rules and vocabulary mappings that make this translation possible.

This seemingly simple process has huge implications. How text gets tokenized affects how the AI interprets your input and generates responses.

Putting the Pieces Together

Let’s use our analogies one more time:

ComponentThink of It AsWhat It Does
WeightsVolume knobs on a mixing boardDecide which patterns and clues matter most
ConfigArchitectural blueprintShows how the AI is built and structured
TokenizerText-cutting machineConverts your words into numbers the AI can process

When you download a model, you’re getting these three essential tools working together. The tokenizer prepares your input, the config tells the software how to process it through the weights, and the weights themselves transform that input into intelligent output.

The Real Magic

What amazed the teachers in my workshop, and what still amazes me, is how simple this actually is. There’s no mystical artificial consciousness hiding in complex code. No secret algorithms that tech companies won’t share.

It’s math. Lots and lots of carefully organized math.

The real magic is that billions of simple mathematical operations, when properly arranged, can read your question, understand context, reason through problems, and generate coherent responses. The “intelligence” emerges from the interaction of all those tiny numbered knobs working together.

What’s Next?

Understanding these components changes how you think about AI. You start asking better questions: How big should my model be for my use case? Why does this AI behave differently from that one? What happens when I adjust these settings?

In our next post, we’ll crack open an actual model and explore these files hands-on. You’ll see exactly what AI “intelligence” looks like when you dig into the folder structure. We’ll examine real weights, decode actual config files, and watch a tokenizer slice up text in surprising ways.

Fair warning: you’ll never think about AI the same way again.