Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/policy-gradient/GRPO-Zero
/ del_kv_cache
Method
del_kv_cache
qwen2_model.py:302–304 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
300
)
301
302
def
del_kv_cache(self):
303
for
layer in self.layers:
304
layer.self_attn.del_kv_cache()
305
306
@classmethod
307
def
from_pretrained(cls, ckpt_path, device: torch.device):
Callers
nothing calls this directly
Calls
1
del_kv_cache
Method · 0.45
Tested by
no test coverage detected