Guides / Speech Recognition and On-Device AI
How do I choose an open source LLM to run locally?
Pick the job first, then filter by license, memory and runtime. Check that the license allows your use, that the quantized weights fit in your RAM with room left for the operating system and context, and that your inference tool supports the model's format. Then test two or three candidates on your own real inputs and keep the smallest one that does the job well.
Start with the job, not the leaderboard
Most bad local-model choices start from a ranking instead of a task. A model that tops a general chat leaderboard may be far larger than you need, or weak at the one thing you do all day. Write the job in one sentence before you look at any model: summarize a transcript, answer questions about a file, draft an email, classify short text.
The job decides everything downstream: how much context you need, how quickly the model must respond, and how much quality loss you can live with.
Also ask whether you need a general LLM at all. Turning speech into text is a different problem from generating text, and a dedicated speech model is usually the better tool. If that is your case, start with What is ASR in speech recognition?.
The checklist
Work through these in order. Each one can rule a model out before you spend time downloading it.
- License. Read it first. Open weights and open source are not the same thing, and some licenses restrict commercial use, large user counts or how you may use the outputs.
- Memory. Weights need roughly the parameter count times the bytes per weight. A 4-bit quantized model is about half a byte per parameter, and you still need room for the context cache and for everything else running on the machine.
- Runtime and format. Confirm your inference stack loads the file format you plan to use (GGUF, MLX, Core ML, ONNX) and supports the model's architecture. Support for a brand-new architecture can lag its release.
- Context length. Long documents need long context, and context costs memory too. A model's quoted maximum is not the same as how well it behaves at that length.
- Speed. Measure tokens per second and time to first token on your own hardware. A model that is accurate but slow to start feels broken inside an app.
- Quantization quality. Smaller quantizations save memory and cost some accuracy. Test the exact file you will ship, not the full-precision version.
- Update path. Prefer a model family that keeps getting releases, so swapping to a better one later is cheap.
Test candidates on your own inputs
Public benchmarks measure someone else's tasks. A small test set built from your real inputs tells you more than any table, and it takes an afternoon.
- Collect a few dozen real inputs, including the messy ones: bad formatting, long files, off-topic chatter.
- Run two or three candidates at the same memory budget.
- Read the outputs side by side, blind if you can.
- Write down failure modes: invented details, dropped items, ignored instructions.
- Measure speed and memory on the slowest machine you intend to support.
- Keep the smallest model that passes. Bigger only helps if you can see the difference in your own outputs.
What this looks like in shipped products
From September 2021 to January 2024, Nithin Gaddam was a tech lead on Siri ASR (AI/ML) at Apple, worked on the CoreSpeech module and evaluated multiple open-source LLMs. The checklist above is the general approach. Here is how local models show up in the apps Nithin's company, Vritam LP, ships.
In Donna, a Mac app, recording and Whisper transcription run on the Mac, and a local model writes the meeting summary on-device once the transcript settles. Speech to text and summarizing are treated as separate jobs, and nothing is uploaded.
In Unknown, AI chat, summaries and mind maps run locally on Apple silicon Macs. That is a hardware constraint worth noticing: the local features are tied to Apple silicon, so a model choice also decides which machines you can support. Without a Mac, Unknown's iPhone, iPad and web readers convert documents in the cloud.
For the privacy side of this tradeoff, see Is on-device AI more private than cloud AI?.
When a local model is the wrong choice
Local is not always better. Be honest about these cases:
- The task needs the strongest reasoning available, and no model that fits your hardware gets close.
- Your users have older or low-memory machines, so the model that fits is too weak to be useful.
- You need very long context and cannot afford the memory it takes.
- You cannot maintain it. A local model is a dependency you update, test and support yourself.
A hybrid is a reasonable answer. Donna's chat runs locally by default and can optionally be switched to Claude, so the local model is the starting point, not a wall.
Frequently asked questions
How much RAM do I need to run a local LLM?
Take the parameter count, multiply by the bytes per weight of your quantization, then add headroom for the context cache and the rest of the system. On Apple silicon the memory is shared between CPU and GPU, so the model competes with your other apps for the same pool.
Is a bigger model always better?
No. Bigger models usually score higher in general, but a smaller model that passes your own test set is faster, uses less memory and runs on more machines. Move up in size only when you can see the gap in your outputs.
What is quantization?
It stores a model's weights at lower precision, such as 4 bits instead of 16, so the file is smaller and runs faster. The cost is some accuracy, which is why you should test the exact quantized file you plan to use.
Should I use an LLM for speech to text?
Usually not. Dedicated speech models are built for that job. Donna, for example, transcribes with Whisper on the Mac and uses a separate local model for summaries.