Skip to content

say4n/mlxgpt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mlxgpt

a small gpt-2 implementation in apple's mlx. the script loads gpt-2 weights through hugging face transformers, maps them into the mlx model, and runs cached text generation with temperature and top-k sampling.

run

uv run model.py

About

learning apple's mlx with a gpt, the gpt!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages