SAVRN
Search Contact SAVRN

Open-weight model · Text generation

gpt2-traning

by Yorukot yorukot/gpt2-traning

gpt2-traning is an open-weight model for text generation from Yorukot, released under Apache License 2.0. It has 124M parameters. At 16-bit it needs about 0.3 GB of GPU memory, which fits on 1x MI300X from $1.85 an hour, at the lowest prices in the SAVRN Index.

This is the lab4-yoru-AY-482206 checkpoint, trained from scratch on English C4. It was selected by the lowest development loss among nine experimental recipes.

Parameters124M
Context—
Weights497.8 MB
Licenseapache-2.0
AccessOpen weights
Monthly Downloads—

Runs On

What it takes to serve gpt2-traning (124M parameters): the memory its weights need at each precision, and the cheapest way to rent enough data-center GPUs to hold them.

PrecisionWeightsMemory neededCheapest setupPer hourAlso fits
16-bit 0.2 GB 0.3 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
8-bit 0.1 GB 0.1 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
4-bit 0.1 GB 0.1 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00

Memory is the weights at that precision plus 20% for the runtime and a short context; a long context needs more. Prices are the lowest on-demand hourly rates in the SAVRN Index, read Oct 7, 2026.

gpt2-traning on every accelerator the SAVRN Index prices, at every precision

Model Card

By Yorukot, published under apache-2.0, revision 38c5ac62627d.

This is the lab4-yoru-AY-482206 checkpoint, trained from scratch on English C4. It was selected by the lowest development loss among nine experimental recipes. The independent seed repeat and reserved audit evaluation were still pending when this checkpoint was published. Reported scores are local evaluation proxies, not an official online-judge result. - Stock Hugging Face GPT2LMHeadModel: 12 layers, 12 attention heads, hidden width 768, context length 1,024, vocabulary 50,257, tied input/output embeddings. - 124,439,808 unique parameters, commonly described as GPT-2 small. The lab uses the historical 117M model-family label. - GPT-2 tokenizer; documents packed with EOS separators. No…

Read Yorukot's full model card

GPT-2 trained on C4 — Lab 4, AY

This is the lab4-yoru-AY-482206 checkpoint, trained from scratch on English C4. It was selected by the lowest development loss among nine experimental recipes. The independent seed repeat and reserved audit evaluation were still pending when this checkpoint was published. Reported scores are local evaluation proxies, not an official online-judge result.

Model and training

  • Stock Hugging Face GPT2LMHeadModel: 12 layers, 12 attention heads, hidden width 768, context length 1,024, vocabulary 50,257, tied input/output embeddings.
  • 124,439,808 unique parameters, commonly described as GPT-2 small. The lab uses the historical 117M model-family label.
  • GPT-2 tokenizer; documents packed with EOS separators. No pretrained model weights were used.
  • Two NVIDIA H200 GPUs, BF16 training, FP32 saved parameters, 30-minute allocation.
  • 1,631 optimizer updates; global batch 524,288 input tokens; 855,113,728 input tokens processed.
  • Muon for hidden matrices: learning rate 0.0012, momentum 0.95, Nesterov, five Newton–Schulz steps, AdamW RMS matching.
  • Auxiliary AdamW: learning rate 0.0006, betas (0.9, 0.95).
  • Weight decay 0.1, no decay on normalization/bias parameters, gradient clipping 1.0, dropout 0, random seed 42.
  • Five percent warmup followed by cosine decay to zero; torch.compile with the default mode. Training used PyTorch 2.14.0 and Transformers 5.17.0.
  • C4 revision: 1588ec454efa1a09f29cd18ddd04fe05fc8653a2.

Evaluation

English C4 validation documents were shuffled with seed 42, packed into 1,024-token blocks, and scored using 1,023 shifted prediction targets per block.

Split Documents Evaluated blocks Loss Perplexity
Development First 16,384 shuffled documents 7,616 3.660120 38.8660
Historical comparison First 2,048 shuffled documents 962 3.684590 39.8288

Development packing retains complete groups of 64 blocks for distributed evaluation. These splits overlap and are not independent tests. The lab's official evaluation uses 100,000 validation documents and may differ in packing and scoring. The larger reserved audit split is not included in these results.

Load the checkpoint

