Context Checkpoints: applicable for llama.cpp?

#1
by ItachiSan - opened

Heja, started playing with this model!
I think it is great that this model fits with smaller setups (mine is 6GB VRAM dGPU + 32GB RAM laptop)

I am a bit curious why the context checkpoint flags. That should just keep track of older conversations and avoid reprocessing the whole input, right?
I want to understand if it is applicable also to llama.cpp or just Unsloth Studio.

Hey! This applies to both Unsloth Studio and llama.cpp. Current llama.cpp defaults to 32 context checkpoints per slot, which is excessive for smaller setups.
Context checkpoints prevent the model from reprocessing the entire conversation on every new turn. If you set them to 0, checkpoints are disabled, so each new message requires the model to process the whole conversation again. As the conversation grows, the time before the model begins responding also increases.
Setting it to 1 is usually enough: it avoids that repeated processing and lets you regenerate the latest response if the model enters a loop or you simply dislike its answer. In my setup, one checkpoint does not increase the observed memory allocation because the runtime already reserves that memory

Sign up or log in to comment