Examples in the MLX framework
mlx
Go to file
2023-11-29 08:17:26 -08:00
mnist a few examples 2023-11-29 08:17:26 -08:00
transformer_lm a few examples 2023-11-29 08:17:26 -08:00
whisper a few examples 2023-11-29 08:17:26 -08:00
.gitignore a few examples 2023-11-29 08:17:26 -08:00
.pre-commit-config.yaml a few examples 2023-11-29 08:17:26 -08:00
LICENSE Initial commit 2023-11-28 15:37:50 -08:00
README.md a few examples 2023-11-29 08:17:26 -08:00

Transformer LM

This is an example of a decoder-only Transformer LM. The only dependency is MLX.

Run the example on the GPU with:

python main.py --gpu

By default the dataset is the PTB corpus. Choose a different dataset with the --dataset option.

To run the PyTorch, Jax or TensorFlowexamples install the respective framework.