GPT-OSS 20B
GPT-OSS 20B is a large language model with 20 billion parameters, designed for text generation, conversation, and various natural language processing tasks.
GPT-OSS 20B is a large language model with 20 billion parameters, designed for text generation, conversation, and various natural language processing tasks. This open-source model provides robust performance for a wide range of applications.
Model details
| Category | Details |
|---|---|
| Model Name | GPT-OSS 20B |
| Version | 20B |
| Model Category | Large Language Model (LLM) |
| Size | 20B parameters |
| HuggingFace Model | gpt-oss-20b |
| OpenAI Compatible Endpoint | Chat API Overview |
| License | Apache 2.0 |
Capabilities
| Feature | Details |
|---|---|
| Tool Calling | ✅ |
| Context Length | 131k tokens |
| Supports LoRA | ❌ |
| Input data | Text |
Usage
Basic Chat Completion
This is a basic chat completion example using this model:
Response:
| Property | Type | Description |
|---|---|---|
stream | boolean | Indicates whether to stream the response. |
messages[] | array | Array of message objects. |
messages[].role | string | The role of the message sender. |
messages[].content | string | The content of the message. |
Tool Calling Example
Response:
Advanced Usage with Parameters
This example shows how to use the model with additional parameters:
| Property | Type | Description |
|---|---|---|
stream | boolean | Indicates whether to stream the response. |
max_tokens | integer | Maximum number of tokens to generate. |
temperature | number | Controls randomness in the output (0.0 to 2.0). |
top_p | number | Controls diversity via nucleus sampling (0.0 to 1.0). |
messages[] | array | Array of message objects. |
messages[].role | string | The role of the message sender. |
messages[].content | string | The content of the message. |