Marshmello-8M is a decoder-only GPT language model trained from scratch in
Marshmello — a step-by-step project
that builds transformers from one weight to GPT pretraining, SFT, and 300M scaling on Apple Silicon.
1git clone https://github.com/mohmmedwee/Marshmello.git
2cd Marshmello
3python -m venv .venv && source .venv/bin/activate
4pip install -r requirements.txt huggingface_hub safetensors
5
6# Download weights from this Hub repo into checkpoints/
7python 13_gpt_pretraining/hub/download_from_hub.py --repo-id ostah-1010/Marshmello-8M
8
9# Generate text
10python 13_gpt_pretraining/generate.py --config default --prompt "Database systems"
Full source, training pipeline, and evaluation suite:
https://github.com/mohmmedwee/Marshmello
1Linear model → Attention → Transformer → BPE LM → GPT pretraining
2→ Dataset pipeline → 50M scaling → Evaluation → Instruction dataset
3→ Chat adaptation (18C/18H) → Tiny teacher SFT (18E) → Instruct tuning (18B)
4→ Core routing eval (18J) → General benchmark (18K) → 300M scaling (19A)
Phases 01–19A in the repo walk through every layer of the stack with readable Python.
Base weights live on this Hub repo. Instruct / routing checkpoints (~632 MB each)
are trained locally and documented in the GitHub repo — not uploaded here yet:
1python 18B_marshmello_instruct/chat.py \
2 --checkpoint 18B_marshmello_instruct/checkpoints/best_18j_routing.pt \
3 --prompt "Explain what a database index is" --greedy
Built with the
Marshmello learning project (Phases 01–17).