Downloads · 30 days
0
mrinaalarora/mrinaal-124m-instruct-smoltalk-50k
mrinaal-124m-instruct-smoltalk-50k is a machine learning model from mrinaalarora. 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.
124M-parameter decoder-only causal language model instruction-tuned from mrinaalarora/mrinaal-124m-base-v2.
Downloads · 30 days
0
Access
Public
Updated May 12, 2026
Parameters
124M
494 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors494 MB · 100%
From the Hugging Face model README
124M-parameter decoder-only causal language model instruction-tuned from
mrinaalarora/mrinaal-124m-base-v2.
This checkpoint is supervised fine-tuned on the first 50000 valid examples from
HuggingFaceTB/smol-smoltalk,
using the dataset's messages column and assistant-token-only loss masking.
| param | value |
|---|---|
| parameters | ~124M |
| layers | 12 |
| hidden size | 768 |
| attention heads | 12 |
| context length | 1024 tokens |
| vocab size | 50257 |
| positional encoding | RoPE |
| norm | RMSNorm |
| activation | SwiGLU |
| tokenizer | GPT-2 tokenizer |
mrinaalarora/mrinaal-124m-base-v2/model.safetensors/root/.cache/huggingface/hub/models--mrinaalarora--mrinaal-124m-base-v2/snapshots/d94b2e9f829173b824705eca148febac28a4198c/model.safetensorsHuggingFaceTB/smol-smoltalkTraining examples use a simple GPT-2-tokenizer-compatible chat format:
<|endoftext|>user: ...
assistant: ...
user: ...
assistant: ...
<|endoftext|>
Labels are masked so that user/prompt/separator tokens use -100, while assistant answer tokens
and the final <|endoftext|> target contribute to loss.
everyday-conversations: 406explore-instruct-rewrite: 572openhermes-50k: 8609self-oss-instruct: 8716smol-contraints: 6316smol-magpie-ultra-short: 17067smol-summarize-20k: 2997smol-summarize-5k: 339smollm-rewrite-30k: 4978model.safetensors — best checkpoint converted from best.ptrun_summary.json — full training run metadatalast.pt was not uploaded; this repo intentionally publishes the best checkpoint only.from safetensors.torch import load_file
state_dict = load_file("model.safetensors")
To use with the original model class, clone the training repo and:
from safetensors.torch import load_file
from first_llm_pretrain.model import DecoderOnlyTransformer, ModelConfig
config = ModelConfig(
vocab_size=50257,
block_size=1024,
n_layer=12,
n_head=12,
n_embd=768,
)
model = DecoderOnlyTransformer(config)
model.load_state_dict(load_file("model.safetensors"), strict=False)
model.eval()
strict=False is used because the safetensors conversion removes the duplicate lm_head.weight
tensor and keeps token_embedding.weight; the original model class ties those weights.
For instruction-style inference, prompt with:
<|endoftext|>user: your instruction here
assistant:
Stop generation when the model emits <|endoftext|>.