Downloads · 30 days
0
mhla/gpt1900-d34-8b-subset
gpt1900-d34-8b-subset is a machine learning model from mhla. 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.
A 3.3B parameter GPT-style language model trained on ~8B tokens of pre-1900 English text (11x data:param ratio).
Downloads · 30 days
0
Access
Public
Updated Feb 23, 2026
Repo size
24.9 GB
Likes
0
Public
Click a slice to open those files.
.pt24.9 GB · 100%
From the Hugging Face model README
A 3.3B parameter GPT-style language model trained on ~8B tokens of pre-1900 English text (11x data:param ratio).
model_010507.pt # Model weights
meta_010507.json # Training config and metadata
optim_010507_rank*.pt # Optimizer state shards (for resuming training)
tokenizer/ # BPE tokenizer (tiktoken format) + token byte counts
nanochat/ # Source code to load and run the model
import torch
from nanochat.gpt import GPT, GPTConfig
from nanochat.tokenizer import RustBPETokenizer
# Load tokenizer
tokenizer = RustBPETokenizer.from_directory("tokenizer")
# Load model
import json
with open("meta_010507.json") as f:
meta = json.load(f)
config = GPTConfig(**meta["model_config"])
with torch.device("meta"):
model = GPT(config)
model.to_empty(device="cuda")
model.init_weights()
state_dict = torch.load("model_010507.pt", map_location="cuda")
state_dict = {k.removeprefix("_orig_mod."): v for k, v in state_dict.items()}
model.load_state_dict(state_dict, strict=True, assign=True)
model.eval()
# Generate
bos = tokenizer.get_bos_token_id()
tokens = tokenizer.encode("It was a dark and stormy night", prepend=bos)
with torch.amp.autocast(device_type="cuda", dtype=torch.bfloat16):
for token in model.generate(tokens, max_tokens=100, temperature=0.8):
print(tokenizer.decode([token]), end="", flush=True)
torch>=2.9
tiktoken
rustbpe
Trained with the nanochat framework on H100 GPUs.
To resume training, load the optimizer shards (optim_010507_rank*.pt) — one per rank.