Downloads · 30 days
18
14% of all-time downloads
ShahzebKhoso/GPT-OSS-20B-AceReason-Math
GPT-OSS-20B-AceReason-Math is a text generation model from ShahzebKhoso. Use it when you need the model to write or continue text. It is set up for transformers.
- Author: ShahzebKhoso - License: apache-2.0 - Base Model: unsloth/gpt-oss-20b - Frameworks: Unsloth, Hugging Face Transformers
Downloads · 30 days
18
14% of all-time downloads
All-time downloads
127
Public
Parameters
20.9B
12.6 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors12.5 GB · 100%
How the weights are stored.
U820.4B · 95%
From the Hugging Face model README
This model is a finetuned and merged version of GPT-OSS-20B.
It was trained on the nvidia/AceReason-Math for solving mathematical problems.
Training used LoRA adapters with Unsloth for efficient optimization, then merged back into the base model using save_pretrained_merged.
Compared to the base:
You can use this model as a chat model with reasoning-style prompts. Example:
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "ShahzebKhoso/GPT-OSS-20B-AceReason-Math"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype="auto", device_map="auto")
messages = [
{"role": "system", "content": "You are a helpful AI that explains mathematical reasoning step by step."},
{"role": "user", "content": "Solve x^5 + 3x^4 - 10 = 3."},
]
inputs = tokenizer.apply_chat_template(
messages,
add_generation_prompt = True,
return_tensors = "pt",
return_dict = True,
reasoning_effort = "medium",
).to(model.device)
outputs = model.generate(**inputs, max_new_tokens=256)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
unsloth/gpt-oss-20b)save_pretrained_merged from UnslothThis model was trained & merged using Unsloth.
<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>