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.
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 computerBest 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.
Open LM Studio’s Discover tab, search for lmstudio-community/gpt-oss-20b-GGUF, and download gpt-oss-20b-MXFP4.gguf (MXFP4, 12.11 GB). See the download files. Select the file in Chat, set context to 4,096, then load it. Run the task check. If it will not load, open LM Studio Model Will Not Load.
Open a terminal in the extracted llama.cpp release folder. On Windows, replace ./llama-server below with .\llama-server.exe:
./llama-server -hf lmstudio-community/gpt-oss-20b-GGUF -hff gpt-oss-20b-MXFP4.gguf -c 4096 --host 127.0.0.1 --port 8080
The server downloads the selected model. Wait for the model to load, then open the local chat at http://127.0.0.1:8080. Run the task check and inspect the result against its acceptance criteria. Keep the server terminal open; press Ctrl+C there to stop the server. The file list identifies the exact download. If the command fails: Unknown architecture? Update the runner. Allocation failed? Retry with less context or a smaller weight file.
Load the model, start a fresh chat and time your usual prompt. Record time until the first useful word and time until the full answer. Note the processor, context and output length when comparing another run. Time the final answer as well as the first generated token.
