validateKvCacheBlockShape function
Validates positive KV-cache block-table dimensions.
Implementation
void validateKvCacheBlockShape({
required int entryCount,
required int sequenceIdWidth,
required int logicalBlockWidth,
required int physicalBlockWidth,
required int referenceCountWidth,
}) {
if (entryCount < 1 ||
sequenceIdWidth < 1 ||
logicalBlockWidth < 1 ||
physicalBlockWidth < 1 ||
referenceCountWidth < 1) {
throw ArgumentError('KV-cache block-table dimensions must be positive.');
}
}