Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
generalMG authored Jul 21, 2024
1 parent ff04a6e commit a4f7153
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,35 @@ This repository contains scripts for training a GPT model using the MLX library

1. Clone the repository:

```git clone https://github.com/generalMG/nanoGPT_mlx.git
```
git clone https://github.com/generalMG/nanoGPT_mlx.git
```

## Data Preparation

The prepare.py script downloads and processes the Tiny Shakespeare dataset.

1. Navigate to the data directory:

```
cd data/shakespeare
```

2. Run the script:

```
python prepare.py
```

## Training

The train.py script trains the GPT model using the MLX library.

1. Run the training script:

```
python train.py
```

Note: The code was taken from https://github.com/vithursant/nanoGPT_mlx and some edits were made in order to convert the code to full mlx support.
The code was written for learning purposes.

0 comments on commit a4f7153

Please sign in to comment.