Black Friday: Save 10% for life on all of our VPS plans, now through Cyber Monday

10% off on selected plans for as long as you keep the service · new orders · up to 10 uses per customer · ends Dec 1, 2026, 12:00 AM EST.

See plans
Guideschevron_rightServers

Servers · 9 min read · Updated

How to Run gpt-oss-120b and gpt-oss-20b on Your Own Server

gpt-oss-20b runs in about 16 GB of memory, on a GPU or in system RAM; gpt-oss-120b fits on a single 80 GB GPU, or in about 64 GB of system memory with llama.cpp keeping its experts on the processor. Both are OpenAI's open-weight mixture-of-experts models under Apache 2.0, with a 128k context and adjustable reasoning effort. The quickest start is ollama run gpt-oss:20b; for many users on a GPU, serve it with vLLM.

gpt-oss-120b vs gpt-oss-20b

The two gpt-oss models compared
ModelParametersActive per tokenLayersExpertsOllama downloadMemory at 8k / 128k context
gpt-oss-20b21B3.6B2432 (4 active)14 GB14.9 GB / 17.9 GB
gpt-oss-120b117B5.1B36128 (4 active)65 GB64 GB / 68.5 GB

The experts' weights are stored in 4-bit MXFP4 and everything else in BF16, which is how the 120b fits on one 80 GB GPU. Sources: OpenAI's model card, Ollama's library and llama.cpp's gpt-oss guide.

Which Server Runs gpt-oss

Each model's memory at an 8k context plus 8 GB for the system, against the largest memory option of each of our dedicated servers today. Only 4 of the experts run for each token, so a processor with plenty of memory bandwidth handles gpt-oss far better than a dense model of the same size.

gpt-oss models that fit in each dedicated server's memory
ServerMemorygpt-oss-20bgpt-oss-120bFrom
AMD Ryzen 5 760032 GBFitsToo large$139.00/mo
AMD Ryzen 5 9600X32 GBFitsToo large$199.00/mo
AMD EPYC 4245P32 GBFitsToo large$199.00/mo
Intel Xeon E3-1270 v564 GBFitsToo large$79.00/mo
AMD Ryzen 9 5950X128 GBFitsFits$399.00/mo
Intel Core Ultra 9 285K128 GBFitsFits$399.00/mo
AMD Ryzen 9 7950X128 GBFitsFits$479.00/mo
AMD EPYC 4585PX128 GBFitsFits$849.00/mo
AMD Ryzen 9 9950X192 GBFitsFits$349.00/mo
AMD EPYC 9B14192 GBFitsFits$1,189.00/mo
AMD Dual EPYC 7502256 GBFitsFits$529.00/mo
AMD EPYC 9334256 GBFitsFits$829.00/mo
AMD EPYC 9754S256 GBFitsFits$1,319.00/mo
AMD Dual EPYC 9174F384 GBFitsFits$1,319.00/mo
AMD Dual EPYC 7702512 GBFitsFits$869.00/mo
AMD EPYC 7443P512 GBFitsFits$969.00/mo
AMD EPYC 9455P512 GBFitsFits$999.00/mo
AMD Ryzen Threadripper 9960X512 GBFitsFits$1,269.00/mo
AMD EPYC 9455512 GBFitsFits$2,299.00/mo
AMD EPYC 9254768 GBFitsFits$1,189.00/mo
AMD Ryzen Threadripper 9970X768 GBFitsFits$3,289.00/mo
AMD Dual EPYC 74431 TBFitsFits$519.00/mo
AMD EPYC 9275F1 TBFitsFits$929.00/mo
AMD Dual EPYC 77421 TBFitsFits$1,059.00/mo
AMD EPYC 9355P1 TBFitsFits$2,109.00/mo
AMD EPYC 97551 TBFitsFits$2,109.00/mo
AMD Ryzen Threadripper 7960X1 TBFitsFits$3,159.00/mo
AMD Dual EPYC 9B141.5 TBFitsFits$6,059.00/mo
AMD Dual EPYC 7H122 TBFitsFits$2,639.00/mo
AMD Dual EPYC 77634 TBFitsFits$3,949.00/mo

