Views
No views yet
gpt-oss-46b.| Tasks | Metric | gpt-oss-20b | gpt-oss-46b | Improvement |
|---|---|---|---|---|
| GSM8K (0-shot) | Exact Match (flexible) | 0.2290 | 0.1638 | -28.47% |
| LAMBADA (OpenAI) | Accuracy | 0.2038 | 0.2668 | +30.91% |
[!NOTE] This model card is dedicated to the mediumgpt-oss-46bmodel. Check outgpt-oss-20bfor the smaller model. Check outgpt-oss-120bfor the larger model.
gpt-oss with Transformers. If you use the Transformers chat template, it will automatically apply the harmony response format. If you use model.generate directly, you need to apply the harmony format manually using the chat template or use our openai-harmony package.pip install -U transformers kernels torch 1from transformers import pipeline
2import torch
3
4model_id = "Jo1uck/gpt-oss-46b"
5
6pipe = pipeline(
7 "text-generation",
8 model=model_id,
9 torch_dtype="auto",
10 device_map="auto",
11)
12
13messages = [
14 {"role": "user", "content": "Explain quantum mechanics clearly and concisely."},
15]
16
17outputs = pipe(
18 messages,
19 max_new_tokens=256,
20)
21print(outputs[0]["generated_text"][-1])Transformers Serve to spin up a OpenAI-compatible webserver:transformers serve
transformers chat localhost:8000 --model-name-or-path Jo1uck/gpt-oss-46b1uv pip install --pre vllm==0.10.1+gptoss \
2 --extra-index-url https://wheels.vllm.ai/gpt-oss/ \
3 --extra-index-url https://download.pytorch.org/whl/nightly/cu128 \
4 --index-strategy unsafe-best-match
5
6vllm serve Jo1uck/gpt-oss-46bgpt-oss-120b run on a single 80GB GPU (like NVIDIA H100 or AMD MI300X) and the gpt-oss-46b model run within 16GB of memory. All evals were performed with the same MXFP4 quantization.