KV cache compression mode. Passed to InferenceState::from_config_with_compression
(or via GenerateConfig::kv_compression) — that single call sets up everything
TurboQuant needs: the per-layer rotation states, the compressed key/value
caches, and the scratch buffers. No separate enable_turboquant call on
the model is required.
Compute a fingerprint for a model configuration.
Two models with different fingerprints have incompatible KV cache layouts.
Callers should pass a model_id that uniquely identifies the specific
model weights (e.g. a hash of the GGUF file or the model name from metadata),
so different models with the same architecture don’t share cache entries.