Downloads · 30 days
7
11% of all-time downloads
ujjwaljha/Safar-1.0
Safar-1.0 is a machine learning model from ujjwaljha. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Safar-1.0 is a fine-tuned GPT-2 Medium (345M parameters) model trained on general English conversations and Computer Science educational content.
Downloads · 30 days
7
11% of all-time downloads
All-time downloads
66
Public
Parameters
355M
1.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.4 GB · 100%
From the Hugging Face model README
Safar-1.0 is a fine-tuned GPT-2 Medium (345M parameters) model trained on general English conversations and Computer Science educational content.
Evaluated using EleutherAI lm-eval-harness (0-shot):
Performance is comparable to GPT-2 Medium baseline with minor improvements in reasoning consistency.
The model was fine-tuned on a mixture of open datasets including:
Safar-1.0 is designed for:
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "ujjwaljha/Safar-1.0"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)
prompt = "Explain binary search in simple terms."
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_length=100)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
💬 Chat Model (Instruction-style fine-tuned GPT-2)
Built and trained by Ujjwal Jha.