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 131K Public 4090 277.0 yes AVAILABLE chat

API access to gpt-oss-20b endpoints

curl https://chat.immers.cloud/v1/endpoints/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/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/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)
# linux
export ANTHROPIC_BASE_URL=https://chat.immers.cloud/v1/endpoints/generate/
export ANTHROPIC_API_KEY=USER_API_KEY
export ANTHROPIC_MODEL=gpt-oss-20b

# windows (ps)
[Environment]::SetEnvironmentVariable("ANTHROPIC_BASE_URL", "https://chat.immers.cloud/v1/endpoints/generate/", "User")
[Environment]::SetEnvironmentVariable("ANTHROPIC_AUTH_TOKEN", "USER_API_KEY", "User")
[Environment]::SetEnvironmentVariable("ANTHROPIC_MODEL", "gpt-oss-20b", "User")
# linux
export OPENAI_BASE_URL=https://chat.immers.cloud/v1/endpoints/generate/
export OPENAI_API_KEY=USER_API_KEY
export OPENAI_MODEL=gpt-oss-20b

# windows (ps)
[Environment]::SetEnvironmentVariable("OPENAI_BASE_URL", "https://chat.immers.cloud/v1/endpoints/generate/", "User")
[Environment]::SetEnvironmentVariable("OPENAI_API_KEY", "USER_API_KEY", "User")
[Environment]::SetEnvironmentVariable("OPENAI_MODEL", "gpt-oss-20b", "User")

Private endpoint

An endpoint is a server with pre-installed software that automatically downloads neural network weights and launches an OpenAI-compatible API to handle incoming requests.

A private endpoint is created within the user's project, belongs exclusively to the user, and is billed per server configuration in accordance with the infrastructure pricing.

We recommend creating private endpoints when you need to:

  • achieve maximum endpoint performance,
  • access the full context window for processing large requests and conversations,
  • ensure maximum security by processing data in a dedicated, isolated environment.

Recommended server configurations for creating a private inference endpoint gpt-oss-20b

Prices:
Name GPU Price, hour TPS Max Concurrency
rtx4090-1.16.32.160
131,072.0
1 $1.02 277.00 2.002 Launch
rtx5090-1.16.64.160
131,072.0
1 $1.59 3.766 Launch
h100-1.16.64.160
131,072.0
1 $3.83 16.479 Launch
h100nvl-1.16.96.160
131,072.0
1 $4.11 20.268 Launch
h200-1.16.128.160
131,072.0
1 $4.74 32.990 Launch
h200-2.24.256.160.nvlink
131,072.0
tensor
2 $9.40 70.053 Launch
Prices:
Name GPU Price, hour TPS Max Concurrency
teslaa10-4.12.48.160
131,072.0
tensor
4 $1.57 9.932 Launch
teslaa100-1.16.64.160
131,072.0
1 $2.37 10.051 Launch
rtx3090-4.16.64.160
131,072.0
tensor
4 $2.89 11.192 Launch
rtx5090-2.16.64.160
131,072.0
tensor
2 $2.93 4.030 Launch
rtx3090-4.16.128.160.nvlink
131,072.0
tensor
4 $3.01 11.192 Launch
rtx4090-4.16.64.160
131,072.0
tensor
4 $3.60 11.144 Launch
h100-1.16.64.160
131,072.0
1 $3.83 9.195 Launch
h100nvl-1.16.96.160
131,072.0
1 $4.11 12.984 Launch
teslaa100-2.24.96.160.nvlink
131,072.0
tensor
2 $4.61 32.492 Launch
h200-1.16.128.160
131,072.0
1 $4.74 25.706 Launch
h200-2.24.256.160.nvlink
131,072.0
tensor
2 $9.40 62.769 Launch
Prices:
Name GPU Price, hour TPS Max Concurrency
teslaa2-4.32.128.160
131,072.0
tensor
4 $1.26 2.470 Launch
teslaa10-4.12.48.160
131,072.0
tensor
4 $1.57 11.858 Launch
teslaa100-1.16.64.160
131,072.0
1 $2.37 185.00 8.428 Launch
rtx3090-4.16.64.160
131,072.0
tensor
4 $2.89 204.36 13.118 Launch
rtx5090-2.16.64.160
131,072.0
tensor
2 $2.93 4.832 Launch
rtx3090-4.16.128.160.nvlink
131,072.0
tensor
4 $3.01 13.118 Launch
rtx4090-4.16.64.160
131,072.0
tensor
4 $3.60 13.070 Launch
h100-1.16.64.160
131,072.0
1 $3.83 9.416 Launch
h100nvl-1.16.96.160
131,072.0
1 $4.11 257.67 13.204 Launch
teslaa100-2.24.96.160.nvlink
131,072.0
tensor
2 $4.61 33.294 Launch
h200-1.16.128.160
131,072.0
1 $4.74 25.926 Launch
h200-2.24.256.160.nvlink
131,072.0
tensor
2 $9.40 63.504 Launch

Related models

Need help?

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

We use cookies and web analytics services to ensure the proper functioning of the website, analyze web-site traffic, and improve the quality of our services.
By continuing to use the website, you consent to the Privacy Policy and consent to the processing of cookie files and technical data.