Glossary
Open weight models
Language models whose trained weights are published for anyone to download and run, usually under a licence that sets conditions on use, without necessarily releasing the training data or code.
An open weight model is a language model whose trained weights are published so anyone can download them, run them on their own hardware, and usually fine-tune them. The weights are the billions of numbers learned during training, and having them means you can run inference without calling the developer’s API. Well-known families include Meta’s Llama, Mistral’s models, Alibaba’s Qwen, DeepSeek’s V3 and R1, Google’s Gemma and OpenAI’s gpt-oss. “Open weight” is narrower than “open source”: most releases share the weights and a licence, but not the training data or the full training code, and many licences attach conditions on how the model may be used. The appeal is control over where data goes, what the model costs to run and which version you are on. The cost is that you take on the serving, scaling and upkeep that an API provider would otherwise handle.
Open weight compared with open source
In software, open source means anyone can read, modify and redistribute the source code under an approved licence. The equivalent for a model would include the weights, the training code and enough information about the training data to reproduce or meaningfully study it. The Open Source Initiative published an Open Source AI Definition in 2024 along these lines, and few major models meet it, mainly because developers do not release their training data.
So most of the models people call open are open weight. You get the finished artefact and permission to use it, but you cannot rebuild it from scratch. That matters less for running and adapting a model, and more for auditing what it learned or reproducing research.
Licences also vary. Some models are released under permissive licences such as Apache 2.0 or MIT, which allow commercial use with few conditions. Others use custom licences: Llama’s community licence, for example, requires companies above a very large monthly user threshold to obtain a separate licence, and sets an acceptable use policy. Gemma has its own terms of use. Read the licence for the specific model and version before building on it, because terms can change between releases.
Why teams choose open weight models
Data control is the most common reason. When you run the model yourself, prompts and outputs never leave your infrastructure, which simplifies conversations about data residency and confidentiality. Some regulated buyers require it outright.
Cost is the second. Hosted APIs charge per token, which is efficient at low volume and expensive at very high volume. A self-hosted model on reserved GPUs has a roughly fixed cost, so past a certain throughput it becomes cheaper per request, especially for steady workloads such as classification, extraction or batch inference.
Customisation is the third. With the weights you can train adapters with LoRA, compress the model with model quantization, or use it as a teacher or student for distillation. Hosted models offer some fine-tuning, but with less control over method and deployment.
Stability is the fourth. A hosted model can be updated or retired by its provider, sometimes changing behaviour in ways that break prompts. A downloaded checkpoint stays exactly as it is until you choose to change it, which helps when you have spent months tuning prompts and evaluations against one version.
Ways to run them
There are three common routes. Self-hosting on your own GPUs or cloud instances uses a serving engine such as vLLM, SGLang or Hugging Face’s Text Generation Inference, which handle batching, the KV cache and streaming. This gives the most control and the most operational work.
Hosted inference providers run open weight models behind an API, priced per token like closed models but usually cheaper. You get the same model you could self-host, can switch providers without changing models, and can move to self-hosting later. Precision and serving settings vary by provider, which is worth checking when results differ.
Local runtimes such as llama.cpp and Ollama run quantised models on laptops and workstations. They are common for development, offline use and privacy-sensitive personal tools.
Many teams mix these. An LLM gateway puts a single interface in front of several models and providers, and model routing sends routine requests to a cheap open weight model while harder ones go to a frontier API.
A worked example
A legal software company handles contracts that customers will not allow to leave their cloud. They deploy a mid-sized open weight model in their own cloud account, quantised to 8-bit to fit on one GPU per replica, and serve it with vLLM. They train a LoRA adapter so that clause summaries come back in a fixed structure, and they pin the exact model version in their deployment so outputs stay stable between releases.
The model does not know each customer’s contracts, and the team does not try to train them in. Contracts are parsed and indexed per customer, and the relevant clauses are retrieved into the prompt for each question with their page references. When a better open weight model is released, the team runs their evaluation set against it before switching, using the same LLM evaluation harness they used for the original choice. Because the weights only change when they decide to change them, any regression traces back to a change the team made, which makes incidents quicker to diagnose.
Choosing an open weight model
Start from the hardware you can afford and the job the model has to do. Parameter count sets the memory floor: a 7 to 9 billion parameter model runs on a single consumer or entry-level data centre GPU, a model in the 30 billion range needs a large GPU or quantization, and models of 70 billion parameters and up need several GPUs or aggressive compression. Mixture-of-experts models complicate this, because only part of the network runs for each token. They are cheaper to run than their total size suggests, but every expert still has to fit in memory.
Next, check the features your application depends on. Agent workloads need reliable function calling and structured output, and support for both varies more between open models than between the major APIs. Check the advertised context window too, and treat it as an upper bound: long context models tend to use only part of their window well, and long prompts drive up memory use on your own GPUs.
Then build a small evaluation set from your real traffic and score a shortlist against it. A golden dataset of a few hundred labelled examples is usually enough to separate candidates, and it pays for itself again every time a new release tempts you to switch. Public leaderboards are a reasonable way to build the shortlist, but they rarely match your task closely enough to make the final call.
Trade-offs
Factor | Open weight, self-hosted | Closed model via API |
|---|---|---|
Data location | Stays in your infrastructure | Sent to the provider |
Cost shape | Mostly fixed, cheaper at high volume | Per token, cheaper at low volume |
Top-end capability | Usually somewhat behind the frontier | Often the strongest available |
Customisation | Full: adapters, quantization, distillation | Limited to what the provider offers |
Version stability | You control upgrades | Provider can change or retire models |
Operations | Your team runs serving and scaling | Provider runs everything |
The capability gap has narrowed. Strong open weight reasoning models and long-context models are now available, and on many routine tasks the difference from the best closed models is small. On the hardest reasoning, coding and agentic tasks, the leading closed models have usually stayed ahead. Every model, open or closed, also has a knowledge cutoff and will hallucinate when asked about facts it does not have.
Operations are the part most often underestimated. Serving a model reliably means GPU capacity planning, autoscaling, monitoring LLM latency and throughput, and keeping up with new releases and security patches. LLM observability tooling matters as much for a self-hosted model as for an API.
Where Exabase fits
Exabase is model-agnostic, so it works with open weight and closed models alike. It does not host models and is not itself open source or self-hostable: it is a managed service that your application calls over an API, with a TypeScript SDK. Teams weighing a fully self-hosted stack should take that into account.
What Exabase provides is the context layer around the model. Exabase Memory stores what an agent learns about each user and returns the relevant facts in a few hundred tokens per request, and Deep Search finds the passage inside stored documents that answers a question. Smaller open weight models benefit most from this, because they cope less well with long, noisy prompts. Each customer can have its own Base, so one shared model serves many tenants with their data kept apart. Data is encrypted in transit and at rest with AES-256, and Exabase is CASA certified. Whether that meets a specific deployment’s requirements is for your own security and legal review to decide.
Our getting started guide covers connecting an application to the API, the agent memory solution shows the pattern end to end, and our blog post on open source vs managed agent memory covers the same trade-off one layer up the stack. For open source memory projects, see our roundup of open source agent memory options.
Frequently asked questions
Are open weight models the same as open source models?
No. Open weight models publish the trained weights and a licence. Open source in the full sense also covers training code and data information, which most model releases do not include.
Can I use open weight models commercially?
Often, but it depends on the licence. Apache 2.0 and MIT models allow broad commercial use, while custom licences such as Llama’s set conditions. Check the licence for the exact version you use.
Are open weight models as good as closed models?
Close on many routine tasks, and usually somewhat behind on the hardest reasoning and agentic work. Evaluate candidates on your own tasks rather than relying on general benchmarks.
Is it cheaper to self-host an open weight model?
At high, steady volume it often is. At low or unpredictable volume, per-token APIs are usually cheaper once you count GPU costs and the engineering time to run them.
Can I fine-tune an open weight model?
Yes. Most teams use LoRA or QLoRA, which train small adapters and need far less GPU memory than full fine-tuning.
Does Exabase work with open weight models?
Yes. Exabase is model-agnostic. Memory and search results are returned as text you can place in any model’s prompt, whether self-hosted or called through an API.
Can I self-host Exabase alongside my model?
No. Exabase is a managed service accessed over its API. It is not open source and is not offered for self-hosting.
Related pages: LoRA, model quantization, distillation, reasoning models, LLM gateway, model routing, LLM, agent memory solution, legal agents