Downloads · 30 days
0
triton329/gpt2
gpt2 is a machine learning model from triton329. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
GPT-style language model built from scratch in PyTorch, trained on a subset of WikiText-103 corpus. Model trained on an NVIDIA A100 GPU — full run completes in ~6 minutes.
Downloads · 30 days
0
Access
Public
Updated Jun 22, 2026
Repo size
2.7 GB
Likes
1
Public
Click a slice to open those files.
.pth498 MB · 100%
From the Hugging Face model README
GPT-style language model built from scratch in PyTorch, trained on a subset of WikiText-103 corpus. Model trained on an NVIDIA A100 GPU — full run completes in ~6 minutes.
python -m venv venv && venv\Scripts\activate
pip install -r requirements.txt
python main.py --gpu --tokenizer tiktoken
python inference.py --prompt "Once upon a time" --gpu
Pretrained weights load automatically from triton329/gpt2 on HuggingFace.
Once upon a time . At the early 20th century , though it was seen by the time
in 1864 , it lacks a 1804 Antigua – 5 @-@ class submarine of the hurricane...