Dongxi NLP explains how a language model produces each token
Overview
Dongxi NLP, a Chinese-language X account, published an explainer on how a chat model generates one token at a time.
Using the open-source Qwen3-0.6B model, the post traces the question "Is OpenAI open?" through a chat template, tokenization, prefill, sampling and detokenization. It says the answer takes nine tokens, and that each token requires a full model run that scores all 151,936 vocabulary entries.
The article links these steps to observed behavior, saying they explain why output appears gradually, why answers can vary, and why providers charge by token. A second post by the same account describes the same concepts, including logits, the KV cache, and the prefill and decode stages, as a basic overview rather than a new model or product.
Written by AI from the articles below · updated Oct 29, 9:05 AM ET
Check the sources:
Developments
2 developments
- Oct 29, 8:43 AM ET · 1 articleDongxi NLP explains how an LLM token is bornDongxi NLP: Dongxi NLP explains how an LLM token is born
- Oct 29, 8:38 AM ET · 1 articleHow a token is born: tracing one chat request through a language modelDongxi NLP: How a token is born: tracing one chat request through a language model
Article timeline
The articles in this story. Times are ET.
Dongxi NLP@dongxi_nlpXDongxi NLP explains how an LLM token is bornAIDongxi NLP says it walks through core LLM concepts behind a single token's creation, including chat templates, tokenization, logits, detokenization, KV cache, and the prefill and decode stages. The post presents these as an overview of the basic concepts rather than a new model or product.

Dongxi NLP@dongxi_nlpXHow a token is born: tracing one chat request through a language modelAIDongxi NLP walks through how a chat model answers the question "Is OpenAI open?" using the small open-source Qwen3-0.6B model. The answer takes nine tokens, each produced by a full model run that scores all 151,936 vocabulary entries, with a template, tokenizer, prefill, sampling and detokenization steps. The article links these steps to observed behavior such as gradual output, varying answers and token-based pricing.
Heat Trend
Not enough continuous observations to show a trend yet.