selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

openai logo

gpt-oss-120b

openai·Instruct·released 4 Aug 2025

Apache 2.0117BA5.8BMoE128K ctx ≈70 GB
Your GPU
ollama run gpt-oss:120b
All 7 runners ↓

gpt-oss-120b is an open-weight chat and text generation model from OpenAI, part of the GPT OSS family. It has 116.8B total parameters and uses a mixture-of-experts design with 5.8B active parameters. It accepts text input, produces text output, and supports a 131,072-token context. It is licensed under Apache 2.0, which permits commercial use. The other size listed in the family is gpt-oss-20b.

How much VRAM does gpt-oss-120b need?

At Q4_K_M gpt-oss-120b needs about 70 GB with an 8K context (70 GB at Q4, 230 GB at full precision). Pick your GPU to see what fits and how fast it runs.

--vram
any
--gpus
--quant

Needs: ≈62 GB · Q4_K_M · 8K context — Pick a GPU to check the fit.

Change quant, context or KV cache to compare
Advanced: context 8K · KV cache 16-bit
Context
KV cache

Smallest GPU for each quant and context (KV cache 16-bit)

Quantisation4K8K16K32K64K128K
Q3_K_M
Q4_K_M
Q5_K_M
Q6_K
Q8_0
FP16

≤16 GB card24–32 GB48–96 GBmore

QuantisationQualityWeightsKV cacheTotal
Q2_KHeavy lossSmallest, noticeably worse qualityHeavy loss58 GB file0.6 GB≈62 GB
Q3_K_MNoticeable lossSmall, some quality lossNoticeable loss58 GB file0.6 GB≈62 GB
Q4_K_MrecommendedSmall lossRecommended default for local useSmall loss58 GB file0.6 GB≈62 GB
Q5_K_MNear-losslessNear-lossless for most tasksNear-lossless59 GB file0.6 GB≈63 GB
Q6_KNear-losslessPractically losslessNear-lossless59 GB file0.6 GB≈63 GB
Q8_0LosslessLossless in practice, twice the size of Q4Lossless59 GB file0.6 GB≈63 GB
FP16 / BF16LosslessFull precision, as releasedLossless61 GB file0.6 GB≈65 GB

Estimates for 8K tokens of context: weights + KV cache + runtime overhead. All experts stay in memory, but only the active ones are read per token. Speed assumes memory-bound decoding at your GPU’s bandwidth. Pick a GPU above and the fit column checks every row against it. Weights marked “file” use the real GGUF download size; “est.” rows are computed from the parameter count.

How to pick a quant

Take the biggest quant that fits with room left for context. Q4_K_M is the usual sweet spot. Below Q4 quality drops fast, above Q6 you mostly pay memory for nothing. Big models (70B+, large MoE) tolerate low quants better than small ones.

  • LosslessF16, Q8_0
  • Near-losslessQ6_K, Q5_K_M
  • Small lossQ5_K_S, Q4_K_M, IQ4_NL, IQ4_XS, Q4_K_S
  • Noticeable lossQ4_0, Q3_K_L, Q3_K_M, IQ3_M
  • Heavy lossIQ3_XXS, Q3_K_S, IQ2_M, Q2_K

Typical quality loss, not measured per model. Tiers come from KL divergence against FP16 on Llama 3 8B: llama.cpp perplexity README: LLaMA 3 8B scoreboard (KLD and ΔPPL vs FP16, Wikitext-2); llama.cpp quantize tool: ΔPPL per quant type @ Llama-3-8B

How much context fits?

Model quant
KV cache

At 8K context, Q4_K_M needs ≈62 GB(58 GB weights + 0.6 GB KV cache + 3.4 GB overhead). Pick a GPU above to see how much context fits.

0204060801K2K4K8K16K32K64K128KGB

Weights + overheadKV cache

Can the NVIDIA A100 80GB run gpt-oss-120b? →

Speed vs quality per quant

Smaller quants run faster and fit in less memory, but lose quality.

Q2_KQ3_K_MQ4_K_MQ5_K_MQ6_KQ8_0F16

Fits in VRAMTight fitCPU offload✕ won't runQuality is typical KL divergence vs FP16, not measured for this model.

Real-world speed of gpt-oss-120b

Tokens per second measured by people running it at home. A GPU shows a median once 3 reports agree on the same setup. Reports far from our estimate wait for a review. Measure yours with llama-bench →

