Downloads · 30 days
0
shamashel/bad-gpt
bad-gpt is a text generation model from shamashel. Use it when you need the model to write or continue text. The card lists the license as mit.
Based on the Let's build GPT video from Andrej Karpathy.
Downloads · 30 days
0
Access
Public
Updated May 16, 2024
Repo size
1.3 GB
Likes
0
Public
Click a slice to open those files.
.pth1.1 GB · 100%
From the Hugging Face model README
Based on the Let's build GPT video from Andrej Karpathy.
This is just an attempt to recreate the transformer Andrej made in his video with the goal of learning more about torch, transformers, and neural networks in general.
To run, make sure python 3.10 and poetry are installed. You can then run poetry install to get the dependencies (it's just torch and numpy).
Finally, you can run the code with poetry run python ./main.py
Note that the first run will train the model and then save the trained weights to model.pth. Subsequent runs will load these weights.