A 100.7M-parameter decoder-only language model, an instruction-tuned chat model: pretrained from scratch, then fine-tuned on conversations (supervised fine-tuning).
| Architecture | Llama-style: RMSNorm, RoPE, SwiGLU MLP, grouped-query attention, tied embeddings |
| Layers / width | 12 layers, d_model 768, MLP 2048 |
| Heads | 12 query heads, 4 key/value heads |
| Context length | 1024 tokens |
| Vocabulary | 32,768-token byte-level BPE, trained on the pretraining data |
| Pretraining | 9,537 steps, 5.00B tokens, best validation loss 3.036 |
| Chat fine-tuning | 5,094 steps (2 epochs) on HuggingFaceTB/smol-smoltalk, lr 0.0002 |
Pretraining: FineWeb-Edu (sample-10BT), licensed ODC-By 1.0 by Hugging Face. Chat fine-tuning: HuggingFaceTB/smol-smoltalk (smol-smoltalk, Apache-2.0).
<|system|>optional system prompt<|end|><|user|>question<|end|><|assistant|>answer<|end|>
tokenizer.apply_chat_template builds this for you.
from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("ashokku/at-neo-100m-chat")
model = AutoModelForCausalLM.from_pretrained("ashokku/at-neo-100m-chat")
messages = [{"role": "user", "content": "Give me three tips for better sleep."}]
ids = tok.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt", return_dict=True)
out = model.generate(**ids, max_new_tokens=200)
print(tok.decode(out[0][ids["input_ids"].shape[1]:], skip_special_tokens=True))
Small model: it follows the chat format and gives relevant answers, but it often gets facts, math and multi-step reasoning wrong, and it has not been safety-tuned (no preference tuning). Not suitable for production use without further evaluation.