Downloads · 30 days
0
mtmx/gpt2_124M_1BTokens
gpt2_124M_1BTokens is a machine learning model from mtmx. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
This is a GPT-2 model trained from scratch on [your dataset].
Downloads · 30 days
0
Access
Public
Updated Nov 27, 2025
Repo size
24.7 GB
Likes
0
Public
Click a slice to open those files.
.pt24.7 GB · 100%
From the Hugging Face model README
This is a GPT-2 model trained from scratch on [your dataset].
import torch
# Load checkpoint
checkpoint = torch.load('model_hf_09000.pt') #current saved checkpoint, to be updated after fully training
config = checkpoint['config']
# Initialize model
from your_model_file import GPT # Your GPT class
model = GPT(config)
model.load_state_dict(checkpoint['model'])
model.eval()
# Generate text
# ... your generation code ...
Trained using custom GPT-2 implementation following Andrej Karpathy's approach.