← Back to context

Comment by embedding-shape

2 days ago

> The VRAM usage seems way less efficient than Gemma 4 or Glimmer though

Maybe it's implicit that you're using llama.cpp (although you don't mention GGUF), but it's hard to reach concrete conclusions about the model architecture based on one implementation in one runtime.

Aren't things like KV size inherent to the model?

  • There's a tiny bit of play, like sliding window attention. As tokens leave the sliding window you can keep them or discard them. If you keep them, you can freely truncate the context and resume generation from an earlier point. If you discard them, you have to recompute the KV cache up to that point.

    Llama.cpp checkpoints and moves snapshots of the cache to main RAM for faster resumption after truncation.