AI Concepts
How to Reuse a Long Prompt in llama.cpp With the Slot Prompt Cache
Save a slot's prompt cache to a file and restore it later, so a long shared prompt is not reprocessed on every…
WORKFLOW TAG
Reuse model state for a repeated prompt and check what is cached.
Save a slot's prompt cache to a file and restore it later, so a long shared prompt is not reprocessed on every…
Quantize the KV cache with --cache-type-k and --cache-type-v so a long context fits in the memory you have.
Cache a long prompt once with mlx_lm.cache_prompt and reuse the cached prompt file across queries, so the model does not reprocess the…