Downloads · 30 days
0
narinzar/tinygpt-shakespeare-kvcache
tinygpt-shakespeare-kvcache is a text generation model from narinzar. Use it when you need the model to write or continue text. It is set up for pytorch. The card lists the license as mit.
A 3.307M-parameter char-level decoder-only transformer trained from scratch on Tiny Shakespeare. It exists to drive the benchmarks in the kv-cache-throughput-bench repo: a from-scratch KV cache, a cached-vs-uncached t…
Downloads · 30 days
0
Access
Public
Updated Jul 7, 2026
Repo size
13.2 MB
Likes
0
Public
Click a slice to open those files.
.pt13.2 MB · 100%
From the Hugging Face model README
A 3.307M-parameter char-level decoder-only transformer trained from scratch on Tiny Shakespeare. It exists to drive the benchmarks in the kv-cache-throughput-bench repo: a from-scratch KV cache, a cached-vs-uncached throughput sweep, and an eviction-policy study.
tinygpt.pt: state dict plus the config and char->id mapClone the repo and load with the provided code:
from src.train import load_model
model, stoi, itos = load_model("tinygpt.pt")
Educational. A char model this small produces locally-coherent but repetitive text under greedy decoding. It is not meant for downstream language tasks.