gpt-oss-20b

reasoning

The GPT-OSS-20B model represents a remarkable breakthrough in compact language modeling, demonstrating that size does not always dictate performance. With 20.9 billion total parameters and only 3.6 billion activated per token, it achieves exceptional efficiency, running on devices with as little as 16GB of memory—enabled by innovative native MXFP4 quantization. The architecture consists of 24 layers, each equipped with 32 experts, of which only the top-4 are activated per token, ensuring an optimal balance between computational performance and hardware accessibility. The model inherits the same key architectural optimizations as its larger counterpart: alternating attention patterns (full and windowed), Grouped Query Attention (GQA), rotary position embeddings, and learned attention biases, all implemented in a significantly more compact form factor.

The technical sophistication of GPT-OSS-20B is evident in its ability to generate extremely long reasoning chains—averaging over 20,000 CoT (Chain-of-Thought) tokens per problem on the AIME benchmark—enabling it to compete with significantly larger models. On high-level mathematical reasoning tasks such as AIME 2025, it achieves a remarkable accuracy of 98.7%, surpassing OpenAI's o3-mini (86.5%). In programming tasks, the model reaches an Elo rating of 2516 on Codeforces and 60.7% on SWE-Bench Verified. On HealthBench, it scores 42.5%, outperforming both OpenAI o1 (41.8%) and o3-mini (37.8%), indicating strong potential for medical research and clinical applications.

The practical value of GPT-OSS-20B lies in its combination of versatility and accessibility under the permissive Apache 2.0 license. Trained with the same CoT and reinforcement learning (RL) techniques as OpenAI’s o3 series, it supports a full suite of agent capabilities—including enterprise-grade tool use (web search, Python script execution in sandboxed environments, and arbitrary developer-defined function calls). Remarkably, thanks to native MXFP4 quantization, the entire model fits within just 12.8 GiB of GPU memory. This makes GPT-OSS-20B ideal for local deployment, rapid prototyping, and resource-constrained environments where a fine balance between advanced AI capabilities and hardware limitations is required.


Announce Date: 05.08.2025
Parameters: 21B
Experts: 32
Activated at inference: 4B
Context: 132K
Layers: 24, using full attention: 12
Attention Type: Sliding Window Attention
Developer: OpenAI
Transformers Version: 4.55.0.dev0
License: Apache 2.0

Public endpoint

Use our pre-built public endpoints for free to test inference and explore gpt-oss-20b capabilities. You can obtain an API access token on the token management page after registration and verification.
Model Name Context Type GPU TPS Tooling Status Link
openai/gpt-oss-20b 131,072.0 Public RTX4090 245.00 AVAILABLE chat

API access to gpt-oss-20b endpoints

curl https://chat.immers.cloud/v1/endpoints/gpt-oss-20b/generate/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer USER_API_KEY" \
--data-binary @- <<"EOF"
{"model": "gpt-oss-20b", "messages": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Say this is a test"}
], "temperature": 0, "max_tokens": 150
}
EOF
$response = Invoke-WebRequest https://chat.immers.cloud/v1/endpoints/gpt-oss-20b/generate/chat/completions `
-Method POST `
-Headers @{
"Authorization" = "Bearer USER_API_KEY"
"Content-Type" = "application/json; charset=utf-8"
} `
-Body ([System.Text.Encoding]::UTF8.GetBytes((@{
model = "gpt-oss-20b"
messages = @(
@{ role = "system"; content = "You are a helpful assistant." },
@{ role = "user"; content = "Say this is a test" })
} | ConvertTo-Json -Depth 10)))
([System.Text.Encoding]::UTF8.GetString($response.RawContentStream.ToArray()) | ConvertFrom-Json).choices[0].message.content
#!pip install OpenAI --upgrade

from openai import OpenAI

client = OpenAI(
api_key="USER_API_KEY",
base_url="https://chat.immers.cloud/v1/endpoints/gpt-oss-20b/generate/",
)

chat_response = client.chat.completions.create(
model="gpt-oss-20b",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Say this is a test"},
]
)
print(chat_response.choices[0].message.content)

Private server

Rent your own physically dedicated instance with hourly or long-term monthly billing.

