Downloads · 30 days
0
higokri/RestoreKV
RestoreKV is a text generation model from higokri. Use it when you need the model to write or continue text. It is set up for kvpress. The card lists the license as cc-by-nc-4.0.
Trained restore-token embeddings + LoRA adapters for RestoreKV (paper | project page), a budget-matched, single-pass plug-in that recovers full-cache behavior under aggressive query-agnostic KV cache eviction (built o…
Downloads · 30 days
0
Access
Public
Updated Aug 4, 2026
Repo size
172 MB
Likes
1
Public
Click a slice to open those files.
.pt172 MB · 100%
From the Hugging Face model README
Trained restore-token embeddings + LoRA adapters for RestoreKV (paper | project page), a budget-matched, single-pass plug-in that recovers full-cache behavior under aggressive query-agnostic KV cache eviction (built on KVzip).
Each checkpoint stores only the 8 restore-token embeddings and the rank-8 LoRA adapters (~0.4% of the backbone; ~41 MB). The base model weights are not included — load them from their original repositories.
| File | Backbone | Base scorer |
|---|---|---|
llama3.1-8b_restorekv.pt | meta-llama/Llama-3.1-8B-Instruct | KVzip |
llama3.1-8b_restorekv_plus.pt | meta-llama/Llama-3.1-8B-Instruct | KVzip+ |
qwen3-8b_restorekv.pt | Qwen/Qwen3-8B | KVzip |
qwen3-8b_restorekv_plus.pt | Qwen/Qwen3-8B | KVzip+ |
from kvpress import RestoreKVPress
press = RestoreKVPress(
compression_ratio=0.9375, # 16x
checkpoint_path="llama3.1-8b_restorekv.pt", # downloaded from this repo
budget_matched=True,
)
Evaluate with the official KVPress protocol (RULER-4096, Llama-3.1-8B):
python evaluate.py --dataset ruler --data_dir 4096 \
--model meta-llama/Llama-3.1-8B-Instruct \
--press_name RestoreKV --compression_ratio 0.875 \
--restore_checkpoint llama3.1-8b_restorekv.pt
For the *_plus.pt checkpoints, use the KVzip+ variant
(--press_name RestoreKV_plus).
Released under CC BY-NC 4.0 (research / non-commercial use only). These checkpoints are distilled using a training mixture that contains LongAlpaca-derived self-study data, so they inherit its most restrictive component license (CC BY-NC 4.0).