AgentCrafts

How to choose an open source model for your workflow

Hugging Face has thousands of models. A practical way to narrow the list by licence, size, quality on your own data and running cost.


Every few months a new open source model is released, it tops a benchmark, and a lot of work gets done deciding which one to use. Most of that work is wasted, because the benchmark is measuring the wrong thing for your system.

Here is how I narrow the list instead.

Start with the licence, not the leaderboard

This is the step that gets skipped, and it is the one that can end the project.

Permissive licences such as Apache 2.0 and MIT let you do what you want, including commercial use. The Llama family has its own community licence, with conditions that kick in above a certain number of users, so it may be fine for your internal tool and a problem for something you sell. Some research licences forbid commercial use outright, which rules the model out of a business system no matter how good it is.

Read the licence for the specific model you are considering. Not the family, the model. They change.

The Hugging Face model hub lists the licence on every model card, and the card is the right place to look rather than a blog post about it.

Then narrow by what you have to run it on

This is the practical constraint that rules out most of the list.

A model that needs a rack of GPUs is not an option for most small teams, regardless of its quality. Before you fall for a benchmark, look at the model card for parameter count, the quantised builds that exist and the hardware they expect.

For a laptop or a single server, you are in the range of a small model in a quantised build. That is still a large and improving set, and for many business tasks, such as classification, extraction and routing, it is entirely sufficient.

The Ollama documentation is the fastest way to see what runs on consumer hardware, and it is a reasonable way to test a candidate before committing to anything.

Then measure on your own data

This is the part that actually decides it, and it takes an afternoon.

Take twenty or thirty real examples of the task. Not examples you invented for the benchmark, the actual messy ones from your work. Include the awkward ones, the ones with missing fields and the ones where the right answer is "this needs a person".

Run each candidate model against them and compare three things. Whether the answer is right. How long it takes. What it costs to run.

A leaderboard tells you how a model performs on a dataset chosen to be general. You care about how it performs on your data, which may be entirely different. A model that scores badly on a general benchmark and brilliantly on your actual inputs is a good choice, and the reverse is also true.

If you do not have twenty labelled examples, that is the first piece of work. It is also the evaluation set you will need once the system is live, so it is not wasted either way.

Then cost it properly

The comparison people usually make, hosted API price against nothing, is not a real comparison.

A hosted API costs per token and nothing else. It is very cheap for small tasks and it costs nothing when you are not running.

A self-hosted model costs the hardware, whether it is busy or not. It also costs your time, because somebody has to keep it patched, upgrade it when a dependency breaks and watch it when it falls over at a time when nobody expected it.

So the break-even point depends on two things: how many tokens you run, and how busy the hardware is. A model running twenty per cent of the time is expensive per token. The same model at ninety per cent is cheap.

There is a third option that often wins, which is not obvious from the benchmarks. A small model for the cheap decisions and a hosted model for the hard ones. Most workflows are mostly easy, with a small hard part. Splitting them is usually the cheapest answer and the least work.

The comparison I would actually run

Take your shortlist of two or three models. For each, run your own evaluation set and record accuracy, latency and token usage. Then run the same set against the hosted model you would otherwise have used.

That last step is the one people skip, and it is the one that matters. The question is not "is the open source model good", it is "is the open source model good enough to be worth the work I am creating for myself".

For a lot of businesses the answer is yes, because the data sensitivity alone justifies it. For a lot of businesses the answer is no, and that is fine.

What to watch once you have chosen

Model versions move. Providers update a checkpoint, your running cost changes and your evaluation results drift. So keep two things.

Keep the evaluation set and run it on every change. It is the only way to know a swap did not make things worse.

Keep a fallback. If you are self-hosting, know which hosted model you would move to and have the switch tested. If you are hosted, keep the smallest local model you have working as the fallback for anything non-critical.

The honest version

Choosing a model is not the interesting part of the work. The interesting part is the system around it, and a mediocre model inside a well designed workflow beats a good model inside a bad one every time.

Spend the afternoon on the evaluation set rather than the week on the leaderboard.

If you want the commercial side of it, the AI agents service covers how I build and hand them over.

The AI agents service covers how I build this, and the pricing page explains what decides the cost.

The commercial side of it is on the hire page.

If you want the commercial side of it, the AI agents service covers how I build this kind of thing, and the pricing page explains what moves the cost of a project.


AI agents

All blogs

Common questions

Questions about open source models

Is an open source model better than a hosted one?

Neither is better in general. Open source wins on control, data staying in your infrastructure and predictable running cost at volume. Hosted models usually win on quality per pound and on how little work it takes. The decision depends on your data, your volume and who maintains it.

Which open source model should I use?

Start from the task rather than the leaderboard. Run a short evaluation set of your own real examples through two or three candidates and compare accuracy, latency and cost per run. A benchmark tells you how a model does on somebody else's data, which is a different question.

Can I run an open source model on my own laptop?

For a small model with a quantised build, yes, and it is the fastest way to learn what the operational trade-offs are. For anything you want to run in production as a service, you need proper hardware, and at that point the cost comparison with a hosted API changes completely.

What licence should I look for?

Read it rather than trust the label. Apache 2.0 and MIT are permissive. The Llama family has its own community licence with conditions above a user threshold. Creative Commons and research licences often forbid commercial use entirely, which rules the model out for a business system.

How do I know a model is good for my documents?

You cannot tell from a benchmark. Take twenty or thirty real questions your system will actually be asked, with the right answers where you have them, and measure retrieval and answer quality against them. It takes an afternoon and it saves weeks.

Is it cheaper to run my own model?

At low volume, almost certainly not. The cost of a hosted API call for a small task is small. At high volume with a steady workload, owning the hardware can be cheaper, but you take on utilisation, upgrades and failures. The break-even point depends on token volume and how much of the week the GPU is busy.

Where this fits

An agent that takes a goal, works out the steps, calls your tools and keeps going until the job is done or a person needs to step in.

AI agents

Keep reading

4 min read

Building a WordPress website with Claude

How a small business WordPress site was built with Claude: the content, the structure, the scraping of the old site, and what still needed a person.

Let's build

Let's discuss your workflow

Tell me what your team does by hand every week. I'll tell you honestly whether an agent or automation is the right answer, what it would take, and what it needs to keep running.