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

Method reset_parameters

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

Source from the content-addressed store, hash-verified

111 )
112
113 def reset_parameters(self) -> None:
114 # Trigger resetting the rope-cache
115 try:
116 self.cos, self.sin = self.get_rope_cache(device=self.cos.device)
117 except Exception as e:
118 print(e)
119
120 def reset_cache(self) -> None:
121 self.kv_caches.clear()

Callers 1

reset_parametersFunction · 0.45

Calls 1

get_rope_cacheMethod · 0.95

Tested by

no test coverage detected