mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-09-01 12:29:42 +08:00
a few examples
This commit is contained in:
14
transformer_lm/README.md
Normal file
14
transformer_lm/README.md
Normal file
@@ -0,0 +1,14 @@
|
||||
# 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](https://paperswithcode.com/dataset/penn-treebank). Choose a different dataset with the `--dataset` option.
|
||||
|
||||
To run the PyTorch, Jax or TensorFlowexamples install the respective framework.
|
Reference in New Issue
Block a user