Z.ai's GLM-5.2 supports a million-TokenA piece of text, such as a word, part of a word or a punctuation mark, that a language model represents as numbers and handles as a unit.Full definition →Context and context windowContext is the information available for a generation; the context window is the capacity available to hold it.Full definition →, allowing long coding sessions to retain more material within a model request. Its architecture report describes reducing part of the processing cost by sharing the selection of earlier text to attend to across groups of four model layers.
This reuse avoids repeating the same selection work at every layer. Memory remains a separate ConstraintA requirement a setup must meet regardless of how well it performs otherwise, such as where documents may be sent or a date by which the work must be done.Full definition →: the authors say the stored attentionThe mechanism that lets a model weigh which earlier words matter for the word it's currently processing — the core operation of a transformer.Full definition → data does not shrink proportionally with the arithmetic cost. Serving long sessions therefore also requires changes to memory management, scheduling, and data movement.
Terms in this piece · Glossary
Token — A piece of text, such as a word, part of a word or a punctuation mark, that a language model represents as numbers and handles as a unit.
Context and context window — Context is the information available for a generation; the context window is the capacity available to hold it.
Constraint — A requirement a setup must meet regardless of how well it performs otherwise, such as where documents may be sent or a date by which the work must be done.
attention — The mechanism that lets a model weigh which earlier words matter for the word it's currently processing — the core operation of a transformer.