Downloads · 30 days
0
akarki15/bdh-shakespeare
bdh-shakespeare is a text generation model from akarki15. Use it when you need the model to write or continue text. The card lists the license as mit.
A 25M parameter biologically-inspired language model trained on the Tiny Shakespeare dataset. Generates Shakespearean-style English text using byte-level tokenization.
Downloads · 30 days
0
Access
Public
Updated Jul 5, 2026
Repo size
304 MB
Likes
1
Public
Click a slice to open those files.
.pt304 MB · 100%
From the Hugging Face model README
A 25M parameter biologically-inspired language model trained on the Tiny Shakespeare dataset. Generates Shakespearean-style English text using byte-level tokenization.
BDH (Baby Dragon Hatchling) is a compact, biologically-inspired transformer:
| Component | Value |
|---|---|
| Parameters | 25M |
| Layers | 6 (shared weights) |
| Embedding dim | 256 |
| Attention heads | 4 |
| Context length | 128 |
| Vocab size | 256 (byte-level) |
Key features:
import torch
model_data = torch.hub.load_state_dict_from_url(
"https://huggingface.co/akarki15/bdh-shakespeare/resolve/main/bdh_shakespeare.pt",
map_location="cpu"
)
# Load with BDH model class — see GitHub repo for full inference code
Based on The Dragon Hatchling architecture by Pathway.