Downloads · 30 days
0
mogalaman251100/gpt-oss-20b-fine-tuned
gpt-oss-20b-fine-tuned is a machine learning model from mogalaman251100. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
Downloads · 30 days
0
Access
Public
Updated Aug 31, 2025
Repo size
133 B
Likes
0
Public
Click a slice to open those files.
Other1.5 KB · 41%
From the Hugging Face model README
Fine-tuned GPT-OSS model
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
model_name = "your-username/gpt-oss-20b-fine-tuned"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype=torch.float16,
device_map="auto"
)
inputs = tokenizer("Your prompt here", return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=100)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
This model was fine-tuned using Unsloth for efficient training and inference.