No medians yet. Be one of the first 3 to report a setup.

All reports

Run gpt-oss-120b locally

--quantQ4_K_Mdefault; pick your GPU to tailor itunsloth/gpt-oss-120b-GGUF

From the Ollama librarydocs
ollama run gpt-oss:120b

The library build picks its own default quantisation.

Q4_K_M straight from Hugging Facedocs
ollama run hf.co/unsloth/gpt-oss-120b-GGUF:Q4_K_M

Install Ollama

OpenAI-compatible server with a web UIdocs
llama-server -hf unsloth/gpt-oss-120b-GGUF:Q4_K_M

Downloads the GGUF on first run. Installed through llama.app? The same flags work with `llama serve`.

Install llama.cpp

Download with the lms CLIdocs
lms get unsloth/gpt-oss-120b-GGUF@Q4_K_M

Then load it from the LM Studio app or with `lms load`.

Install LM Studio

Apple Silicon with mlx-lmdocs
bash
pip install mlx-lm
mlx_lm.generate --model lmstudio-community/gpt-oss-120b-MLX-8bit --prompt "Hello"

Use `mlx_lm.chat` with the same --model for an interactive chat.

OpenAI-compatible serverdocs
mlx_lm.server --model lmstudio-community/gpt-oss-120b-MLX-8bit --port 8080

API on http://localhost:8080/v1.

Install MLX

Serve an OpenAI-compatible APIdocs
vllm serve openai/gpt-oss-120b
Docker Compose (NVIDIA)docs
yaml
services:
  vllm:
    image: vllm/vllm-openai:latest
    command: openai/gpt-oss-120b
    ports:
      - "8000:8000"
    ipc: host
    volumes:
      - ~/.cache/huggingface:/root/.cache/huggingface
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: all
              capabilities: [gpu]

API on port 8000.

Install vLLM

Serve an OpenAI-compatible APIdocs
sglang serve openai/gpt-oss-120b --host 0.0.0.0 --port 30000
Docker Compose (NVIDIA)docs
yaml
services:
  sglang:
    image: lmsysorg/sglang:latest
    command: sglang serve openai/gpt-oss-120b --host 0.0.0.0 --port 30000
    ports:
      - "30000:30000"
    ipc: host
    volumes:
      - ~/.cache/huggingface:/root/.cache/huggingface
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: all
              capabilities: [gpu]

API on port 30000.

Install SGLang

Chat with the pipeline APIdocs
python
from transformers import pipeline

pipe = pipeline("text-generation", model="openai/gpt-oss-120b", dtype="auto", device_map="auto")
messages = [{"role": "user", "content": "Explain self-hosting in one paragraph."}]
out = pipe(messages, max_new_tokens=512)
print(out[0]["generated_text"][-1]["content"])

Install Transformers

Benchmarks

BenchmarkScoreRankSourceDate
MMLU-Pro80.8%#41 / 409 independentJun 2026
GPQA Diamond80.8%#52 / 104 independentApr 2026
Humanity's Last Exam11.3%#60 / 63 self-reportedAug 2025
SWE-bench Verified52.6%#55 / 57 self-reportedAug 2025
SWE-bench Pro16.2%#46 / 51 independentFeb 2026
LMArena Text1365#39 / 127 independentOct 2026
Aider Polyglot41.8%#8 / 15 independentAug 2025
LiveBench46.09#25 / 29 independentJan 2026

Self-reported scores come from the model card and are not independently verified. Rank is among all models with a score on that benchmark.

Quantised versions and downloads

RepositoryFormatQuantSizeDownloads
unsloth/gpt-oss-120b-unsloth-bnb-4bitSafetensorsBNB-4BIT—4.4K
tiny-random/gpt-oss-mxfp4SafetensorsMXFP4—8.1K
amd/gpt-oss-120b-w-mxfp4-a-fp8SafetensorsMXFP4—4.9K
unsloth/gpt-oss-120b-GGUFGGUFQ2_K63 GB73.8K
unsloth/gpt-oss-120b-GGUFGGUFQ3_K_S63 GB73.8K
unsloth/gpt-oss-120b-GGUFGGUFQ3_K_M63 GB73.8K
unsloth/gpt-oss-120b-GGUFGGUFQ4_063 GB73.8K
unsloth/gpt-oss-120b-GGUFGGUFQ4_163 GB73.8K
unsloth/gpt-oss-120b-GGUFGGUFQ2_K_L63 GB73.8K
unsloth/gpt-oss-120b-GGUFGGUFQ4_K_M63 GB73.8K

