Re:GLM-4.5: Reasoning, Coding, and Agentic Abililties
by omneity on Monday July 28, 2025 @04:12PM
(#44715025)
Conversations are always "reprocessed from scratch" on every message you send. LLMs are practically stateless and the conversation is the state, as in nothing is kept in memory between two turns.
[ Parent
| on HN ]
Re:GLM-4.5: Reasoning, Coding, and Agentic Abililties
by Jabrov on Monday July 28, 2025 @04:40PM
(#44715342)
Not exactly true ... KV and prompt caching is a thing
Re:GLM-4.5: Reasoning, Coding, and Agentic Abililties
by yahoozoo on Monday July 28, 2025 @05:06PM
(#44715642)
Assuming you include the same prompts in the new request that were cached in the previous ones.
Re:GLM-4.5: Reasoning, Coding, and Agentic Abililties
by throw310822 on Monday July 28, 2025 @06:57PM
(#44716766)
As far as I understand, the entire chat is the prompt. So at the each round, the previous chat up to that point could already be cached. If I'm not wrong, Claude APIs require an explicit request to cache the prompt, while OpenAI's handle this automatically.
Re:GLM-4.5: Reasoning, Coding, and Agentic Abililties
by littlestymaar on Tuesday July 29, 2025 @09:14AM
(#44722934)
I don't understand how you are downvoted…
Re:GLM-4.5: Reasoning, Coding, and Agentic Abililties
by littlestymaar on Tuesday July 29, 2025 @11:50AM
(#44724859)
> LLMs are practically stateless
This isn't true of any practical implementation: for a particular conversation, KV Cache is the state. (Indeed there's no state across conversations, but that's irrelevant to the discussion).
You can drop it after each response, but doing so increase the amount of token you need to process by a lot in multi-turn conversations.
And my point was that storing the KV cache for the duration of the conversation isn't possible if you switch between multiple providers in a single conversation.