Downloads · 30 days
151
14% of all-time downloads
yiwenX/gpt-oss-20b-multilingual-reasoner
gpt-oss-20b-multilingual-reasoner is a machine learning model from yiwenX. 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 peft. The card lists the license as apache-2.0.
This is a LoRA (Low-Rank Adaptation) fine-tuned model based on openai/gpt-oss-20b.
Downloads · 30 days
151
14% of all-time downloads
All-time downloads
1.1K
Public
Repo size
88.1 MB
Likes
0
Public
Click a slice to open those files.
.safetensors60.2 MB · 68%
From the Hugging Face model README
This is a LoRA (Low-Rank Adaptation) fine-tuned model based on openai/gpt-oss-20b.
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
# Load base model
base_model = AutoModelForCausalLM.from_pretrained(
"openai/gpt-oss-20b",
torch_dtype=torch.float16,
device_map="auto"
)
# Load LoRA adapter
model = PeftModel.from_pretrained(base_model, "yiwenX/gpt-oss-20b-multilingual-reasoner")
# Load tokenizer
tokenizer = AutoTokenizer.from_pretrained("yiwenX/gpt-oss-20b-multilingual-reasoner")
# Generate text
inputs = tokenizer("Hello, how are you?", return_tensors="pt")
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:
adapter_config.json: LoRA configurationadapter_model.safetensors: LoRA weightstokenizer.json: Tokenizer vocabularytokenizer_config.json: Tokenizer configurationspecial_tokens_map.json: Special tokens mappingchat_template.jinja: Chat template for conversation format