On Our GPU Servers

GPU servers and how they run gpt-oss
PlanGPUTotal GPU memorySystem memorygpt-ossPrice
Intel Core Ultra 9 285K w/ NVIDIA Tesla P4NVIDIA Tesla P4 · 8 GB8 GB192 GBExperts on the CPU; 120b with experts on the CPU$589.00/mo
NVIDIA DGX SparkNVIDIA DGX Spark · 128 GB128 GB128 GBBoth on the GPU$609.00/mo
AMD EPYC 7443P w/ NVIDIA RTX 3090NVIDIA RTX 3090 · 24 GB24 GB256 GB20b on the GPU; 120b with experts on the CPU$659.00/mo
AMD Ryzen 9 9950X w/ NVIDIA RTX 3050NVIDIA RTX 3050 · 6 GB6 GB192 GBExperts on the CPU; 120b with experts on the CPU$699.00/mo
AMD Dual EPYC 7702 w/ NVIDIA RTX 3050NVIDIA RTX 3050 · 6 GB6 GB256 GBExperts on the CPU; 120b with experts on the CPU$749.00/mo
AMD Ryzen 9 9950X w/ NVIDIA RTX 5090NVIDIA RTX 5090 · 32 GB32 GB64 GB20b on the GPU$789.00/mo
AMD Ryzen 9 9950X w/ NVIDIA RTX 5090NVIDIA RTX 5090 · 32 GB32 GB96 GB20b on the GPU; 120b with experts on the CPU$829.00/mo
AMD Dual EPYC 7702 w/ NVIDIA RTX 5070NVIDIA RTX 5070 · 12 GB12 GB256 GBExperts on the CPU; 120b with experts on the CPU$859.00/mo
AMD EPYC 7702 w/ 4x NVIDIA RTX 30904× NVIDIA RTX 3090 · 24 GB each96 GB128 GBBoth on the GPU$929.00/mo
AMD EPYC 7443P w/ 4x NVIDIA V100 16GB4× NVIDIA V100 · 16 GB each64 GB128 GB20b on the GPU; 120b with experts on the CPU$1,059.00/mo
AMD EPYC 7443P w/ 4x NVIDIA V100 32GB4× NVIDIA V100 · 32 GB each128 GB128 GBBoth on the GPU$1,059.00/mo
AMD EPYC 7443P w/ 4x NVIDIA V1004× NVIDIA V100—256 GB—$1,189.00/mo
Intel Dual Xeon Platinum 8260 w/ 8x NVIDIA V1008× NVIDIA V100 · 32 GB each256 GB1 TBBoth on the GPU$1,319.00/mo
2x NVIDIA DGX Spark2× NVIDIA DGX Spark · 128 GB each256 GB256 GBBoth on the GPU$1,449.00/mo
AMD EPYC 9B14 w/ 2x NVIDIA RTX 50902× NVIDIA RTX 5090 · 32 GB each64 GB384 GB20b on the GPU; 120b with experts on the CPU$2,639.00/mo
AMD EPYC 9355 w/ NVIDIA RTX PRO 6000NVIDIA RTX PRO 6000 · 96 GB96 GB768 GBBoth on the GPU$2,639.00/mo
AMD EPYC 9254 w/ 4x NVIDIA RTX 50904× NVIDIA RTX 5090 · 32 GB each128 GB384 GBBoth on the GPU$3,819.00/mo
Intel Dual Xeon Gold 6338N w/ 8x Intel Gaudi 28× Intel Gaudi 2 · 96 GB each768 GB1 TBBoth on the GPU$3,949.00/mo

1. Run It With Ollama

The simplest route, on a GPU or a processor. Ollama installs as a service listening on 127.0.0.1:11434:

curl -fsSL https://ollama.com/install.sh | sh
ollama run gpt-oss:20b        # 14 GB download
ollama run gpt-oss:120b       # 65 GB download

Ollama uses a 4,096-token context unless told otherwise. To give gpt-oss more, run sudo systemctl edit ollama.service, add the lines below, then sudo systemctl daemon-reload && sudo systemctl restart ollama:

