Downloads · 30 days
10
24% of all-time downloads
ankitw497/slm-125m-qa
slm-125m-qa is a question answering model from ankitw497. Use it when the input is a question plus a passage. The card lists the license as mit.
A full fine-tune of ankitw497/slm-125m-base (125.8M params, trained from scratch on legal/financial/web text) on a grounded QA dataset — 10,000 question-answer pairs synthesized with Gemini 3.1 Flash Lite from the sam…
Downloads · 30 days
10
24% of all-time downloads
All-time downloads
41
Public
Parameters
126M
503 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors503 MB · 100%
From the Hugging Face model README
A full fine-tune of ankitw497/slm-125m-base (125.8M params, trained from scratch on legal/financial/web text) on a grounded QA dataset — 10,000 question-answer pairs synthesized with Gemini 3.1 Flash Lite from the same pretraining corpus, validated for grounding, and deduplicated.
<|user|>question<|assistant|>answer<|eos|>)This is closed-book fine-tuning — the model was never given the source passage at training or inference time, only the question. At 125.8M parameters it does not have the capacity to reliably memorize facts from a 2.4B-token corpus, so while it has learned the domain's style well, treat specific facts, names, and figures in its answers as unverified. A retrieval-augmented (RAFT-style) setup, where the model is given the relevant source text at inference time rather than relying on memorization, would be the more reliable approach at this model size.
from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("ankitw497/slm-125m-qa")
model = AutoModelForCausalLM.from_pretrained("ankitw497/slm-125m-qa")
prompt = "<|user|>{your question}<|assistant|>"
ids = tok(prompt, return_tensors="pt", return_token_type_ids=False)
out = model.generate(**ids, max_new_tokens=80, repetition_penalty=1.3, no_repeat_ngram_size=3)
print(tok.decode(out[0], skip_special_tokens=True))