Downloads · 30 days
0
nayan90k/slm-question-gen-sft
slm-question-gen-sft is a machine learning model from nayan90k. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
A 114-million-parameter Small Language Model fine-tuned to generate educational questions from a given passage of text.
Downloads · 30 days
0
Access
Public
Updated Apr 18, 2026
Repo size
913 MB
Likes
0
Public
Click a slice to open those files.
.pt913 MB · 100%
From the Hugging Face model README
A 114-million-parameter Small Language Model fine-tuned to generate educational questions from a given passage of text.
r50k_base + 3 special tokens (50,260 total)Evaluated on SQuAD v2 validation set (50 samples):
| Metric | Score |
|---|---|
| BERTScore Precision | 0.8972 |
| BERTScore Recall | 0.8920 |
| BERTScore F1 | 0.8945 |
from src.inference.generate import load_model, generate_from_text
model, enc, device = load_model()
questions = generate_from_text(
"Photosynthesis is the process by which green plants prepare food using sunlight.",
question_type="short_answer",
model=model,
enc=enc,
device=device,
temperature=0.0,
)
print(questions[0])
This model uses the tiktoken library with the r50k_base encoding, plus <|im_start|>, <|im_end|>, and <|pad|> tokens.