gpt-oss-120b vs gpt-oss-20b
| Model | Parameters | Active per token | Layers | Experts | Ollama download | Memory at 8k / 128k context |
|---|---|---|---|---|---|---|
| gpt-oss-20b | 21B | 3.6B | 24 | 32 (4 active) | 14 GB | 14.9 GB / 17.9 GB |
| gpt-oss-120b | 117B | 5.1B | 36 | 128 (4 active) | 65 GB | 64 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.
| Server | Memory | gpt-oss-20b | gpt-oss-120b | From |
|---|---|---|---|---|
| AMD Ryzen 5 7600 | 32 GB | Fits | Too large | $139.00/mo |
| AMD Ryzen 5 9600X | 32 GB | Fits | Too large | $199.00/mo |
| AMD EPYC 4245P | 32 GB | Fits | Too large | $199.00/mo |
| Intel Xeon E3-1270 v5 | 64 GB | Fits | Too large | $79.00/mo |
| AMD Ryzen 9 5950X | 128 GB | Fits | Fits | $399.00/mo |
| Intel Core Ultra 9 285K | 128 GB | Fits | Fits | $399.00/mo |
| AMD Ryzen 9 7950X | 128 GB | Fits | Fits | $479.00/mo |
| AMD EPYC 4585PX | 128 GB | Fits | Fits | $849.00/mo |
| AMD Ryzen 9 9950X | 192 GB | Fits | Fits | $349.00/mo |
| AMD EPYC 9B14 | 192 GB | Fits | Fits | $1,189.00/mo |
| AMD Dual EPYC 7502 | 256 GB | Fits | Fits | $529.00/mo |
| AMD EPYC 9334 | 256 GB | Fits | Fits | $829.00/mo |
| AMD EPYC 9754S | 256 GB | Fits | Fits | $1,319.00/mo |
| AMD Dual EPYC 9174F | 384 GB | Fits | Fits | $1,319.00/mo |
| AMD Dual EPYC 7702 | 512 GB | Fits | Fits | $869.00/mo |
| AMD EPYC 7443P | 512 GB | Fits | Fits | $969.00/mo |
| AMD EPYC 9455P | 512 GB | Fits | Fits | $999.00/mo |
| AMD Ryzen Threadripper 9960X | 512 GB | Fits | Fits | $1,269.00/mo |
| AMD EPYC 9455 | 512 GB | Fits | Fits | $2,299.00/mo |
| AMD EPYC 9254 | 768 GB | Fits | Fits | $1,189.00/mo |
| AMD Ryzen Threadripper 9970X | 768 GB | Fits | Fits | $3,289.00/mo |
| AMD Dual EPYC 7443 | 1 TB | Fits | Fits | $519.00/mo |
| AMD EPYC 9275F | 1 TB | Fits | Fits | $929.00/mo |
| AMD Dual EPYC 7742 | 1 TB | Fits | Fits | $1,059.00/mo |
| AMD EPYC 9355P | 1 TB | Fits | Fits | $2,109.00/mo |
| AMD EPYC 9755 | 1 TB | Fits | Fits | $2,109.00/mo |
| AMD Ryzen Threadripper 7960X | 1 TB | Fits | Fits | $3,159.00/mo |
| AMD Dual EPYC 9B14 | 1.5 TB | Fits | Fits | $6,059.00/mo |
| AMD Dual EPYC 7H12 | 2 TB | Fits | Fits | $2,639.00/mo |
| AMD Dual EPYC 7763 | 4 TB | Fits | Fits | $3,949.00/mo |
On Our GPU Servers
| Plan | GPU | Total GPU memory | System memory | gpt-oss | Price |
|---|---|---|---|---|---|
| Intel Core Ultra 9 285K w/ NVIDIA Tesla P4 | NVIDIA Tesla P4 · 8 GB | 8 GB | 192 GB | Experts on the CPU; 120b with experts on the CPU | $589.00/mo |
| NVIDIA DGX Spark | NVIDIA DGX Spark · 128 GB | 128 GB | 128 GB | Both on the GPU | $609.00/mo |
| AMD EPYC 7443P w/ NVIDIA RTX 3090 | NVIDIA RTX 3090 · 24 GB | 24 GB | 256 GB | 20b on the GPU; 120b with experts on the CPU | $659.00/mo |
| AMD Ryzen 9 9950X w/ NVIDIA RTX 3050 | NVIDIA RTX 3050 · 6 GB | 6 GB | 192 GB | Experts on the CPU; 120b with experts on the CPU | $699.00/mo |
| AMD Dual EPYC 7702 w/ NVIDIA RTX 3050 | NVIDIA RTX 3050 · 6 GB | 6 GB | 256 GB | Experts on the CPU; 120b with experts on the CPU | $749.00/mo |
| AMD Ryzen 9 9950X w/ NVIDIA RTX 5090 | NVIDIA RTX 5090 · 32 GB | 32 GB | 64 GB | 20b on the GPU | $789.00/mo |
| AMD Ryzen 9 9950X w/ NVIDIA RTX 5090 | NVIDIA RTX 5090 · 32 GB | 32 GB | 96 GB | 20b on the GPU; 120b with experts on the CPU | $829.00/mo |
| AMD Dual EPYC 7702 w/ NVIDIA RTX 5070 | NVIDIA RTX 5070 · 12 GB | 12 GB | 256 GB | Experts on the CPU; 120b with experts on the CPU | $859.00/mo |
| AMD EPYC 7702 w/ 4x NVIDIA RTX 3090 | 4× NVIDIA RTX 3090 · 24 GB each | 96 GB | 128 GB | Both on the GPU | $929.00/mo |
| AMD EPYC 7443P w/ 4x NVIDIA V100 16GB | 4× NVIDIA V100 · 16 GB each | 64 GB | 128 GB | 20b on the GPU; 120b with experts on the CPU | $1,059.00/mo |
| AMD EPYC 7443P w/ 4x NVIDIA V100 32GB | 4× NVIDIA V100 · 32 GB each | 128 GB | 128 GB | Both on the GPU | $1,059.00/mo |
| AMD EPYC 7443P w/ 4x NVIDIA V100 | 4× NVIDIA V100 | — | 256 GB | — | $1,189.00/mo |
| Intel Dual Xeon Platinum 8260 w/ 8x NVIDIA V100 | 8× NVIDIA V100 · 32 GB each | 256 GB | 1 TB | Both on the GPU | $1,319.00/mo |
| 2x NVIDIA DGX Spark | 2× NVIDIA DGX Spark · 128 GB each | 256 GB | 256 GB | Both on the GPU | $1,449.00/mo |
| AMD EPYC 9B14 w/ 2x NVIDIA RTX 5090 | 2× NVIDIA RTX 5090 · 32 GB each | 64 GB | 384 GB | 20b on the GPU; 120b with experts on the CPU | $2,639.00/mo |
| AMD EPYC 9355 w/ NVIDIA RTX PRO 6000 | NVIDIA RTX PRO 6000 · 96 GB | 96 GB | 768 GB | Both on the GPU | $2,639.00/mo |
| AMD EPYC 9254 w/ 4x NVIDIA RTX 5090 | 4× NVIDIA RTX 5090 · 32 GB each | 128 GB | 384 GB | Both on the GPU | $3,819.00/mo |
| Intel Dual Xeon Gold 6338N w/ 8x Intel Gaudi 2 | 8× Intel Gaudi 2 · 96 GB each | 768 GB | 1 TB | Both 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.0andtop_p=1.0. - Harmony format: gpt-oss must be prompted in OpenAI's harmony format. Ollama, llama.cpp with
--jinjaand vLLM handle it for you; if you build prompts yourself, use theopenai-harmonypackage. - A chat interface: point Open WebUI at Ollama or at the OpenAI-compatible address of llama.cpp or vLLM.