install
pip install torch numpy transformers datasets tiktoken wandb tqdm
Dependencies:
- pytorch
- numpy
transformersfor huggingface transformersdatasetsfor huggingface datasets (preprocess OpenWebText test and validation bin)tiktokenfor OpenAI's fast BPE codewandbfor optional loggingtqdmfor progress bars
quick start
Inference:
$ python inference.py
Thanks
Zero To Hero series. Specifically, the GPT video is popular if you have some prior language modeling context.