Views
No views yet
| Component | Value |
|---|---|
| Parameters | 54.93M |
| Layers | 12 |
| Hidden Size | 512 |
| Attention Heads | 8 |
| Intermediate (FFN) | 1408 |
| Vocab Size | 32,000 |
| Max Sequence Length | 512 |
| Position Encoding | RoPE |
| Normalization | RMSNorm |
| Activation | SwiGLU |
| Weight Tying | Yes |
| Parameter | Value |
|---|---|
| Training Steps | 50,000 |
| Tokens | ~100M |
| Batch Size | 32 |
| Learning Rate | 3e-4 |
| Warmup Steps | 2,000 |
| Weight Decay | 0.1 |
| Hardware | NVIDIA RTX 5090 (32GB) |
| Training Time | ~3 hours |
1import torch
2from transformers import AutoTokenizer
3
4# Load tokenizer (uses standard GPT-2 style tokenizer)
5tokenizer = AutoTokenizer.from_pretrained("jonmabe/tiny-llm-54m")
6
7# For custom model loading, see the model files
8# This model uses a custom architecture - see scripts/ for inference code1# Note: This model uses a custom architecture
2# Full inference code available in the repository
3
4prompt = "The history of artificial intelligence"
5# Model generates continuation based on learned Wikipedia patterns1@misc{tiny-llm-54m,
2 author = {jonmabe},
3 title = {Tiny-LLM: A 54M Parameter Language Model},
4 year = {2026},
5 publisher = {Hugging Face},
6 url = {https://huggingface.co/jonmabe/tiny-llm-54m}
7}