A lightweight language model training and inference framework.
- Language model training with multiple optimizers (AdamW, Muon, Lion, Sophia)
- Custom tokenizer with Rust-based BPE implementation
- Inference engine with KV caching
- Chat interface (CLI and web)
- Evaluation tasks (ARC, GSM8K, HumanEval, MMLU, SmolTalk)
# Install dependencies
pip install -r requirements_microlm.txt
# Train a model
python scripts/base_train.py
# Run chat interface
python scripts/chat_cli.pymicrolm/- Core language model implementationnanochat/- Training and inference utilitiesscripts/- Training and evaluation scriptstasks/- Benchmark evaluation tasksrustbpe/- Rust-based tokenizer