MCPcopy Create free account
hub / github.com/LMCache/LMCache / layer_key

Method layer_key

tests/test_utils.py:399–407  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

397class TestLayerCacheEngineKey:
398 @pytest.fixture()
399 def layer_key(self):
400 return LayerCacheEngineKey(
401 model_name="model_b",
402 world_size=1,
403 worker_id=0,
404 chunk_hash=0xBEEF,
405 dtype=torch.float16,
406 layer_id=5,
407 )
408
409 def test_hash_includes_layer_id(self, layer_key):
410 other = LayerCacheEngineKey(

Callers

nothing calls this directly

Calls 1

LayerCacheEngineKeyClass · 0.90

Tested by

no test coverage detected