Llama, Mistral, DeepSeek, Qwen, and gpt-oss from OpenAI are all sometimes referred to as “open source”, but the label doesn’t always fit. Using the Open Source Initiative (OSI) definition, open source AI requires the freedom to use, study, modify, and share a system. That requires sharing access to the complete training code and detailed information about the training data, not just the trained model. Releasing only the weights gives you something to run and fine-tune—but not the full recipe behind it.
The difference between open source and open weight decides what you can inspect, change, and run on your own infrastructure. It also shapes license terms, the hosting bill, and how easy it is to switch models later. DigitalOcean Inference Engine hosts open-weight models such as gpt-oss-120b and Llama 4 Maverick behind the same API as commercial models, and runs imported weights on dedicated GPUs. Here’s what you need to know to pick and run the right open-weight models for your AI workloads.
Key takeaways:
Open-weight AI models publish their trained weights without necessarily releasing the corresponding training code or data. You can then run them in your own applications or hardware you choose.
Open-weight AI models let you keep proprietary data on infrastructure you choose, fine-tune models to your needs, and avoid provider lock-in. You still pay for compute and hosting, and self-hosting also takes in-house skills such as GPU setup, serving software, and monitoring.
Compare open-weight models on three factors: size, which sets the GPU memory you need; fit for your task, such as coding, reasoning, or long context; and deployment, meaning whether you self-host the model on your own GPUs or use a hosted inference service.
Run open-weight models on DigitalOcean using Serverless Inference, deploy or import them on Dedicated Inference, or manage your own serving stack on GPU Droplets®.
An open-weight AI model is a model in which its trained parameters, called weights, are published for anyone to download and run. Relevant text models are often referred to as open-weight large language models. Because the publisher doesn’t have to release the training code or data, a model becomes open-source AI only when the weights, complete code, and detailed data information are all released under OSI-approved terms. Most open-weight models stop short of that.
Open models put model choice and control in your hands. At DigitalOcean Deploy 2026, Kari Briski of NVIDIA and Salman Paracha of DigitalOcean discussed why NVIDIA is committed to open models like Nemotron and how newer model designs cut the compute behind each token. Read the Open by esign session recap.
Open source AI is a system you’re free to use, study, modify, and share, as the OSI defines it. In practice, that means users have access to the weights, the complete code used to train and run the system, and detailed information about the training data. By comparison, open-weight models offer a narrower promise: the final weights and biases of a trained network, but without the training code or training dataset. In other words, you have enough data to fine-tune and deploy the model, but you can’t fully reproduce or audit its construction.
The model license determines how you can use open-weight AI models. Here are some of the most common AI model licenses:
Apache 2.0 and MIT: gpt-oss and Qwen3.8-27B use Apache 2.0, and DeepSeek V4.1 Flash uses MIT. Both are permissive.
Llama 4 Community License: Companies with more than 700 million monthly active users on the release date must request a license from Meta. It also asks you to display “Built with Llama” when you distribute a product built on the model.
Mistral Ecosystem Open-Weight License: a modified MIT license that requires a commercial agreement for model-as-a-service businesses.
Muse Model License: model-as-a-service businesses above $20 million in revenue require a separate agreement.
Custom licenses: Qwen3.8’s 2.4T flagship uses the custom Qwen3.8-Max license, while the 27B model uses the Apache 2.0 license.
A company known for closed-weight AI models can also offer open-weight options. For example, OpenAI released gpt-oss as open weights while its frontier GPT models stay behind an API.
Licenses are just one of the differences. The larger split is between open-weight models and closed models, which keep their weights behind an API.
Closed models, sometimes called closed-weight or proprietary models, are available only through an API or a hosted interface. The weights stay with the provider, so you send prompts and read outputs, but you can’t download, host, or modify the model.
Neither approach is the perfect fit for every situation. A closed API removes the hosting work, while open weights give you control over where the model runs, what data it sees, and how it’s customized.
| Parameter | Open-weight model | Open source AI (OSI definition) | Closed model |
|---|---|---|---|
| Weights | Published for download | Published for download | Stay with the provider |
| Training code | Not required | Complete code to train and run the system, under OSI-approved licenses | Not shared |
| Training data | Not required | Detailed information about the data, under OSI-approved terms | Not shared |
| License | Permissive, such as Apache 2.0 or MIT, or custom | OSI-approved terms | Provider’s terms of service |
| Where it runs | Your hardware or a host you pick | Your hardware or a host you pick | Provider’s infrastructure, through an API |
| What you can change | Fine-tune and quantize the model | Study, modify, and share the whole system | Prompts and the settings the API exposes |
DigitalOcean offers both. Open-weight models such as DeepSeek, Qwen, Llama, and gpt-oss run alongside commercial models from OpenAI and Anthropic via a single OpenAI-compatible API. Bring Your Own Model (BYOM) offers the ability to import your own open-weight model and deploy it on Dedicated Inference.
Where should you run open-weight models? Our guide to leading AI cloud providers compares 10 platforms by best use case, features, and pricing.
An open-weight model works like any trained model. The weights hold what it learned, and you run them on hardware you choose with inference software such as the vLLM inference engine, which loads the weights onto your GPU and serves the model’s responses through an API.
Model weights are the numeric parameters a model learns during training, and there are often billions of them. Each weight is a single number that sets how strongly one connection in the model’s neural network influences the next. There are often billions of them because more connections give the model more capacity to capture patterns in language, images, or code.
Their values determine how the model turns an input into an output. Think of them as dials that get tuned, over and over, until the model’s outputs are useful. At the start of training, the weights hold random values; the model’s outputs are noise. The model compares each output with the correct answer, and small adjustments to the weights reduce the error. Repeating that across huge amounts of data produces the final values.
The weights aren’t the code that runs the model, and they aren’t the data it learned from. Each weight is a decimal number, and a model stores billions of them in grids called tensors. During training, the model reads examples and adjusts these numbers up or down to reduce its errors, but it doesn’t keep the examples themselves. What you download is the final tuned numbers, not a copy of the training data. With the weights alone, you can run, fine-tune, and quantize the model, but you can’t see the training data or reproduce the training run.
What you download is the final tuned values, not a copy of the training data. With the weights alone, you can run, fine-tune, and quantize the model, but you can’t see the training data or reproduce the training run.
Model cards list a parameter count—the number of weights in the model—and it’s the quickest way to gauge how much hardware you need to support them adequately.
Many newer models use a mixture-of-experts (MoE) design. This splits the network into groups of specialized sub-networks, called experts, and routes each token to only a few of them: the best fits for the task.
For most models, two things affect size:
Total parameters: The full count of weights in the model, which sets how much memory it takes to load the weights. Every weight, including every expert in a mixture-of-experts model, has to sit in GPU memory. That means the total number of parameters determines the hardware you need to run the model, even if the model uses only a fraction of them per token.
Active parameters: The weights the model uses to process each token, which sets how much computation each token costs. A dense model uses all of its weights. A mixture-of-experts model uses only the few experts its router selects.
For example, gpt-oss-120b has 117 billion (117B) total parameters; 5.1B active per token. OpenAI ships it quantized, which shrinks the memory it needs (more on that below). A dense model such as Qwen3.8-27B uses all 27B parameters for every token, because it has no experts to choose between: every layer’s weights process every token.
Quantization stores a model’s weights with fewer bits per number, so they take up less memory at the cost of some precision. A weight stored with fewer bits can represent fewer distinct values, so each one is rounded to the nearest value available. Those small rounding errors add up across billions of weights, which is why lower precision can reduce accuracy.
gpt-oss ships with its mixture-of-experts weights quantized to a format called MXFP4, which is how gpt-oss-120b runs on a single 80GB GPU, such as an NVIDIA H100, and gpt-oss-20b within 16GB. Test a quantized model on your own tasks, with the understanding that lower precision can reduce accuracy.
The weights are free to download under the licenses covered here, but compute, hosting, and fine-tuning costs still apply. Quantizing a model lowers the memory, and therefore the GPU size, it needs.
Running an open-weight model involves four steps:
Download the weights from a hub such as Hugging Face, usually as .safetensors files. A weights file is a binary file of numbers, not readable text. It starts with a short header that lists each tensor by name, shape, and data type, such as model.layers.0.self_attn.q_proj.weight, followed by the raw numbers. Large models are split across several files, next to small configuration and tokenizer files that describe the model’s architecture and how it reads text. As a rough size check, a 27B-parameter model stored in 16-bit precision takes about 54 GB, because each weight uses 2 bytes.
Load the weights into inference software: Launch a serving engine, such as vLLM or SGLang, on a GPU with sufficient memory relative to the model and point it at the downloaded weights. On DigitalOcean, create a GPU Droplet sized for the model, or skip the serving setup with Bring Your Own Model (BYOM). Import a model from a Hugging Face repository or a Spaces bucket into the Model Catalog and deploy it on Dedicated Inference. BYOM supports Safetensors files and approved open-source licenses, with imports up to 200 GB.
Serve them behind an API: The serving engine exposes an OpenAI-compatible endpoint, the address your application sends requests to. On DigitalOcean, a 1-Click Model on a GPU Droplet starts vLLM for you and exposes the endpoint on the Droplet.
Call the endpoint in your application code: Your application sends requests to the endpoint the same way it does with a closed model, so switching over takes little more than changing the model name. If you use different vendors for open and closed models, you also swap API keys, but on DigitalOcean the same model access key works for both, because open and closed models are served through the same OpenAI-compatible API.
Using hosted models means you’re not responsible for managing the first three steps—a provider like DigitalOcean runs the weights; you access them via an endpoint.
How much does running a model really cost? Our LLM cost calculation guide details how to estimate the cost of a request and how that cost scales with a month of traffic.
Today’s open-weight models come from many different creators, from US tech giants like OpenAI and Meta, to rapidly growing overseas challengers that include Mistral, DeepSeek, and Qwen. You can download all of these models from Hugging Face, or browse the models DigitalOcean hosts in its supported models catalog.
Let’s compare the leading open-weight models by usage license, size, and ideal use case:
| Model | Providers | License | Size (total and active parameters) | Best use case* |
|---|---|---|---|---|
| Llama 4 | Meta | Llama 4 Community License; companies above 700 million monthly active users must request a license | Scout: 109B total, 17B active. Maverick: ~400B total, 17B active | Multilingual chat, assistants, and visual reasoning |
| Mistral Large 4 | Mistral AI | Mistral Ecosystem Open-Weight License, a modified MIT license | ~1T total, 49B active | Reasoning, coding, and agentic work in one model |
| DeepSeek V4.1-Flash | DeepSeek | MIT | 552B backbone; 8B active at prefill, 16B at decode | Long-context, input-heavy agentic workloads |
| gpt-oss | OpenAI | Apache 2.0 | 120B: 117B total, 5.1B active. 20B: 21B total, 3.6B active | 120B for general reasoning on one 80GB GPU; 20B for low-latency or local use |
| Qwen3.8 | Alibaba | 27B: Apache 2.0. 2.4T flagship: custom Qwen3.8-Max license | 27B dense; 2.4T total, 95B active | Coding, research, and long-horizon agentic tasks |
| Muse Spark Open | Meta | Muse Model License; model-as-a-service businesses above $20 million in revenue require a separate agreement | 816B total, 42B active | New in October 2026: coding, agentic tasks, and multimodal reasoning |
Want to try open-weight models without hosting them yourself? DigitalOcean’s Model Catalog includes 85+ open and frontier models. See how our team served Kimi K3, a model with roughly 2.78 trillion parameters, in serving Kimi K3 on day 0.
Open-weight models give you more control than a closed API:
Control where your data goes. When you run the weights on your own infrastructure, prompts and fine-tuning data don’t pass through a third-party API. That matters in regulated sectors such as banking and healthcare, where data privacy is paramount.
Ability to fine-tune the model. Fine-tuning continues training the weights on your own examples, such as support tickets or legal documents, so the model learns your terminology, format, and tone. Unlike prompting, which steers the model one request at a time, fine-tuning changes the weights themselves. Because you have access to the weights, you start from a finished model rather than repeating pretraining. DeepSeek V4.1 Flash was pretrained on 45 trillion tokens, and your fine-tuning builds on that work.
Avoid vendor lock-in. Open weights run on any compatible host, so you can switch providers without rewriting code to accommodate one vendor’s model. For example, on DigitalOcean, you can start on Serverless Inference and move to Dedicated Inference without switching providers.
Pay for compute, not per-call model fees. The model’s author doesn’t charge a per-token fee for the weights, so your bill is for the hardware that runs them at steady, high volume, which can cost less than a closed API.
Match the model to the job. Many open-weight models exist, so you can pick one based on the size and strengths that fit each task. Smaller models can handle simple requests at lower cost.
Open-weight models also come with costs and gaps that a closed API obscures:
Transparency is limited. Most open-weight models don’t release their training code and data details, so you can’t fully audit how they were built. The OSI notes this makes bias checks and compliance harder. Few open-weight models, such as Ai2’s OLMo, also publicly share their training data and code.
Licenses can restrict how you use the model. Llama 4’s license requires a license request above 700 million monthly active users, and Mistral Large 4’s requires a commercial agreement for model-as-a-service businesses. Read the license before you build on any model.
You take on the operating work. You need GPUs, serving software, and people who can run them effectively. Fine-tuning also requires experimentation, and pitfalls such as overfitting can degrade a model’s performance on new inputs.
Safeguards are easier to remove. Once weights are public, the developer can’t take them back, and fine-tuning can strip out built-in safety measures. The US National Telecommunications and Information Administration (NTIA) examined these risks and the benefits in its report on foundation models with widely available weights.
DigitalOcean offers two ways to run open-weight models: host them yourself on GPU Droplets, or use Inference Engine, where open-weight and proprietary models run side by side behind one OpenAI-compatible API.
Here’s how the options compare:
Pricing, limits, and availability are accurate as of November 24, 2026, and may change.
| Solution | How it works | How it’s billed | Best for | Main trade-off |
|---|---|---|---|---|
| GPU Droplets | Virtual machines with one or eight GPUs. You pick the model and run it with software such as vLLM or Ollama. | Per GPU Droplet hour | Full control of the serving stack | You manage the server, updates, and scaling |
| Serverless Inference | One OpenAI-compatible endpoint for hosted open-weight and commercial models. | Per input and output token | Testing models and spiky or unpredictable traffic | Limited to catalog models, and per-token costs can add up under steady, high-volume traffic |
| Dedicated Inference | Runs a model on GPUs reserved for you. Can also import open-weight models from a Hugging Face repository or a Spaces bucket using Safetensors files and an approved open-source license. | Per GPU-hour | Steady, high-volume traffic and your own weights | You pay for reserved GPU time whether or not requests arrive |
| Inference Router (public preview) | Set the model to inference-router, and the router picks the model for each request. Set a budget, balanced, or quality preference per request. Runs on top of Serverless Inference. |
At the rate of the model that serves each request | Apps that call several models | You set the routing policy, and the router picks the model for each request |
Start with Serverless Inference if you’re testing models or your traffic is uneven. Move to Dedicated Inference when volume is steady, and you want GPUs reserved for your model. Use GPU Droplets when you want full control of the serving stack.
Deciding where to run open-weight models in production? Our guide to AI inference platforms compares the top options for production workloads.
Which cloud providers support open-weight models?
DigitalOcean supports open-weight models such as Llama, Mistral, DeepSeek, gpt-oss, and Qwen. You can run them on GPU Droplets, use Serverless or Dedicated Inference in Inference Engine, or let Inference Router pick the model per request. Confirm the current catalog before you build.
What is the difference between open-weight and open-source AI?
Open-source AI publishes the weights, training code, and detailed data information under OSI-approved terms. Open-weight AI publishes only the trained weights, under a permissive or custom license. Llama and DeepSeek are open-weight, not fully open source.
What is the best dedicated GPU inference provider for production workloads with predictable traffic?
DigitalOcean Dedicated Inference runs a model on GPUs reserved for you and bills per GPU hour, which suits steady, high-volume traffic. You pay for the reserved time whether or not requests arrive, so it fits best when your traffic is predictable. It also runs open-weight models you bring: import one from Hugging Face or a Spaces bucket into the Model Catalog and deploy it on Dedicated Inference.
Which inference provider lets me move from a serverless prototype to a dedicated production endpoint without re-architecting?
On DigitalOcean Inference Engine, you can start on Serverless Inference, which bills per token, and move to Dedicated Inference when volume is steady, without switching providers. Open and closed models share the same OpenAI-compatible API and model access key.
What is the best provider for deploying my own fine-tuned or custom model via API?
With Bring Your Own Model, you import Safetensors weights from Hugging Face or a Spaces bucket and deploy them on DigitalOcean Dedicated Inference. Imported models need an approved open-source license, and imports can be up to 200 GB.
Run open-weight models on DigitalOcean Inference Engine, where you can host and scale the model you choose on infrastructure you control. Building on open weights you control means the intelligence you build stays yours.
YC Labs, the research arm of Y Combinator, built on the same idea: it made its open-source QM agent platform deployable with one click from the DigitalOcean Marketplace, so teams can host their own AI agent and use open-weight models without being tied to a single model provider.
Run open-weight models like Llama, Mistral, DeepSeek, gpt-oss, and Qwen on GPU Droplets or Inference Engine
Bring Your Own (open-weight) Model and deploy it on Dedicated Inference
Use Inference Router (public preview) to match each request to a best-fit model, so simple prompts don’t cost frontier-model prices
Get started with DigitalOcean →
This “best use case” information reflects an opinion based solely on publicly available third-party commentary and vendor documentation. It does not constitute verified facts, comprehensive data, or a definitive assessment of the model.
Any references to third-party companies, trademarks, or logos in this document are for informational purposes only and do not imply any affiliation with, sponsorship by, or endorsement of those third parties.
Surbhi is a Technical Writer at DigitalOcean with over 5 years of expertise in cloud computing, artificial intelligence, and machine learning documentation. She blends her writing skills with technical knowledge to create accessible guides that help emerging technologists master complex concepts.
From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.
