Skip to content

antbob/gpt-mlx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Building a GPT (Apple MLX version)

Companion notebook to the Let's build GPT: from scratch, in code, spelled out video.

The original version of the notebook is using PyTorch. While Apple MLX is fairly similar API wise, it has some fundamental differences with PyTorch. The idea for this port was to stay as close to the original version as possible while keeping MLX specifics and differences to a minimum so it is easy to follow along and experiment on a Mac when watching the video.

This allows the final, larger model from the video to be trained on M-series Mac in reasonable time e.g. just under an hour on a M4 Pro Mac mini.

About

Building a GPT (Apple MLX version)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors