---
base_model: openai/gpt-oss-20b
license: apache-2.0
model_creator: openai
model_name: gpt-oss-20b
quantized_by: Second State Inc.
pipeline_tag: text-generation
library_name: transformers
---
# gpt-oss-20b-GGUF
## Original Model
[openai/gpt-oss-20b](https://huggingface.co/openai/gpt-oss-20b)
## Run with LlamaEdge
- LlamaEdge version: [v0.25.0](https://github.com/LlamaEdge/LlamaEdge/releases/tag/0.25.0) and above ([0.25.1](https://github.com/LlamaEdge/LlamaEdge/releases/tag/0.25.1)+ with tool call support)
- Prompt template
  - Prompt type: `gpt-oss`
  - Prompt string
    ```text
    <|start|>system<|message|>
    You are ChatGPT, a large language model trained by OpenAI.
    Knowledge cutoff: 2024-06
    Current date: 2025-08-06
    Reasoning: medium
    # Valid channels: analysis, commentary, final. Channel must be included for every message.
    <|end|>
    <|start|>user<|message|>Hello!<|end|>
    <|start|>assistant<|channel|>final<|message|>Hi there!<|end|>
    <|start|>user<|message|>What's your favorite color?<|end|>
    <|start|>assistant
    ```
- Context size: `128000`
- Run as LlamaEdge service
  ```bash
  wasmedge --dir .:. --nn-preload default:GGML:AUTO:gpt-oss-20b-MXFP4_MOE.gguf \
    llama-api-server.wasm \
    --model-name gpt-oss-20b \
    --prompt-template gpt-oss \
    --ctx-size 128000
  ```
*Quantized with llama.cpp b6115*