We recommend deploying private instances in the following scenarios:

  • maximize endpoint performance,
  • enable full context for long sequences,
  • ensure top-tier security for data processing in an isolated, dedicated environment,
  • use custom weights, such as fine-tuned models or LoRA adapters.

Recommended server configurations for hosting gpt-oss-20b

Prices:
Name GPU Price, hour TPS Max Concurrency
teslaa10-1.16.32.160
131,072.0
1 $0.53 1.797 Launch
teslat4-2.16.32.160
131,072.0
tensor
2 $0.54 2.672 Launch
teslaa2-2.16.32.160
131,072.0
tensor
2 $0.57 2.695 Launch
rtx3090-1.16.24.160
131,072.0
1 $0.83 2.103 Launch
rtx4090-1.16.32.160
131,072.0
1 $1.02 2.092 Launch
rtx2080ti-4.16.32.160
131,072.0
tensor
4 $1.12 4.387 Launch
rtxa5000-2.16.64.160.nvlink
131,072.0
tensor
2 $1.23 7.251 Launch
rtx5090-1.16.64.160
131,072.0
1 $1.59 4.349 Launch
rtx3080-4.16.64.160
131,072.0
tensor
4 $1.82 3.291 Launch
teslaa100-1.16.64.160
131,072.0
1 $2.37 18.162 Launch
h100-1.16.64.160
131,072.0
1 $3.83 18.142 Launch
h100nvl-1.16.96.160
131,072.0
1 $4.11 22.153 Launch
teslaa100-2.24.96.160.nvlink
131,072.0
tensor
2 $4.61 39.981 Launch
h200-1.16.128.160
131,072.0
1 $4.74 35.623 Launch
h200-2.24.256.160.nvlink
131,072.0
tensor
2 $9.40 74.902 Launch
Prices:
Name GPU Price, hour TPS Max Concurrency
teslaa10-4.12.48.160
131,072.0
tensor
4 $1.57 9.791 Launch
rtxa5000-4.16.128.160.nvlink
131,072.0
tensor
4 $2.34 9.791 Launch
teslaa100-1.16.64.160
131,072.0
1 $2.37 9.794 Launch
rtx3090-4.16.64.160
131,072.0
tensor
4 $2.89 11.013 Launch
rtx5090-2.16.64.160
131,072.0
tensor
2 $2.93 3.987 Launch
rtx4090-4.16.64.160
131,072.0
tensor
4 $3.60 10.967 Launch
h100-1.16.64.160
131,072.0
1 $3.83 9.773 Launch
h100nvl-1.16.96.160
131,072.0
1 $4.11 13.785 Launch
teslaa100-2.24.96.160.nvlink
131,072.0
tensor
2 $4.61 31.612 Launch
h200-1.16.128.160
131,072.0
1 $4.74 27.254 Launch
h200-2.24.256.160.nvlink
131,072.0
tensor
2 $9.40 66.533 Launch
Prices:
Name GPU Price, hour TPS Max Concurrency
teslaa10-4.12.48.160
131,072.0
tensor
4 $1.57 9.605 Launch
rtxa5000-4.16.128.160.nvlink
131,072.0
tensor
4 $2.34 9.605 Launch
teslaa100-1.16.64.160
131,072.0
1 $2.37 9.608 Launch
rtx3090-4.16.64.160
131,072.0
tensor
4 $2.89 10.827 Launch
rtx5090-2.16.64.160
131,072.0
tensor
2 $2.93 3.801 Launch
rtx4090-4.16.64.160
131,072.0
tensor
4 $3.60 10.781 Launch
h100-1.16.64.160
131,072.0
1 $3.83 9.588 Launch
h100nvl-1.16.96.160
131,072.0
1 $4.11 13.599 Launch
teslaa100-2.24.96.160.nvlink
131,072.0
tensor
2 $4.61 31.426 Launch
h200-1.16.128.160
131,072.0
1 $4.74 27.068 Launch
h200-2.24.256.160.nvlink
131,072.0
tensor
2 $9.40 66.347 Launch

Related models

Need help?

Contact our dedicated neural networks support team at nn@immers.cloud or send your request to the sales department at sale@immers.cloud.