proomt

Search

Search posts, papers, and topics

All posts

Hacker News front page7 min readintermediate

Generate fonts where every LLM token is the same width

Summary

This article introduces "token-space fonts" which render each LLM token with equal width, allowing users to visualize how text is tokenized. It provides a web-based compiler to generate these fonts for various LLM tokenizers and instructions for integrating them into Discord and Slack.

  • Token-space fonts visualize LLM tokenization by rendering each token at a fixed width (e.g., 3 em).
  • A web-based compiler allows generating custom token fonts for various LLM tokenizers (DeepSeek, Llama 3, Claude ctok, etc.).
  • Detailed instructions are provided for integrating these fonts into Discord (via Vesktop/Vencord) and Slack (via userscript).
  • The tool is transparent about known discrepancies and limitations, including whitespace handling, normalization, and browser rendering issues.

Engineers working with LLMs can use these fonts to visually debug and understand how different tokenizers segment text, which is crucial for prompt engineering and model behavior analysis.

7/10

Related reading

  1. tokenizers v1: encode, decode and scaling, measured

    Hugging Face has released `tokenizers` v1, a major performance update that achieves 3-30x faster encoding than v0.23 while maintaining identical output and API compatibility. Key optimizations include a SIMD-accelerated splitter, a thread-local word cache, and an allocation-free BPE merge loop, ensuring tokenization doesn't bottleneck ML workflows.

    Hugging Facehuggingface.co10 min
  2. Register Tokens for Bounded-State Reasoning in Diffusion Language Models

    Register tokens are fixed‑position embeddings that store a compact hidden state across diffusion‑based language model generation chunks, enabling bounded‑state reasoning without retaining all prior text. Post‑training on LLaDA and Dream shows up to +8.5 math and +19.5 code benchmark points versus plain text carry, and RL fine‑tuning further improves long‑horizon tasks.

    Hugging Face Daily Papersarxiv.org1 minpaper