Salesforce/wikitext
Viewer • Updated • 3.71M • 1.35M • 747
A transformer language model built from scratch in PyTorch.
from transformers import AutoModel, AutoTokenizer
import torch
model = AutoModel.from_pretrained("your-username/codsworth")
tokenizer = AutoTokenizer.from_pretrained("your-username/codsworth")
inputs = tokenizer("Hello world", return_tensors="pt")
outputs = model(**inputs)
@misc{codsworth2026,
title={Codsworth: A Transformer Language Model Implementation},
author={Shanahan, Jaq R.},
year={2026},
institution={Hermes Research Center}
}