Skip to main content

Model guide

GPT-OSS 20B

GPT-OSS 20B is an open-weight text reasoning model for a local application that supports OpenAI’s Harmony format. Its MXFP4 weights are not interchangeable with a generic Q4 conversion. Try a bounded reasoning task first; tool use still requires an application that supplies and executes the tools.

21B total / 3.6B activeReasoning131,072 token contextView the model card →

At a glance

Parameters
21B total / 3.6B active
Accepts
Text
Returns
Text
Published context limit
131,072 tokens
Model format
safetensors · GGUF
Software and download hosts
Ollama · MLX. Follow the exact setup below; this list does not establish support for every format, input type or software version.
Suggested compression
MXFP4
Model-weight download
MXFP4 weights · 12.11 GBlmstudio-community (community conversion)gpt-oss-20b-MXFP4.gguf
Languages
Unknown
License
Apache 2.0

Will it fit?

GPT-OSS 20B · MXFP4 download. Fit depends on your computer, the app you run it in and the conversation length you need.

Check on your computer

Best for

  • Check a constrained schedule in a client that understands Harmony. Inspect the final answer apart from any reasoning the client displays.

Choose something else when

  • Use a vision model when the constraints are in a screenshot rather than supplied as text.

First setup

Check a representative task

Check a final reasoning answer through a Harmony-compatible client.

Three jobs share one machine. Job A takes 4 minutes. Job B takes 7 minutes and can start only after A finishes. Job C takes 3 minutes and can run before A or after B, but not between them. There are no breaks. What is the shortest total time? Give two valid job orders and a brief explanation.

Check the result: The total is 14 minutes. Valid orders are C-A-B and A-B-C. A-C-B violates the explicit restriction, and jobs cannot run in parallel.

Leave room for generated reasoning and compare at the same output limit.

This creates a 4,096-token copy of gpt-oss:20b named gpt-oss-20b-short-context. Save the following as a file named Modelfile in your working folder:

FROM gpt-oss:20b
PARAMETER num_ctx 4096

Then run these commands from that folder:

ollama pull gpt-oss:20b
ollama create gpt-oss-20b-short-context -f ./Modelfile
ollama run gpt-oss-20b-short-context

Run the task check. While the model is loaded, run ollama ps in another terminal and check CONTEXT and PROCESSOR.

The recorded Ollama package is MXFP4: 13.79 GB of model weights. Use Ollama 0.30.0 or a supporting newer release. A Hugging Face GGUF or MLX checkpoint is a separate representation; choose the matching source and runner in the memory calculator.

See Ollama context settings and the Modelfile instructions.

Other models for this task