Last updated: 2026-11-17
Inference Runtime
KV Storage
Storage accounting for the opt-in ROCm Qwen KV cache.
Computes checked allocation sizes for F32 rows and independently scaled 32-value Q8 blocks. Cache storage is independent of GGUF weight quantization.
1 exports shown
enum
Format
pub const Format = enum No public doc comment yet.
Methods
3method
Format.parse
pub fn parse(raw: ?[]const u8) !Format Parse an explicit cache format, defaulting to F32 when unset.
method
Format.rowBytes
pub fn rowBytes(self: Format, dimensions: u32) !usize Checked bytes per token's K or V row, including Q8 scales.
method
Format.bytes
pub fn bytes(self: Format, tokens: usize, dimensions: u32) !usize Checked size or row offset; zero tokens produces offset zero.