Downloads · 30 days
0
mhla/gpt1900-d34-gen-physics-rl
gpt1900-d34-gen-physics-rl 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.
3.29B parameter GPT-1900 with verifiable RL on 1094 SymPy-verified physics problems (951 generated + 143 Yale).
Downloads · 30 days
0
Access
Public
Updated Mar 17, 2026
Repo size
10.6 GB
Likes
0
Public
Click a slice to open those files.
.pt10.6 GB · 100%
From the Hugging Face model README
3.29B parameter GPT-1900 with verifiable RL on 1094 SymPy-verified physics problems (951 generated + 143 Yale).
model_000544.pt # Model weights
meta_000544.json # Training config and metadata
tokenizer/ # BPE tokenizer (tiktoken format) + token byte counts
nanochat/ # Source code to load and run the model
import torch, json
from nanochat.gpt import GPT, GPTConfig
from nanochat.tokenizer import RustBPETokenizer
tokenizer = RustBPETokenizer.from_directory("tokenizer")
with open("meta_000544.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_000544.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()
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