from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "yorukot/gpt2-traning"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)

Inference and evaluation use stock Transformers; the training optimizer is not required. This is a base language model for an educational experiment, without instruction tuning. Its web training data can produce inaccurate or biased text.

Training run on W&B.

Configuration

Architecture
GPT2LMHeadModel
Vocabulary size
50,257
Model type
gpt2

Identity and Version

Repository
yorukot/gpt2-traning
Publisher
Yorukot
Task
Text generation
Modality
Text
Library
transformers
Parameters
124M parameters
Languages
en
Revision
38c5ac62627d1ee8077a1cec46ec498be0b4e09b
First published
2026-10-02
Last updated
2026-10-02

Files and Weights

7 files, 501.3 MB in total. The weights are 1 file totalling 497.8 MB in safetensors.

Weights1 file · 497.8 MB
Configuration2 files · 1.0 KB
Tokenizer2 files · 3.6 MB
Documentation1 file · 3.0 KB
Repository1 file · 1.5 KB
Every file
FileTypeSizeSHA-256
model.safetensorsWeights497.8 MB df8c52bf79aa
config.jsonConfiguration833 B —
generation_config.jsonConfiguration214 B —
README.mdDocumentation3.0 KB —
.gitattributesRepository1.5 KB —
tokenizer.jsonTokenizer3.6 MB —
tokenizer_config.jsonTokenizer323 B —

License and Download

License
apache-2.0
Access
Open weights, no gate
Download size
497.8 MB
Download from Yorukot

Released by Yorukot through its official repository on Hugging Face. Read the license.

Built From

Memory Requirements

PrecisionWeights in memory
As published497.8 MB
16-bit0.2 GB
8-bit0.1 GB
4-bit0.1 GB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Questions About gpt2-traning

How much GPU memory does gpt2-traning need?

About 0.3 GB at 16-bit and 0.1 GB at 4-bit: the weights (124M parameters) plus a working margin. A long context needs more.

What is the cheapest GPU to run gpt2-traning on?

At 16-bit, 1x MI300X from $1.85 an hour; at 4-bit, 1x MI300X from $1.85 an hour, at the lowest on-demand prices the SAVRN Index lists.

Can I use gpt2-traning commercially?

Yes. gpt2-traning is released under Apache License 2.0. The Apache License 2.0 is a permissive open-source license. It permits commercial use, modification and redistribution. It requires keeping the license and copyright notices and any NOTICE file, stating significant changes, and it includes an express patent grant from contributors.

Similar Models

Model · Text generation

ivieai_star_v1.0

George O. Uwaifo

This model is a fine-tuned version of GeorgeUwaifo/iviegpt2new01cresults on an unknown dataset. It achieves the following results on the evaluation set: The following hyperparameters were used during training: - learningrate: 5e-05 - trainbatchsize: 4 - evalbatchsize: 8 - gradientaccumulationsteps: 4 - totaltrainbatchsize: 16 - lrschedulertype: linear - lrschedulerwarmupsteps: 387 - numepochs: 5 - mixedprecisiontraining: Native AMP - Transformers 5.16.1 - Pytorch 2.11.0+cu128 - Datasets 4.8.5 - Tokenizers 0.23.1

Open weights mit 124M parameters transformers

Model · Text generation

hasib-ai-chatbot

Hasib

This is the model card of a transformers model that has been pushed on the Hub. Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. Use the code below to get started with the model. Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).

Open weights 124M parameters transformers

Model · Text generation

gpt2

Kyle Chen

This is the model card of a transformers model that has been pushed on the Hub. Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. Use the code below to get started with the model. Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).

Open weights 124M parameters transformers

Model · Text generation

cerulean-lab4-k2-9e65f935

Nathan Tung

This is the model card of a transformers model that has been pushed on the Hub. Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. Use the code below to get started with the model. Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).

Open weights 124M parameters transformers

Model · Text generation

cerulean-lab4-k0-df4cf9cb

Nathan Tung

This is the model card of a transformers model that has been pushed on the Hub. Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. Use the code below to get started with the model. Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).

Open weights 124M parameters transformers

Model · Text generation

cerulean-lab4-k1-964f796a

Nathan Tung

This is the model card of a transformers model that has been pushed on the Hub. Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. Use the code below to get started with the model. Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).

Open weights 124M parameters transformers