Files
mlx-examples/transformer_lm
Awni Hannun 3d62e30b7c Merge pull request #5 from jaglinux/patch-1
Update README.md
2023-12-06 21:07:13 -08:00
..
2023-11-30 11:08:53 -08:00
2023-11-30 11:08:53 -08:00
2023-12-06 15:41:46 -08:00
2023-12-06 00:30:37 -08:00
2023-11-30 11:08:53 -08:00
2023-11-30 11:08:53 -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 TensorFlow examples install the respective framework.