Downloads · 30 days
4
17% of all-time downloads
Anwesha026/fine-tuned-gpt-oss-20b
fine-tuned-gpt-oss-20b is a machine learning model from Anwesha026. 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.
This model is a LoRA fine-tuned adapter built on top of unsloth/gpt-oss-20b-unsloth-bnb-4bit. It specializes in generating empathetic and supportive responses, making it suitable for conversational AI use cases where…
Downloads · 30 days
4
17% of all-time downloads
All-time downloads
24
Public
Repo size
43.8 MB
Likes
0
Public
Click a slice to open those files.
.json27.9 MB · 64%
From the Hugging Face model README
This model is a LoRA fine-tuned adapter built on top of unsloth/gpt-oss-20b-unsloth-bnb-4bit.
It specializes in generating empathetic and supportive responses, making it suitable for conversational AI use cases where emotional awareness is important.
Like most LLMs, this model may:
Use the code below to get started with the model.
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
model_id = "Anwesha026/fine-tuned-gpt-oss-20b"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.bfloat16)
inputs = tokenizer("I feel really lonely lately.", return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=100)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Dataset: facebook/empathetic_dialogues
Batch size (per device): 1
Gradient accumulation steps: 4 → effective batch size = 1 × 4 = 4
Learning rate: 1e-4
Optimizer: AdamW (8-bit)
Weight decay: 0.01
Learning rate scheduler: Linear
Warmup steps: 10
Max training steps: 300
Seed: 3407
Improved empathetic alignment compared to the base model
Some generic/repetitive answers persist
Base model: GPT-OSS-20B (decoder-only transformer, 20B parameters)
Fine-tuning method: LoRA adapters via PEFT
Transformers: 4.x
PEFT: 0.17.1
TRL: latest
Unsloth: latest