Skip to content

naive_speculate.testing.infer.kvcache.contract

KVCacheContractTests

Contract tests for KVCache implementations.

Provide test utility methods corresponding to the methods of KVCache, and a fixture for KVState sequences.

KVCache implementations should utilize utility methods defined here to test whether they adhere to the expected behavior contracts.