Implement some method of LLM KV Cache Sparsity, including:
pip install -r requirements.txt
# edit longbench loading method `load_from_disk` in example/test.py
python example/test.py --sparsity_method snapkv
The result file will write to results folder.
Then you can use longbench_eval/eval.py to get the scores.
The core code for KV Cache eviction is in models/kv_clusters.py

Python
100.0%
Implement some method of LLM KV Cache Sparsity, including:
pip install -r requirements.txt
# edit longbench loading method `load_from_disk` in example/test.py
python example/test.py --sparsity_method snapkv
The result file will write to results folder.
Then you can use longbench_eval/eval.py to get the scores.
The core code for KV Cache eviction is in models/kv_clusters.py

Python
100.0%