nanoGPT Shakespeare character model
A small character-level GPT trained on Shakespeare using Andrej Karpathy's nanoGPT implementation.
Architecture
This is a nanoGPT decoder-only Transformer trained from scratch on the Shakespeare character-level dataset.
The exact architecture parameters are stored in ckpt.pt
under model_args.
Files
ckpt.pt- trained model checkpointmodel.py- nanoGPT model architecturemeta.pkl- character vocabularyrun.py- minimal inference exampletrain_shakespeare_char.py- training configuration
Run locally
pip install torch numpy
python run.py
Training
Based on:
https://github.com/karpathy/nanoGPT
The model was trained using the Shakespeare character-level dataset.
Notes
This repository contains a native nanoGPT checkpoint rather than a Hugging Face Transformers PreTrainedModel.
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support