Why teams self-host gpt-oss-120b and gpt-oss-20b on vLLM
Teams that want an OpenAI-style open-weight model inside infrastructure they control can run gpt-oss-120b and gpt-oss-20b on vLLM, an open-source inference and serving engine. The larger model suits workloads that need more capacity per request and can justify a bigger GPU layout, while gpt-oss-20b suits teams that want a smaller footprint for internal assistants, tooling and testing. Which size fits depends on the GPUs you can allocate, the concurrency you expect and the output quality your evaluations show, so run both against your own prompts before you commit hardware.
vLLM is licensed under Apache-2.0 and has no paid edition, so the cost of running it sits in three places: GPU or other accelerator capacity, the surrounding infrastructure such as storage, networking and monitoring, and the people who implement and operate the service. The license cost is zero, but the GPUs are usually the largest recurring line item. Ask any implementation partner to price these components separately in a written scope, and confirm whether the GPUs are bought once or rented on a recurring basis in your own cloud or data center.
Applications written for the OpenAI API can point at a vLLM server started with vllm serve, because it exposes OpenAI-compatible endpoints including /v1/chat/completions, /v1/completions, /v1/responses and /v1/embeddings. The /v1/responses endpoint matters for gpt-oss, since it is the API the model family is designed around, so confirm early which of your client libraries and internal tools call it and which still call chat completions. Check the current behavior of each endpoint against the vLLM online serving documentation before you rely on it in production.
Requests reach gpt-oss only through the proxy, while metrics and health stay internal
The diagram starts with client applications calling the OpenAI-compatible API through a reverse proxy that allowlists only user-facing endpoints such as /v1/chat/completions and /v1/responses. The proxy forwards to the vllm serve process, which schedules work onto the GPUs holding the model. Monitoring tools reach /metrics and /health from a separate internal network, never through the proxy. Check that the allowlist excludes /invocations, /pause, /resume and /abort_requests, since the --api-key option does not protect them.
User traffic passes the allowlist proxy, while metrics and health stay on an internal network.
Choosing between gpt-oss-120b and gpt-oss-20b on your hardware
This table compares the two gpt-oss sizes and the GPU families named in the vLLM GPT-OSS recipe, along with the TP1 settings for H100 memory errors. Read each row against the hardware you can actually allocate, and confirm the current recipe before you buy or reserve capacity.
| Option | What the recipe says | When it fits | What to confirm |
|---|---|---|---|
| gpt-oss-120b on A100 80GB | The recipe says the model fits on a single A100 80GB. | Teams with A100 80GB capacity who want the larger model on one card. | Confirm context length and batch settings with your own load test before sizing. |
| gpt-oss-120b on H100 | The recipe lists H100 as supported. At TP1, out-of-memory errors are fixed by raising --gpu-memory-utilization to 0.95. | Single-GPU H100 nodes where the first option is enough headroom for your traffic. | If the error persists, lower --max-num-batched-tokens and retest at your target concurrency. |
| H100 TP1 memory adjustment | Raise --gpu-memory-utilization to 0.95, or lower --max-num-batched-tokens. | Raise utilization when you need more KV cache and can tolerate less margin. Lower batched tokens when latency spikes or the margin is thin. | Verify under peak load, since higher utilization leaves less room for other processes on the GPU. |
| H200 and B200 | The recipe lists both NVIDIA GPUs as supported for gpt-oss. | Teams that want more memory headroom per device or a newer NVIDIA platform. | Confirm the exact flags and parallel settings the recipe gives for each GPU before ordering. |
| MI300X, MI325X and MI355X | The recipe lists these AMD Instinct GPUs as supported. | Organizations standardized on AMD ROCm who want to keep gpt-oss on their existing accelerators. | Confirm the ROCm version and any AMD-specific flags with the recipe and your vLLM release. |
| gpt-oss-20b | The smaller model is the lighter option, with lower memory needs than the 120b model. | Lower-cost GPUs, development environments, or workloads that need fast responses over maximum quality. | Test quality on your own tasks, since the smaller model may not match the larger one. |
What MXFP4 means for memory and kernel support
MXFP4 is the 4-bit weight format that the gpt-oss checkpoints use, and it sets how much GPU memory the weights take. The cards below separate what the vLLM recipe confirms from what you must check on your own GPU and vLLM version.
Why the weights take less memory
MXFP4 stores model weights as 4-bit values with shared scaling, so the weights take much less room than the same model held in 16-bit precision. The weights are the largest fixed cost loaded at startup, and the recipe's single-GPU fit for the 120b model depends on that reduction. Check the size of the downloaded checkpoint, then compare it with the memory the engine reports after loading, because the KV cache and runtime buffers still need space on top of the weights.
Single-GPU fit on A100 80GB
The recipe states that gpt-oss-120b fits on a single A100 80GB. That fit leaves limited room for the KV cache, so concurrent requests and maximum context length are the first settings to size. Treat the recipe statement as a starting point, then measure free memory with your real prompt lengths and batch sizes. The 20b model is the lighter option for validating the serving setup before you commit to the larger one.
GPT-OSS recipeSupported accelerators and kernel path
The recipe lists NVIDIA H100, H200 and B200 and AMD MI300X, MI325X and MI355X as supported. vLLM selects the kernel path for MXFP4 weights based on the accelerator and the installed version, so the same checkpoint can run through different code on different hardware. Do not infer the kernel path from the model name. Read the engine's startup log on your exact GPU and record the backend or kernel messages it reports, then keep that record with your deployment notes.
vLLM installation docsConfirm kernels for your version
vLLM ships new minor releases about every two weeks, and kernel selection for quantized formats can change between them. The supplied release history includes v0.31.0 on October 5, 2026. Pin the vLLM version you validated, rerun the memory and output checks after every upgrade, and keep the image tag and serving flags in version control together so a rollback is a single change.
vLLM release notesOut-of-memory fallback on H100
The recipe reports out-of-memory errors on H100 at tensor parallel size 1 and gives two fixes: raise --gpu-memory-utilization to 0.95, or lower --max-num-batched-tokens. Raising utilization leaves less headroom for activations and other processes on the same GPU. Lowering batched tokens reduces per-step memory but can reduce throughput. Choose one change at a time, then measure latency, memory and error rates under your real traffic before setting it as the default.
Setting up gpt-oss on vLLM step by step
This sequence takes a team from an empty GPU host to a running gpt-oss endpoint that answers Responses and chat requests, with a check at each stage so problems surface before users depend on the service.
Confirm the accelerator and driver stack
Your platform engineers confirm that the host has one of the accelerators the vLLM GPT-OSS recipe lists (NVIDIA H100, H200 or B200, or AMD MI300X, MI325X or MI355X), with a driver and runtime stack that matches the vLLM installation guide for that vendor. The recipe states that gpt-oss-120b fits on a single A100 80GB, so confirm the memory on your exact SKU rather than assuming the class. Done means the GPU is visible to the operating system and a basic device query returns the expected model and memory size.
Install vLLM in an isolated environment
A platform engineer installs a pinned vLLM release into a dedicated Python environment or container image, following the installation documentation for your accelerator. Record the exact version, because vLLM ships new minor releases about every two weeks and flags can change between them. Done means the vllm command runs and reports the version you recorded, and the library imports without CUDA or ROCm errors.
Pull the gpt-oss weights into controlled storage
Download the gpt-oss-120b or gpt-oss-20b checkpoint from the source your security team approves, then store it on a volume with restricted write access and a recorded checksum. Keep the download host and the serving host on a network path your policy allows, and confirm the license terms for the checkpoint before it enters production. Done means the files load from local disk with no network call at start-up and the checksums match the values your team recorded.
Launch vllm serve with the recipe flags
The engineer starts the server with the model path and the flags from the vLLM GPT-OSS recipe, adding --tool-call-parser openai and --enable-auto-tool-choice only if your applications need function calling, and noting that only tool_choice auto is supported. Bind the server to an internal address, not a public one. Done means the logs show the model loaded and the server reports it is listening on the port you set.
Check the Responses endpoint
Send a small request to /v1/responses with a known prompt from your test set, then confirm the response contains generated text and the expected model name. Repeat with a longer prompt to confirm the context window behaves as your application expects. Done means both requests return HTTP success with well-formed output and the server log records each request.
Check the chat completions endpoint
Send a request to /v1/chat/completions using the same prompt and compare the structure with the Responses output. If the chat call fails, check that the model provides a chat template or that you supplied one with --chat-template. Done means the chat endpoint returns a valid completion and both endpoints behave consistently for your test prompts.
Recover from out-of-memory errors on H100
If the H100 reports out-of-memory errors at tensor parallel size 1, the recipe suggests two changes: raise --gpu-memory-utilization to 0.95, or lower --max-num-batched-tokens. Apply one change at a time, restart, and rerun the two endpoint checks after each restart. Done means the server starts and both endpoints pass. If neither change works, record the error, the flags and the driver versions, and raise the issue with the vLLM project before adding more GPUs.
Confirm metrics and access before go-live
Confirm that the /metrics endpoint returns Prometheus-format data and that your monitoring system scrapes it. Place a reverse proxy in front of the server that allowlists only the endpoints your users need, because the --api-key option does not protect every route, including /metrics and /health. Done means an unauthenticated request to an unlisted route is refused and the metrics scrape succeeds from your monitoring host.
Using the Responses API and function calling with gpt-oss
Applications written for the OpenAI API do not need a new client library to use a self-hosted gpt-oss deployment. The vllm serve process exposes OpenAI-compatible endpoints, including /v1/chat/completions and /v1/responses, so the change is usually the base URL the client points at, plus the model name the server registered at startup. The Responses API (/v1/responses) is the endpoint to plan around for gpt-oss, because it is the surface the OpenAI API uses for reasoning-style models and for stateful, multi-step interactions. Teams should confirm in the vLLM GPT-OSS recipe and the online serving docs which endpoints their pinned vLLM release supports for the model, and test each one their applications call before cutover.
Function calling is the part of the setup that most often fails silently, because the server starts and simple chat requests succeed. For gpt-oss on vLLM, the server must be launched with --tool-call-parser openai and --enable-auto-tool-choice. Without the parser, tool definitions in a request are not translated into calls the model can emit and parse back. Note also that only tool_choice set to auto is supported for this model, so applications that force a specific tool or require a tool on every turn need a redesign or a fallback path. Add a test that sends a request with a tool definition and checks that the response returns a structured tool call, and a second test that confirms the application handles a plain text answer when no tool is needed.
Securing the gpt-oss endpoint and its metrics
The gpt-oss server exposes more than the chat endpoints users call. Its API key, metrics, health checks and multi-node traffic each need a deliberate boundary, so the team should decide what is reachable from where before the endpoint goes live.
API key covers only /v1 routes
The --api-key option protects the /v1 endpoints, but not /invocations, /pause, /resume, /abort_requests, /metrics or /health. A client that can reach the server directly can therefore call control endpoints without a key. The vLLM docs warn against relying on the key alone. Check the exposure of every route on the running server, not only the ones your application uses.
vLLM security docsAllowlist user endpoints at a proxy
Place a reverse proxy in front of the gpt-oss server and allow only the paths that users and applications need, such as the chat completions and responses routes. Deny everything else by default. Test the proxy with requests to pause, resume, abort and metrics paths to confirm they return errors from outside the cluster. Record the allowlist as a reviewed configuration file.
Keep metrics off public paths
The /metrics endpoint exposes Prometheus data covering request counts, token throughput, latency histograms and KV cache use. That data reveals load patterns and can help an attacker plan abuse. Scrape it from the monitoring network only, and confirm the proxy blocks it for external clients. Review histogram bucket settings with the team that owns dashboards.
Health checks and probes
The /health endpoint is used by load balancers and orchestrators to decide whether a replica is alive. It is not protected by the API key, so your probe design should account for that. Decide which network may call it, and whether the probe should run inside the cluster only. Confirm the behavior of your load balancer and Kubernetes probes against the chosen proxy rules before go-live.
Isolate multi-node traffic
Communication between nodes in a multi-node deployment is insecure by default, with no authorization or encryption. If gpt-oss runs across nodes with tensor or pipeline parallelism, place those nodes on an isolated network segment that only the cluster can reach. Check whether your chosen gpt-oss layout needs multiple nodes at all, because a single-GPU layout avoids this exposure.
vLLM security docsMonitor invocations and control paths
The /invocations path is not covered by the API key either, so it needs the same allowlist review as the control endpoints. Log and alert on any access to paths outside the allowlist at the proxy. Assign an owner for reviewing those logs and for re-checking the route list after each vLLM upgrade, since releases ship about every two weeks.
- Minor release cadence
- Every two weeks
Questions buyers ask about running gpt-oss on vLLM
How much does it cost to run gpt-oss on vLLM?
vLLM itself has no license fee, so the cost comes from GPU capacity, the surrounding infrastructure and the people who operate the platform. The largest recurring line is usually accelerator capacity, whether you own GPUs or rent them from a cloud or data center provider. Storage, networking, load balancing, logging and monitoring add to that. Ask any quote to separate one-time items (scoping, configuration, testing, documentation) from recurring ones (capacity, support, upgrades, on-call time). Model size and precision affect how many GPUs you need, so the hardware line moves with the layout you choose.
How long does a gpt-oss on vLLM deployment take?
The duration depends on how much of the platform is new to your team. A single-GPU test on a machine you already run is a different project from a production service with SSO, gateway rules, metrics and a tested upgrade path. Drivers include GPU procurement lead time, whether the hosts already have the right CUDA or ROCm stack, how many API clients must be migrated, and how much security review your organization requires. No duration is fixed here. Ask for a timeline in the written scope, with milestones for hardware validation, load testing and sign-off.
What does my team need to provide for the deployment?
Your team needs to provide access to the hosts or cloud accounts where the GPUs run, a decision on which gpt-oss variant and hardware layout you will serve, and an owner for the identity, network and secrets decisions. You also need someone who can approve the model weight source and the container image. On the application side, you need the list of clients that will call the OpenAI-compatible endpoints, plus the expected concurrency and context lengths. The vLLM GPT-OSS recipe covers supported GPUs and flags, but your environment decides how they are applied.
Can my own engineers deploy gpt-oss on vLLM without a partner?
Yes, if your team has experience with GPU servers, Linux drivers, container runtimes and HTTP services. vLLM is Apache-2.0 licensed and the recipe and documentation are public, so a capable team can start with a single-GPU test. The harder parts are sustained operations: fixing out-of-memory errors, managing driver and engine upgrades, securing endpoints, and keeping metrics and capacity planning current. Assess whether you can staff those tasks for the life of the service, not only for the first install.
Can gpt-oss on vLLM run in an air-gapped network?
vLLM includes an --enable-offline-docs option intended for air-gapped environments, so the served API documentation does not depend on external content delivery. Air-gapping also requires that the model weights, container images, Python packages and any tokenizer or chat template files are staged inside the network through an approved transfer process. Confirm with the vLLM installation and online serving documentation which other components fetch resources at runtime. Plan for offline updates, because each new vLLM release, driver or model artifact must be transferred and tested before it reaches production.
When is a partner worth it for a vLLM deployment?
A partner is worth considering when the deployment carries compliance evidence, production traffic or a small team that cannot cover operations. DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms in your own cloud accounts, data centers or air-gapped networks, under a written, fixed scope. It also runs security testing and prepares evidence for compliance assessments, but it does not issue audit reports or certifications. Ask a partner to show how the scope covers hardware validation, endpoint exposure, monitoring, upgrades and knowledge transfer to your staff.
What does a vLLM support contract cover, and where does it come from?
vLLM has no paid edition, so there is no vendor support contract to buy for the engine itself. Support comes from the open-source community, the project's documentation and release notes, and any commercial provider you engage. A partner retainer can cover ongoing support, upgrades and continuous testing, and that scope should be written out. Ask what response paths exist, who on the partner side handles GPU driver and engine incidents, and how upgrades between minor releases are tested before they reach production.
What cost drivers should I check before approving a gpt-oss budget?
Check the GPU model, the number of GPUs per replica, the number of replicas for availability, and the expected concurrency. Then check the surrounding costs: hosts, networking, storage for weights and logs, the API gateway, and monitoring through the vLLM Prometheus metrics. Add staff time for operations, including on-call coverage and upgrade work. Compare owned hardware against reserved cloud capacity, and ask every vendor and partner to show their assumptions in writing so you can change one input and see the effect.
How DeployOpen scopes and delivers a gpt-oss deployment on vLLM
DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside your own cloud accounts, data centers or air-gapped networks. For a gpt-oss deployment, that means fixing the GPU layout, serving flags, network exposure and evidence trail in a written scope before any build work starts, then handing over a system your own teams can run.
How we scope
- Confirm the target GPUs, whether NVIDIA H100, A100 80GB or another supported accelerator, and the model size each workload needs
- Agree the vLLM version, Responses API and tool calling requirements, and the client applications that will call the endpoint
- Record the written scope, deliverables and timeline in writing before work starts, since most engagements are fixed-scope
How we build
- Install vLLM and the gpt-oss model in your environment, then set serving flags against the vLLM GPT-OSS recipe and your memory tests
- Place the API behind a reverse proxy that allowlists only the endpoints users need, because the --api-key option alone is not enough
- Test model loading, out-of-memory behavior, tool calls and Prometheus metrics at /metrics before the system is accepted
How we hand over
- Deliver configuration, startup scripts, network and access diagrams, and a record of the tested vLLM version and flags
- Document the runbook for memory errors, model loading problems, upgrades and the limits of the current gpt-oss support
- Walk your operations and security teams through the deployment so they can review and run it without DeployOpen
How we support
- Provide ongoing support, version upgrades and continuous testing as a retainer, scoped in writing
- Retest the endpoint exposure and serving configuration after each planned vLLM release upgrade before changes reach users
- Prepare the evidence your compliance and security reviewers ask for, while independent auditors and certification bodies issue any formal assessment

