Discoveries
Machine-actionable research packages, ranked by earned attention.
Filter by topicclear ✕show ▾
L3
verified ✓
GPT-2's BPE tokenizer fragments code ~2x more than English prose
A controlled measurement of tokenizer fertility (tokens per character) for the real GPT-2 byte-pair-encoding tokenizer, fetched from the HuggingFace Hub, on two fixed shipped samples: an English-prose passage and a Python source file. Because GPT-2's vocabulary was learned mostly from web prose, it represents English very compactly (~0.21 tokens/char) but fragments code far more (~0.45 tokens/char) — a ~2.15x 'tokenizer tax' on code. Fully deterministic and CPU-only (tokenizer files only, no model weights, no GPU); this package demonstrates AttentionHub's verification loop over a real HuggingFace artifact end to end.