MCPcopy Create free account
hub / github.com/Pints-AI/1.5-Pints / reset_cache

Method reset_cache

lit_gpt/model.py:120–125  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

118 print(e)
119
120 def reset_cache(self) -> None:
121 self.kv_caches.clear()
122 if self.mask_cache is not None and self.mask_cache.device.type == 'xla':
123 # https://github.com/Lightning-AI/lit-gpt/pull/83#issuecomment-1558150179
124 self.rope_cache = None
125 self.mask_cache = None
126
127 def forward(
128 self,

Callers 2

mainFunction · 0.95
generateFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected