Views
No views yet
mrinaalarora/mrinaal-124m-base-v3-mathmix.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-v3-mathmix/model.safetensors/root/.cache/huggingface/hub/models--mrinaalarora--mrinaal-124m-base-v3-mathmix/snapshots/e060aaee7cb502b9fd74820ea68659826a6cce09/model.safetensorsHuggingFaceTB/smol-smoltalk1<|endoftext|>user: ...
2assistant: ...
3user: ...
4assistant: ...
5<|endoftext|>-100, while assistant answer tokens
and the final <|endoftext|> target contribute to loss.everyday-conversations: 1254explore-instruct-rewrite: 1644openhermes-50k: 25287self-oss-instruct: 26402smol-contraints: 19086smol-magpie-ultra-short: 51258smol-summarize-20k: 9117smol-summarize-5k: 1062smollm-rewrite-30k: 14890model.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.1from safetensors.torch import load_file
2
3state_dict = load_file("model.safetensors")1from safetensors.torch import load_file
2from first_llm_pretrain.model import DecoderOnlyTransformer, ModelConfig
3
4config = ModelConfig(
5 vocab_size=50257,
6 block_size=1024,
7 n_layer=12,
8 n_head=12,
9 n_embd=768,
10)
11model = DecoderOnlyTransformer(config)
12model.load_state_dict(load_file("model.safetensors"), strict=False)
13model.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.1<|endoftext|>user: your instruction here
2assistant:<|endoftext|>.