Downloads · 30 days
8
12% of all-time downloads
Sherwinroger002/gpt-124m-param-600m-tokens
gpt-124m-param-600m-tokens is a text generation model from Sherwinroger002. Use it when you need the model to write or continue text. It is set up for pytorch. The card lists the license as mit.
A 500M parameter GPT model trained from scratch using PyTorch.
Downloads · 30 days
8
12% of all-time downloads
All-time downloads
66
Public
Parameters
163M
653 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors653 MB · 99%
From the Hugging Face model README
A 500M parameter GPT model trained from scratch using PyTorch.
This project contains:
The model was trained on a subset of FineWeb-Edu using a GPT-2 tokenizer.
Model configuration:
{
"vocab_size": 50257,
"context_length": 256,
"emb_dim": 768,
"n_heads": 12,
"n_layers": 12,
"drop_rate": 0.1,
"qkv_bias": False
}
Approximate parameter count:
Architecture components:
Training setup:
Hardware used:
Dataset:
Tokenizer:
The graph below shows train/validation loss progression during training on FineWeb-Edu.

Install dependencies:
pip install torch transformers safetensors
import json
import torch
from safetensors.torch import load_file
from transformers import AutoTokenizer
from model import GPTModel
# load config
with open("config.json") as f:
cfg = json.load(f)
# create model
model = GPTModel(cfg)
# load weights
state_dict = load_file("model.safetensors")
model.load_state_dict(state_dict)
model.eval()
# tokenizer
tokenizer = AutoTokenizer.from_pretrained(".")
from model import generate_and_print_sample
print(generate_and_print_sample(model, tokenizer, "cuda", "The world is big"))
Example generations from early-stage training:
"The world is big and powerful. “It will be a huge step forward in the right direction,” said John Kopp, CEO of Google Earth. “This will help us understand what we are looking for now to come, how it will affect our health and well-being.”<|endoftext|>"
Current limitations:
model.py # GPT architecture
model.safetensors # trained weights
config.json # model configuration
tokenizer files # GPT2 tokenizer assets
README.md # project documentation
This is a custom PyTorch implementation and is not directly compatible with Hugging Face AutoModelForCausalLM.
Users should load the model using the provided model.py architecture.