Downloads · 30 days
18
6% of all-time downloads
sumitguha13/slm125MLIVE-sft
slm125MLIVE-sft is a text generation model from sumitguha13. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as odc-by.
Instruction fine-tuned (SFT) version of thesreedath/slm-125m-base (125M, LLaMA). Trained on ~8,000 grounded Q&A pairs (RAFT-style: answer from the provided context) synthesized with Gemini 2.5 Flash and grounding-judged.
Downloads · 30 days
18
6% of all-time downloads
All-time downloads
292
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
Instruction fine-tuned (SFT) version of thesreedath/slm-125m-base (125M, LLaMA).
Trained on ~8,000 grounded Q&A pairs (RAFT-style: answer from the provided
context) synthesized with Gemini 2.5 Flash and grounding-judged.
<|system|> <|user|> <|assistant|> special tokens.from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("sumitguha13/slm125MLIVE-sft")
model = AutoModelForCausalLM.from_pretrained("sumitguha13/slm125MLIVE-sft")
prompt = ("<|bos|><|system|>\nYou are a helpful assistant. Answer using only the "
"provided context.\n<|user|>\nContext:\n<PASSAGE>\n\nQuestion: <Q>\n<|assistant|>\n")
ids = tok(prompt, return_tensors="pt", add_special_tokens=False).input_ids
print(tok.decode(model.generate(ids, max_new_tokens=120, repetition_penalty=1.3)[0], skip_special_tokens=True))
Small base model: use a context for grounded answers; generations may be imperfect.