MCPcopy Create free account
hub / github.com/Standard-Intelligence/hertz-dev / deinit_cache

Method deinit_cache

model.py:135–136  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

133 self.cache = T.full((bsize, *cache_shape), CACHE_FILL_VALUE, device=device, dtype=dtype).transpose(0, 1)
134
135 def deinit_cache(self):
136 self.cache = [None] * self.cache_num_layers
137
138 @T.no_grad()
139 def forward(self, data, next_tokens: Optional[Tuple[T.Tensor, T.Tensor]] = None, temps: Optional[Tuple[float, Tuple[float, float]]] = None):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected