Skip to content
Dev Mehra

Research

Published

Small Dragon Hatchling Models: Alphabet, Memory, and Fine-tuning

Preprint, Zenodo, October 2026

Trains 25M to 100M parameter BDH language models on bytes and BPE tokens, compares them with matched transformers, and tests streaming inference, recall, and fine-tuning.

  • Byte-level BDH models scored 4.6 to 5.8% lower bits per character than matched transformers, at about 6x the compute per position.
  • Streaming inference over BDH's fixed-size state matches full recompute within 2e-5 in logits, at constant cost per token.
  • Chat tuning raised the byte model's recall of a planted fact at 128 characters from about 17% to 93%.
Graph of labeled neurons in the BPE-100M model and the connections between them
Neuron visualizer: 203 LLM-labeled neurons of the BPE-100M model and their learned connections.
Cite (BibTeX)
@misc{mehra2026smalldragon,
  author    = {Mehra, Dev},
  title     = {Small Dragon Hatchling Models: Alphabet, Memory, and Fine-tuning},
  year      = {2026},
  publisher = {Zenodo},
  note      = {Preprint},
  doi       = {10.5281/zenodo.23325933},
  url       = {https://doi.org/10.5281/zenodo.23325933}
}

Earlier

AI Foreign Policy Assistant Powered by GraphRAG

2024

Grounded foreign-policy analysis that constructs a typed knowledge graph and retrieves over its structure rather than a flat vector store.

ORCID