Downloads · 30 days
14
25% of all-time downloads
shivamtiwari93/gp-thee-11m
gp-thee-11m is a machine learning model from shivamtiwari93. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for safetensors. The card lists the license as mit.
A GPT trained from scratch on nothing but the complete works of Shakespeare — an educational project. No pretrained weights, no borrowed tokenizer, no outside text. Everything it knows, it learned from about 5 MB of E…
Downloads · 30 days
14
25% of all-time downloads
All-time downloads
56
Public
Parameters
10.8M
86.1 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors43 MB · 100%
From the Hugging Face model README
A GPT trained from scratch on nothing but the complete works of Shakespeare — an educational project. No pretrained weights, no borrowed tokenizer, no outside text. Everything it knows, it learned from about 5 MB of Elizabethan English on one laptop.
tokenizer.json.GP-Thee is an in-character autocomplete for a universe that contains only Shakespeare. Give it a speaker label and a line and it continues the scene. It cannot follow instructions, has never been asked a question, and — as part 7 measures — reproduces almost none of its training text verbatim: the longest passage of Shakespeare's own words it can be made to write back is 25 characters. What it memorised is the shape of an edition — cast lists, scene headings, speaker labels — not the verse.
from load_release import load # in this folder; needs torch, safetensors, and gp_thee.model
model, tokenizer = load()
The output projection is tied to the input embedding, so it is not stored in the safetensors file; load_release.py
re-ties it. The full sampler, the tokenizer code, every training log and the complete build history are in the
repository.
This model lives at https://huggingface.co/shivamtiwari93/gp-thee-11m.
Released run runs/sweep-char-seed-1/best.pt at step 9236, chosen by a rule
fixed before the runs (docs/release.json) and scored on the held-out works exactly once
(docs/final-evaluation.json). Trained by commit 0f726008af74. Built and documented step by step at
https://github.com/shivamtiwari93/gp-thee.
MIT. The corpus is Project Gutenberg eBook #100, public domain in the United States. This project is not affiliated with Project Gutenberg.