[Service]
Environment="OLLAMA_CONTEXT_LENGTH=32768"

2. Run It With llama.cpp, Experts on the CPU

llama.cpp gives you control over what goes where. On a GPU with room for the whole 120b, the command from llama.cpp's guide is:

llama-server -hf ggml-org/gpt-oss-120b-GGUF --ctx-size 0 --jinja -ub 2048 -b 2048

On a smaller GPU, --n-cpu-moe N keeps the expert weights of the first N layers in system memory and puts the rest, including attention and the conversation cache, on the GPU. The 120b has 36 layers: start with --n-cpu-moe 36 and lower it until the GPU's memory is nearly full. On a server with no GPU, leave the flag out and everything runs on the processor:

llama-server -hf ggml-org/gpt-oss-120b-GGUF --jinja -c 32768 \
  --host 127.0.0.1 --port 8080 --api-key "$(openssl rand -hex 24)"

--jinja uses the chat template inside the model file, which gpt-oss needs for its harmony response format. The server answers on /v1/chat/completions and has a chat page at the same address; reach it with ssh -L 8080:127.0.0.1:8080 you@203.0.113.10.

3. Serve It to Many Users With vLLM

On a GPU with 80 GB or more, vLLM serves the 120b to many users at once with continuous batching. After installing it with the vLLM quickstart:

vllm serve openai/gpt-oss-120b --api-key "$(openssl rand -hex 24)"
# OpenAI-compatible API on http://localhost:8000/v1

Not sure which engine fits? See vLLM vs Ollama vs llama.cpp, and serving an LLM API for HTTPS with Caddy.

Reasoning Effort and Settings

  • Reasoning effort: low, medium or high, set in the system prompt with a line such as Reasoning: high.
  • Sampling: OpenAI recommends temperature=1.0 and top_p=1.0.
  • Harmony format: gpt-oss must be prompted in OpenAI's harmony format. Ollama, llama.cpp with --jinja and vLLM handle it for you; if you build prompts yourself, use the openai-harmony package.
  • A chat interface: point Open WebUI at Ollama or at the OpenAI-compatible address of llama.cpp or vLLM.

Common Questions

  • How much memory does gpt-oss-120b need?

    About 64 GB at an 8,192-token context and 68.5 GB at the full 131,072 tokens, by llama.cpp's measurements. OpenAI designed it to fit on a single 80 GB GPU. Without such a GPU, it runs from system memory on a server with around 80 GB or more, with any GPU you have taking the attention layers.

  • Can gpt-oss run on a CPU?

    Yes. Both models are mixture-of-experts: of the 120b's 117 billion parameters, only 5.1 billion are used for each token, so a processor reads far less memory per word than with a dense model of the same size. A CPU server is slower than a GPU but practical, especially with many memory channels.

  • What licence is gpt-oss under?

    Apache 2.0, with OpenAI's gpt-oss usage policy. You can use it commercially, fine-tune it and run it on your own hardware.

  • How do I change gpt-oss's reasoning effort?

    The models support low, medium and high reasoning effort. Set it in the system prompt, for example "Reasoning: high". Higher effort thinks longer before answering: better for hard problems, slower for simple ones.

Plans and prices

Dedicated Servers

Dedicated servers with the memory to hold gpt-oss-120b, billed monthly.

See all plans
  • Intel Xeon E3-1270 v5

    4 Cores · 64 GB RAM · 1TB SSD

    Bend, OR (OR1) · 10 TB transfer · 10 Gbps

    $79.00/mo

  • Intel Xeon E3-1270 v5

    4 Cores · 64 GB RAM · 2x 500GB SSD

    Charlotte, NC (NC1) · 10 TB transfer · 1 Gbps

    $79.00/mo

  • Intel Xeon E3-1270 v5

    4 Cores · 32 GB RAM · 2x 2TB HDD

    Dallas, TX (TX3) · 10 TB transfer · 10 Gbps

    $99.00/mo

  • AMD Ryzen 5 7600

    6 Cores · 32 GB RAM · 960GB NVMe

    Dallas, TX (TX2) · Unmetered transfer · 1 Gbps

    $139.00/mo

Keep Reading

All guides