Skip to main content

Module q42_kvp

Module q42_kvp 

Source
Expand description

QKVP: Q42 Runtime Page Profile for Semantic KV and Cache Reuse

This module defines the page-aware structures for the KV cache, allowing the engine to intelligently reuse, quantize, or evict KV memory based on cognitive and thermodynamic context rather than simple chronological LRU.

Structs§

Q42ChunkPolicy
Controls semantic chunking, boundary weights, and thermal biases. Padded to exactly 64 bytes.
Q42KvPageHeader
The root header for a KV cache page.
Q42QuerySketch
Drives query-aware min/max selection for the KV cache pages. Padded to exactly 128 bytes.

Constants§

QKVP_MAGIC
QKVP_VERSION