The Open Model EcosystemLesson 29 of 71

Module 3 · Inside the files

Formats, and what conversion costs you

In this lesson

  • 8 min read
  • 5 reading sections
  • Knowledge check
  • Lesson 9 of 10 in this chapter

This chapter’s goalOpen a model repository you have never seen and predict, from config.json and the tokenizer alone, its parameter count, its memory footprint at a given context length, its per-token cost in your languages and the exact conversation format it requires; then verify each prediction with a command and diagnose a runaway or garbled generation from the files rather than by guessing.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 6Free · no account needed
Lesson steps

Five formats you will meet

safetensors is the canonical distribution format: a JSON header of tensor names, shapes and byte offsets, then the raw data. No code, memory-mappable, sharded across files for large models. This is what a repository publishes and what transformers, vLLM and most training code load.

GGUF is llama.cpp’s single-file format. It holds the weights, the quantisation scheme, the tokenizer and the chat template in one file, which is why an Ollama or llama.cpp model is a single download with no dependencies. It is the format of local inference on CPUs and consumer hardware.

MLX is Apple’s array framework format, for Apple Silicon. It uses unified memory well and is usually the fastest option on a Mac.

ONNX is a portable computation graph, used to run models in environments without PyTorch: browsers via WebAssembly, mobile runtimes, and various embedded stacks.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the Maths You Actually Need exam.

Stuck on something?Ask Anjali, your AI tutor

How to cite: Addaly (2026) ‘Formats, and what conversion costs you’, in The Open Model Ecosystem. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/open-models/weight-formats-and-conversion (Accessed: 29 November 2026).