DDDI - Training Very Small Language Models On-Device
nanoGPT:
Step-by-step instructions for Apple Silicon: https://til.simonwillison.net/llms/nanogpt-shakespeare-m2
You will need pip (https://pip.pypa.io/en/stable/installation/) and homebrew (https://brew.sh/)
github repo: https://github.com/karpathy/nanoGPT
Other resources:
Little Language Machine https://lm.gen-ai.fi/workspace/home
nanoChat: https://github.com/karpathy/nanochat
transformers.js examples: https://github.com/huggingface/transformers.js-examples
transformers.js docs: https://huggingface.co/docs/transformers.js/index
Research papers:
If you have further questions, email me at luismn@upenn.edu.