File size: 1,717 Bytes
cdd012e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
base_model: openai/gpt-oss-120b
license: apache-2.0
model_creator: openai
model_name: gpt-oss-120b
quantized_by: Second State Inc.
pipeline_tag: text-generation
library_name: transformers
---

<!-- header start -->
<!-- 200823 -->
<div style="width: auto; margin-left: auto; margin-right: auto">
<img src="https://github.com/LlamaEdge/LlamaEdge/raw/dev/assets/logo.svg" style="width: 100%; min-width: 400px; display: block; margin: auto;">
</div>
<hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
<!-- header end -->

# gpt-oss-120b-GGUF

## Original Model

[openai/gpt-oss-120b](https://huggingface.co/openai/gpt-oss-120b)

## 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-120b-MXFP4_MOE.gguf \
    llama-api-server.wasm \
    --model-name gpt-oss-120b \
    --prompt-template gpt-oss \
    --ctx-size 128000
  ```

*Quantized with llama.cpp b6115*