Views
No views yet
| Parameters | ~303M |
| Architecture | LLaMA-style decoder (RoPE, RMSNorm, SwiGLU, pre-norm) |
| Layers | 24 |
| Hidden size | 1024 |
| Attention heads | 16 (GQA, 4 KV heads) |
| Head dim | 64 |
| FFN size | 2816 |
| Vocab | 32,000 (custom SentencePiece BPE) |
| Context length | 1024 |
| Tied embeddings | Yes |
| Precision | fp16 |
LlamaForCausalLM, so it loads with standard 🤗 Transformers.Total training tokens are on the order of a few billion — far fewer than models like SmolLM/Pythia (hundreds of billions). This is a hobbyist/research model; capability scales with tokens, and this one is intentionally token-limited. (4.7B)
1from transformers import AutoModelForCausalLM, AutoTokenizer
2import torch
3
4tok = AutoTokenizer.from_pretrained("your-username/tinybrainbot-303m-base")
5model = AutoModelForCausalLM.from_pretrained("your-username/tinybrainbot-303m-base", torch_dtype=torch.float16)
6
7ids = tok("The water cycle is the process by which", return_tensors="pt").input_ids
8out = model.generate(ids, max_new_tokens=40, do_sample=True, temperature=0.6, top_p=0.9, repetition_penalty=1.2)
9print(tok.decode(out[0], skip_special_tokens=True))