About gpt-oss-120b

Welcome to the gpt-oss series, OpenAI’s open-weight models designed for powerful reasoning, agentic tasks, and versatile developer use cases. We’re releasing two flavors of these open models: - gpt-oss-120b — for production, general purpose, high reasoning use cases that fit into a single 80GB GPU (like NVIDIA H100 or AMD MI300X) (117B parameters with 5.1B active parameters) - gpt-oss-20b — for lower latency, and local or specialized use cases (21B parameters with 3.6B active parameters) Both models were trained on our harmony response format and should only be used with the harmony format as it will not work correctly otherwise.

Full model card on Hugging Face →

Other GPT OSS models

Whole family →
openai logo20.9BA4.2BCommercial OK≈13 GB↓ 5.9M

Alternatives to gpt-oss-120b

All alternatives →
poolside logo

Laguna-S-2.1

poolside·Chat

≈72 GB

Laguna S 2.1 is a 118B total parameter Mixture-of-Experts model with 8B activated parameters per token, designed for agentic coding and long-horizon work.

118BA6.1B1M ctx Custom licence
601.3KJul 2026ollama

For more details on how to deploy and use the model - see the Quick Start Guide below!

124BA12B256K ctx nvidia-nemotron-open-model-license
1.1MMar 2026gguf
ornith-ai logo

Ornith-1.5-122B

ornith-ai·Chat

≈75 GB

Chirp Chirp! 🐦 Meet Ornith-1.5-122B: No Tradeoff Between Strong and Fast Stronger. Faster. Leaner. It delivers stronger benchmark results, finishes tasks faster, and produces shorter outputs, bringing better instruction following, stronger task decomposition, and deeper knowledge of real-world…

125BA12.7B256K ctx MIT
219.9KOct 2026ollama
zai-org logo

GLM-4.5-Air

zai-org·Chat

≈67 GB

👋 Join our Discord community. 📖 Check out the GLM-4.5 technical blog , technical report , and Zhipu AI technical documentation . 📍 Use GLM-4.5 API services on Z.ai API Platform (Global) or Zhipu AI Open Platform (Mainland China) . 👉 One click to GLM-4.5 .

110BA15B128K ctx MIT
1.3MJul 2025gguf
inclusionAI logo

Ling-3.0-flash

inclusionAI·Chat

≈81 GB

We're introducing Ling-3.0-flash, our next-generation native hybrid reasoning model. Operating with 124B total and 5.1B active parameters (~12.4% and ~8.1% of our previous 1T-class flagship Ring-2.6-1T), Ling-3.0-flash matches or outperforms its predecessor across key benchmarks.

127BA5.6B256K ctx MIT
9.5KAug 2026gguf
upstage logo

Solar-Open-100B

upstage·Chat

≈63 GB

Solar Open is Upstage's flagship 102B-parameter large language model, trained entirely from scratch and released under the Upstage Solar License (see LICENSE for details).

103BA12.1B128K ctx upstage-solar-license
59KDec 2025gguf

gpt-oss-120b FAQ

How much VRAM does gpt-oss-120b need?
About 70 GB at Q4_K_M with an 8K context. Q8_0 needs about 122 GB and full precision about 230 GB. Longer contexts need more memory for the KV cache.
Can gpt-oss-120b run on the NVIDIA A100 80GB?
Yes. It fits at FP16 / BF16 (about 65 GB), at an estimated 98 tokens/s. It fits comfortably on the Apple M4 Max 40-core (128 GB), RTX PRO 6000 Blackwell, Ryzen AI Max+ 395 (128 GB).
Can I use gpt-oss-120b commercially?
Yes. It is released under Apache 2.0. Permissive: use, modify and sell freely; keep the notice and licence text.
What is the context length of gpt-oss-120b?
131,072 tokens (128K). The full window needs far more memory than an 8K context.
How do I run gpt-oss-120b with Ollama or llama.cpp?
With Ollama: ollama run gpt-oss:120b. With llama.cpp: llama-server -hf unsloth/gpt-oss-120b-GGUF:Q4_K_M, which starts an OpenAI-compatible server.

Data from Hugging Face, the model card and public leaderboards. Memory and speed figures are estimates; real numbers depend on the runtime, context length and drivers. Always check the licence yourself before commercial use.