Downloads · 30 days
0
d3vmeh/bdh-100m-bpe8k
bdh-100m-bpe8k is a machine learning model from d3vmeh. 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.
A 109.1M-parameter Dragon Hatchling (BDH) language model over an 8,192-token byte-pair vocabulary (bpe8k.json, trained on the same corpus with the Hugging Face tokenizers library). Base model, no tuning. The byte-leve…
Downloads · 30 days
0
Access
Public
Updated Oct 12, 2026
Repo size
436 MB
Likes
3
Public
Click a slice to open those files.
.pt436 MB · 100%
From the Hugging Face model README
A 109.1M-parameter Dragon Hatchling (BDH) language model over an 8,192-token byte-pair vocabulary
(bpe8k.json, trained on the same corpus with the Hugging Face tokenizers library). Base model, no
tuning. The byte-level twin trained on the same recipe is bdh-100m-bytes. The two differ only in the
alphabet and the vocabulary matrices: 100.9M shared-layer parameters each, with 8.4M of vocabulary
parameters here against 0.3M for the byte model.
Architecture: the reference BDH from pathwaycom/bdh (arXiv:2509.26507). Six layers sharing one set of weights, four heads, residual width 512, 16,384 sparsely activated neurons per head, 512-position training block.
Bits per character on 3 MB of held-out text neither model saw in training (part of FineWeb-Edu shard 013 and the TinyStories validation split), scored in 512-position blocks:
| text | bpc |
|---|---|
| FineWeb-Edu part | 1.039 |
| TinyStories part | 0.592 |
| combined | 0.964 |
The byte twin scores 1.042 combined. When both models are given the same number of preceding characters, they score within 0.02 bpc of each other. The gap is likely due to each token position seeing about four times more text. A matched rotary transformer on the same text scores 0.988 (2.4 % higher than this model).
The model stores a fact planted earlier in its context and, untuned, recalls it more often than the byte model: top-1 recall of the planted word is 57 % at 64 characters, 53 % at 128, and 33 % at 256, from 30 trials each. Density of active neurons per position is 11.9 %.
import torch, bdh # bdh.py from the code repository
from tokenizers import Tokenizer
tok = Tokenizer.from_file("bpe8k.json")
ck = torch.load("bdh-100m-bpe8k.pt", map_location="cpu")
model = bdh.BDH(bdh.BDHConfig(**ck["config"]))
model.load_state_dict(ck["model"])
For generation, use chat_stream.py from the code repository with RAW=1 and the tokenizer path as
the second argument.
Small model, 5.4 GB of text. The vocabulary was built from the training corpus, which may favor it slightly on text of the same kind. Only one vocabulary size was tried. Single training seed.
Code: https://github.com/d3vmeh/small-dragon-hatchling. Paper: https://doi.org/10.5281/zenodo.23325933 (CC BY 4.0).