MCPcopy Create free account
hub / github.com/ModelTC/LightX2V / prefetch_initial

Method prefetch_initial

lightx2v/common/kvcache/rolling.py:257–261  ·  view source on GitHub ↗
(self, layer_ids: list[int])

Source from the content-addressed store, hash-verified

255 self._current_step = 0
256 super().__init__(num_layers, cache_size, num_heads, head_dim, dtype, device)
257
258 @property
259 def current_step(self) -> int:
260 return self._current_step
261
262 @current_step.setter
263 def current_step(self, value: int) -> None:
264 if value == self._current_step:

Callers

nothing calls this directly

Calls 1

_prefetch_layerMethod · 0.95

Tested by

no test coverage detected