LLM Evaluation 107: Model Evals — How to Choose the Right Brain for Your AI App
From the publisher’s feed, collected in the ZeroLabs newsroom.
Part 7 of the LLM Evaluation series, picking up right where “LLM Evaluation 106” left off.Every AI app has an LLM at its core. Model evals help you pick the right one (Image by the author)TL;DRUp to now, this series has been about evaluating LLM applications. Today we switch to model evals: evals that test the LLM itself. As an AI engineer, you need them for four reasons: to compare models, to check if a new model is really better, to check safety, and to decide between a paid API and a self-hosted open-source model. Every model eval follows four steps: pick a capability → bring a test → run it under a fixed protocol → score and interpret. The “test” comes in two types: benchmarks (standard tests everyone uses) and custom eval sets (built from your own data). A simple email-routing case study shows why benchmarks alone can lead you to the wrong, expensive choice. We end with the 8 core capabilities that almost every benchmark measures.A quick recap firstHere’s what we’ve covered in this series so far:Why we need evals: LLM Evaluation 101What evals are: In LLM Evaluation 102, we learned there are two types. Model evals test the LLM itself. Application evals test the apps built on top of LLMs. Most of this series focuses on application evals, because that’s where you learn to evaluate RAG systems, agents, and so on.How an eval pipeline works: LLM Evaluation 103Why one app needs multiple eval pipelines: LLM Evaluation 104The three eval methods: programmatic, human, and LLM-as-a-Judge, in LLM Evaluation 105Offline vs. online evals: how to keep evaluating your app even after it’s deployed, in LLM Evaluation 106So we now have an overview of the whole course. From here on, we go into the specifics and cover each piece in more detail.Today’s goal: model evals, the evals you use to directly test what an LLM can do. This topic is too big for one post, so we’ll split it into two:This post: what model evals are, why you need them, and the core capabilities of an LLM, which sets us up for LLM benchmarking.Next post: how to run custom model evals on a given LLM with your own data.Part 1: Why do AI engineers need model evals?We’re not asking “Why do model evals exist?” We already know that answer: model evals exist so we can measure what our LLMs are capable of. And why measure? Because of the famous line:If you can’t measure it, you can’t improve it.For frontier labs (the companies that build LLMs), model evals are obviously needed. That’s how they learn what to improve, where things went wrong, and how to shape their training.But this series is written from the point of view of an AI engineer: someone whose day job is building LLM-based apps. So the better question is:If I’m an AI engineer, why do I need model evals?Think back over this whole series. We talked about how to evaluate the retriever of a RAG app, how to evaluate the generator, how to evaluate the whole pipeline and the whole application. But not once did we talk about how to evaluate, or even choose, the LLM that runs the app. The LLM is the brain of your app. How did you pick it?Here are the four reasons model evals matter to an AI engineer.Reason 1: Comparing models and picking oneSay you’re building a RAG app for your company today. The first question is obvious: which LLM will you use? OpenAI’s model or Claude?In a professional setting, you can’t say “Eh, use whichever. Both are good.” In a team meeting, you need concrete reasons why you’re picking one over the other.That’s where model evals come in. With them, you can say: “These are the capabilities our app needs. On those capabilities, this model scores higher. That’s why we should pick it over the competitor.”Reason 2: Checking whether new models are really betterSay your RAG app is live, running on Claude Opus 4.8, and everything works fine. Then a newer Claude model comes out (Claude Fable). Your manager asks: “Do some research. Should we switch to Fable, or stay on Opus?”How would you know, as a fact, that the new model is better? Again, the answer is model evals. They give you the numbers to justify whether a new model actually beats the old one.Reason 3: Checking safetyModel evals are also how you show that the model you’ve deployed (or are about to deploy) is safe. They tell you:How much your LLM hallucinatesHow safe it is to useWhether it can be jailbrokenReason 4: Paid API vs. self-hosted open-source modelThis one is a big decision. Should you use an existing API (a proprietary LLM like Claude), or should you host your own open-source LLM (like DeepSeek)?Both have pros and cons:Claude might cost more, but it might also be more powerful across many capabilities.DeepSeek might be cheaper, but it might not match Claude on everything.So do you just call an API? Or do you pull an open-source model from Hugging Face, put it on your company’s own servers, write your own APIs around it, and build the app on top? This comparison is, again, made possible by model evals.In a nutshell: without model evals, you’re blind. If you want to know how good a model is, or compare two models, model evals are the only option you have. That’s why this topic matters so much for AI engineers.Part 2: What exactly is a model eval?So far we’ve only said that a model eval is “a way to evaluate your LLM.” Here’s the more formal definition:A model eval is a systematic process of measuring an underlying model’s capabilities, behavior, reliability, and operational characteristics under controlled conditions.It’s the same idea, just expanded. A model eval is a process that lets you test any LLM: its capabilities and its behavior.The four steps of every model evalOn a technical level, every model eval, of any type, follows four steps.Every model eval follows the same four steps. The “test” in step 2 is either a benchmark or your own custom eval set (Image by the author)Step 1: Decide which capability you want to test.LLMs are general-purpose models. They can do lots of different tasks and have many different capabilities. So there is no single model eval that tests everything.It’s not like humans, where one IQ number tells you quite a lot about a person. Unfortunately, LLMs don’t work like that. Each capability needs its own model eval.So first, you decide: do you want to test its reasoning? Its coding? How safe it is? Its instruction following?Step 2: Bring a test.Next, you bring a test (or some mechanism) that measures that capability. More on this in a moment, because this step is important.Step 3: Run the model on the test under a fixed protocol.The model basically takes the exam. While it does, you fix certain things: which prompts you’ll use, what the conditions will be, and so on. This makes the test repeatable. And if you’re testing multiple models, every model must get the same conditions.Step 4: Score and interpret.Once the test is done, you score it, and then you either publish the score or interpret it.So, in four steps: pick the capability → bring a test for it → run that test in a controlled environment → publish or interpret the score.Two types of tests: benchmarks vs. custom eval setsBack to step 2, where we “bring a test.” In model evals, the test comes in two types.Type 1: Benchmarks. You’ve probably heard this word. There are lots of famous benchmarks.Benchmarks are standardized, shared tests, like MMLU or SWE-bench. Because everyone runs the same test, they’re great for comparing models on common ground.A benchmark is like a standardized exam. It’s the same for every model, so you can openly compare two models’ numbers. Everyone recognizes it, and everyone uses it. Each benchmark targets specific capabilities, like math, reasoning, or instruction following.Type 2: Custom eval sets. Sometimes, instead of testing an LLM on a benchmark, you build your own evaluation set.A custom eval set is data you assemble from your actual task. It measures what you specifically care about, rather than what’s generically useful.You do this because you want to know how a given LLM will perform on your own application.“If benchmarks already tell me everything, why build my own eval?”Fair question. If benchmarks already tell you how good a model is at math, reasoning, and coding, why bother running your own custom eval? Let’s answer it with a small scenario.Part 3: The email-routing case study (cost vs. latency vs. accuracy)Let’s take a simple example. Say you’re building a system for DoorDash, the food delivery company. It reads the content of incoming customer emails and decides which team each email should be routed to. Let’s keep it simple with three categories:BillingTechnicalRefundYou need to pick a model for this app, and you have two choices:| Model | What it is | Price per 1M tokens | Public benchmarks ||---------|------------------------------------|---------------------|---------------------|| Model A | Big LLM (think: a Claude Opus-type) | ~$15 | Top of the table || Model B | Small LLM (think: MiniMax, or a | ~$0.50 | Middle of the table || | small Qwen model) | | |Common sense says: “Why overthink it? Deploy Model A. It’ll obviously give good results.”And if you only look at benchmarks, that’s exactly what you’d conclude. Model A beats Model B on every benchmark: math, coding, language generation, everything.But here’s the catch: if you run Model A at DoorDash’s scale, your bill can get very big.Run a custom eval insteadSo you do something simple. You build your own dataset:Pick 200–500 past emails.Label each one: technical, billing, or refund (and how urgent it is).That’s your golden dataset. Give it to both models and compare the results.Here are the results:Model A wins every public benchmark, but on this specific task, Model B gives almost the same accuracy for a tiny fraction of the cost and latency (Image by the author)What do these mean?Classification accuracy: how often the model picks the right category. Model A gets 94%. Model B is lower, but surprisingly not by much: 91%. That’s because this task isn’t very hard.Urgency accuracy: reading an email and judging how urgently the user needs a reply. Model A gets 88%, Model B gets 87%. Again, barely any difference.Cost: processing 1,000 emails costs $6 with Model A and less than $0.21 with Model B.Latency: Model A is a big model, so it takes 4.1 seconds per request. Model B takes just 0.9 seconds.So which model would you pick?The answer is simple: Model B. Yes, Model A is more powerful overall. But for our task, Model B is a much better value. We’re losing very little accuracy and saving a lot of money and latency.Now think about this: if we had relied only on benchmarks, would we ever have reached this conclusion? No. Model A beats Model B on every benchmark. We only found out Model B is better for our job because we ran a custom eval on our own data.The takeawayA model eval is the process of testing a model’s capabilities, and you can do it in two ways:Run standardized benchmarks, which tell you the model’s general capabilities.Run custom evals on your own app and your own data, which tell you which model is best suited for your kind of work.The rest of this post sets up the first one: LLM benchmarking. What benchmarks are, how they work, how they’re evaluated, which ones are famous, and how to read them. Custom model evals get their own post next.Part 4: The 8 core capabilities of an LLMBefore we dive into benchmarks, we need to know what they’re testing. What capabilities does an LLM have?The biggest strength of LLMs is that they’re general-purpose. You can use them for text generation, sentiment analysis, summarization, parts-of-speech tagging, and much more. They have many capabilities, and benchmarks are what test them.In total, there are eight core capabilities that the field broadly agrees on. Most benchmarks you’ll ever see fall into one of these eight categories.The eight core capabilities frontier labs measure. Almost every benchmark targets one of them (Image by the author)For each capability, we’ll look at three things: what it measures, why frontier labs care, and where it matters in the real world.1. Knowledge and reasoningThese two are grouped together because they very often work together.What it measures: two things.How much factual knowledge the LLM learned during training.Whether it can connect that knowledge: can it connect the dots?More specifically:Factual recall across subjects: biology, physics, chemistry, history, and so on. In fact, there’s a benchmark called MMLU that tests models across 57 subjects. The idea is to cover every field of knowledge and check whether the LLM can answer the basic and important questions in each one.Multi-step logical reasoning: can the model connect multiple facts, in the right order, to reach a conclusion?Here’s a simple example. Ask the model:“Summarize the whole of evolution, from the Big Bang until today, and use it to explain why today’s society is the way it is.”You’re testing multiple things at once. First, its knowledge: does it really know what happened from the Big Bang until now, and in what order? Then its reasoning: can it connect all of that and explain how it shaped today’s society? This one task tests both knowledge and reasoning.Why frontier labs care: if a model scores well on knowledge and reasoning, it simply means the model is intelligent. This is how people judge how smart a model is, so every model wants to score well on these benchmarks.Real-world use:A research chatbot that analyzes research papers and helps conduct new research.Analyzing complex customer questions.Working with technically accurate documents, like uploading a machine learning paper and asking questions about it.A chatbot that helps professionals in their field: helping a lawyer with law, or a teacher with teaching a subject.2. Coding and software engineeringEconomically, this might be the most important capability. This is where model providers and frontier labs can make a lot of money.Look at how valuable AI coding tools like Cursor have become. That’s all because of this capability. LLMs can write code and do software engineering tasks, and software development is a huge field today. A model that does well here creates a lot of value for a lot of enterprises.What it measures: the basic question is, can the model write code that actually works? Beyond that, can it do real software engineering tasks, like editing large codebases? More specifically:Function-level code generation: you give an English sentence, like “Write me a Python function that does X.” Can it write that function? Can it write test cases for it? When tests fail, can it improve the code based on the errors?Bug fixing inside an existing codebase.Multi-file, long-horizon engineering tasks: you’re given a whole codebase and asked to refactor all of it around one aspect. Can the model do it? (This is what benchmarks like SWE-bench test.)Running multiple commands in the command line: for example, “Install these packages, configure the servers, and set up this environment.”API and function calling.Real-world use: whenever you build an AI coding agent (and there are lots of them now), this is the capability you rely on.The key idea in coding evals is that you don’t judge code by how it looks. You run it against tests.(Never run model-generated code directly on your own machine in a real setup. Use a sandbox or container.)3. MathematicsWhat it measures: whether the model can do accurate symbolic and numerical reasoning.You can think of math as a form of reasoning: you go step by step until you reach a solution. But math has so many real-world applications that it gets its own category. Here’s what gets tested, from easy to hard:Grade-school math: can it solve 7th or 8th grade math problems?Competition-level problem solving: the kind of problems asked in Olympiads, where you need some creative thinking.Undergraduate-level math problems.Research-level mathematical reasoning: problems that are still open-ended, where solutions don’t exist yet. Can the model get anywhere?Why it matters: if you build apps in fields like scientific computing, financial modeling, engineering simulations, or data analysis, this is the capability that does the work. That’s why so many benchmarks are built around math.4. Long contextYou probably know what context means: how much information the model can look at while answering one question. It’s limited. Today’s models advertise context windows of up to 1 million tokens. But the big question is: can the model actually use all of it?What it measures: whether a model can effectively use information from very long inputs, sometimes hundreds of thousands of tokens. Specifically:Can it extract one small fact from a very long context?Can it fetch the details of one person or entity from a huge document?Can it summarize a very long context?If it’s working as a coding agent, can it keep the full context of a large codebase?A big context window is a promise. Long-context evals check whether the model keeps it (Image by the author)Why it matters: models say their context window is 128K, 200K, or 1M tokens. But in practice, as your chat gets longer, you’ll notice the model’s ability to hold on to context drops, and the chat’s quality gets worse over time. Testing this capability tells you which model actually works well on large contexts.And this applies everywhere. Whatever kind of LLM app you build, long context is an important thing to measure. It tells you how much context your model can really handle.The classic way to test this is a “needle in a haystack” test: hide one fact at different depths of a long document and see if the model finds it.5. Vision and multimodalHere you go beyond text into the world of vision.What it measures: can the model understand images? Can it understand videos?Why it matters: we live in a multimodal world, and text alone isn’t enough. Today, people open their camera and ask, “Here’s everything in my fridge. What can I make with it?” Or they’re in a library, asking for a particular book. Since we live in a multimodal world, there need to be benchmarks for multimodal capabilities too.6. Agentic and tool useThis capability is becoming more important every day. The whole field of agentic AI came from one idea: you don’t just want LLMs that print text. You want LLMs that can do things. And to do things, you attach tools to them.What it measures: how effectively a model uses tools:Can it browse the web on its own?Can it do structured tool calling?Can it interact with APIs?Can it use desktops and computers?Why it matters: you’re already seeing lots of agentic applications, and there will be many more. To build them, you need a reliable model that can actually carry out agentic tasks. These benchmarks tell you whether it can.A basic tool-calling check: give the model a tool, ask a question, and verify that it called the right tool with the right arguments.7. Safety and alignmentVery straightforward. What it measures: can the model be trusted to behave responsibly? You check many things:Is it generating harmful content?Is it easy to attack with adversarial attacks (like jailbreaks)?Is it truthful, or is it sycophantic (a flatterer)?You’ve probably seen this: you share an idea with a chatbot, and it immediately starts praising you. “Yes! This is the best idea in the world!” That shouldn’t happen. Ideally, a model should be truthful. If your idea has flaws, a good model should tell you so instead of hyping you up.Recently, there’s also a new area: models and benchmarks that check whether an LLM has cybersecurity skills. Can the model do cryptography? Reverse engineering? Digital forensics? Recent frontier models (Claude Fable is one example) have become very strong at cybersecurity, finding many vulnerabilities in existing software. How do you test whether a model has these skills? There are now separate benchmarks for that too.Why frontier labs care: governments pressure them to make sure their models are safe. On top of that, it’s a huge reputation concern. Even one minor incident could seriously hurt their business. So measuring this capability is very important for frontier labs.A tiny sycophancy check: give the model a clearly flawed idea and see whether it pushes back or just praises it.8. Instruction followingThis one is a bit underrated, but it’s very important.What it measures: when the user tells the model to do something in a specific way, does the model do exactly that?If I say “Answer in a bulleted list,” does it?If I say “Answer in under 200 words,” does it?If I say “Give a friendly answer,” does it?And if the user gives ambiguous instructions, does the model ask clarifying questions back?Why it matters: this translates directly into user feedback. If the model doesn’t listen, the user gets unhappy, leaves the product, and goes to another company.Many instruction-following checks can be done with simple code, no LLM judge needed.(Things like “friendly tone” are harder to check with code. For those, you’d use an LLM-as-a-Judge, from Part 5.)The 8 capabilities at a glance| # | Capability | What it measures | Where it matters ||----|-----------------------------|---------------------------------------------------------|-------------------------------------------|| 1 | Knowledge & reasoning | Facts learned in training + connecting them in order | Research bots, expert assistants || 2 | Coding & software eng. | Working code, bug fixes, refactors, CLI, function calls | AI coding agents || 3 | Mathematics | Grade-school to research-level math | Science, finance, engineering, data || 4 | Long context | Really using 100K+ tokens of input | Almost every LLM app || 5 | Vision & multimodal | Understanding images and video | Camera/photo-based assistants || 6 | Agentic & tool use | Browsing, tool calls, APIs, using computers | Agentic applications || 7 | Safety & alignment | Harmless, truthful, jailbreak-resistant, cyber skills | Everything (and frontier lab reputation) || 8 | Instruction following | Doing exactly what was asked, asking when unclear | User satisfaction and retention |These are the eight capabilities every frontier lab focuses on. Every benchmark you read about in the future targets at least one of them.Putting it all together| Topic | Key idea ||-------------------------------|-----------------------------------------------------------------------|| Model evals | Evals that test the LLM itself, not the app built on it || Why AI engineers need them | Compare models, check new releases, check safety, API vs. self-host || Formal definition | Systematic measurement of capabilities, behavior, reliability, and || | operational characteristics under controlled conditions || The 4 steps | Pick capability → bring a test → run under fixed protocol → score || Benchmarks | Standardized, shared tests (MMLU, SWE-bench). Compare on common ground || Custom eval sets | Built from your own task data. Measure what YOU care about || Email-router lesson | Benchmarks picked Model A. Your data picked Model B: ~same accuracy, || | ~29× cheaper, ~4.5× faster || 8 core capabilities | Knowledge & reasoning, coding, math, long context, vision, || | agentic & tool use, safety & alignment, instruction following |Without model evals, you’re blind. They’re the only way to compare models with real evidence.There’s no single “IQ score” for LLMs. Each capability needs its own eval.Fix the protocol. Same prompts and settings for every model, or the comparison means nothing.Benchmarks tell you what’s generally good. Custom evals tell you what’s good for you. You usually need both.The “best” model isn’t always the right one. Cost and latency count as much as accuracy.Quick self-check before you move onAsk yourself about your own AI project:Can you explain, with numbers, why you picked the LLM your app runs on?When a new model comes out, do you have a way to test it before switching?Have you checked how your model does on the capabilities your app actually uses (long context? tool calling? instruction following?)?Have you compared cost and latency, not just accuracy?Have you ever tested a smaller, cheaper model on your own data? It might be good enough.If the honest answer to any of these is “no” or “not sure,” that’s the gap this post is pointing at.Next up in this series: LLM benchmarking in depth (what the famous benchmarks are, how they’re evaluated, and how to read them), followed by how to run custom model evals on any LLM with your own data.If you missed the earlier parts of this series:LLM Evaluation 101: Why You Can’t Test an LLM the Way You Test Your CodeLLM Evaluation 102: Model Evals vs. Application Evals — Are You Evaluating the Right Thing?LLM Evaluation 103: How to Actually Evaluate an LLM Application from Start to FinishLLM Evaluation 104: Why Your AI Application Needs Multiple Eval PipelinesLLM Evaluation 105: Who Actually Grades Your LLM? Programmatic, Human, and LLM-as-a-Judge Eval MethodsLLM Evaluation 106: Offline vs. Online Evals — How to Keep Evaluating Your AI App After It Goes LiveLLM Evaluation 107: Model Evals — How to Choose the Right Brain for Your AI App was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.