mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-10-30 01:58:09 +08:00
b243c1d8f442d2b94d03131613cd311baaad0982
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.
Languages
Python
83.5%
Jupyter Notebook
16.1%
Swift
0.4%