Views
No views yet
mrinaalarora/mrinaal-124m-base-v2.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-smoltalk1<|endoftext|>user: ...
2assistant: ...
3user: ...
4assistant: ...
5<|endoftext|>-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.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|>.