Also: compute, TFLOPS
How much arithmetic a chip can do each second. Pictures and video need lots of it.
Writing text is mostly limited by memory speed. Making pictures and video is limited by raw arithmetic, and that is where NVIDIA cards are furthest ahead of Macs.
Related: Memory speed, Diffusion model
Also: context length, num_ctx
The most text a model can consider at once: your messages, its replies and any documents, counted in tokens.
Every model has a maximum, often 128,000 tokens or more. Apps usually set a much smaller limit by default, because a longer window needs more memory. In Ollama you can raise it with the num_ctx setting.
When a conversation outgrows the window, the oldest parts fall out and the model forgets them.
Related: Conversation memory, Token
Also: KV cache
Notes the model keeps on every token so far, so it doesn’t have to reread the conversation. It grows as the chat gets longer.
Technically called the KV cache, for the “keys” and “values” it stores at every layer for every token. It saves the model from recomputing the whole conversation for each new word, at the cost of memory: for an 8-billion-parameter model, a 32,000-token conversation takes several gigabytes on top of the model itself.
See it in the checker’s memory barRelated: Context window