Spaces:
Running
Running
Org card: RidgeFill paper, results, maps and citation
Browse files- README.md +57 -4
- banner.png +0 -0
README.md
CHANGED
|
@@ -1,10 +1,63 @@
|
|
| 1 |
---
|
| 2 |
title: README
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
title: README
|
| 3 |
+
emoji: 🎂
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: yellow
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
---
|
| 9 |
|
| 10 |
+
<p align="center">
|
| 11 |
+
<img src="https://huggingface.co/spaces/TheCacheIsALie/README/resolve/main/banner.png" alt="The cache is a lie. Training-free late-layer cache fill for faster prefill." width="100%">
|
| 12 |
+
</p>
|
| 13 |
+
|
| 14 |
+
<p align="center">
|
| 15 |
+
<a href="https://approximate-science.github.io/ridgefill/"><b>Project page</b></a> ·
|
| 16 |
+
<a href="https://openreview.net/forum?id=ymLpDkJIGs"><b>OpenReview</b></a> ·
|
| 17 |
+
<a href="https://doi.org/10.5281/zenodo.23890247"><b>Paper (DOI)</b></a> ·
|
| 18 |
+
<a href="https://github.com/Approximate-Science/llama.cpp-ridgefill"><b>llama.cpp fork</b></a> ·
|
| 19 |
+
<a href="https://github.com/Approximate-Science/ridgefill-data"><b>Data</b></a>
|
| 20 |
+
</p>
|
| 21 |
+
|
| 22 |
+
Long prompts spend most of their time to first token in prefill. **RidgeFill** skips most of a model's upper layers
|
| 23 |
+
there: a ridge regression, fitted once in closed form, predicts each late layer's input from one middle layer, and
|
| 24 |
+
the layer writes its own cache from that prediction. A chosen set of rows, the last few thousand tokens and every
|
| 25 |
+
decoding step still run the full model. **Nothing is trained and no token is dropped.**
|
| 26 |
+
|
| 27 |
+
### Results
|
| 28 |
+
|
| 29 |
+
| Deployment | Time to first token | Quality |
|
| 30 |
+
|---|---|---|
|
| 31 |
+
| **Qwen3.8-Flash-Next** · vLLM | **1.50–1.60×** faster at 9K–32K; a whole 64K request in 47.5 s instead of 82.6 s | RULER needle tasks 99.8 vs 100.0 |
|
| 32 |
+
| **Qwen3.8-27B** · llama.cpp · one A100 | **1.25–1.31×** faster at 16K–120K | RULER −1.2 / −1.4 points, LongBench v2 −1.4 (95 % intervals include zero) |
|
| 33 |
+
|
| 34 |
+
On three 8–9B reference models, the fitted map retrieves 49.1 and 49.6 more filled-region RULER points than the
|
| 35 |
+
identity fill on the two dense models. Every number comes from the paper, and the
|
| 36 |
+
[data repository](https://github.com/Approximate-Science/ridgefill-data) recomputes each one from the raw results.
|
| 37 |
+
|
| 38 |
+
### Maps
|
| 39 |
+
|
| 40 |
+
| Model | Maps | Runs in |
|
| 41 |
+
|---|---|---|
|
| 42 |
+
| Qwen3.8-27B | [RidgeFill-Projector-Qwen3.8-27B-i8](https://huggingface.co/TheCacheIsALie/RidgeFill-Projector-Qwen3.8-27B-i8) | [llama.cpp fork](https://github.com/Approximate-Science/llama.cpp-ridgefill) |
|
| 43 |
+
| Qwen3.8-Flash-Next | [RidgeFill-Projector-Qwen3.8-Flash-Next-i8](https://huggingface.co/TheCacheIsALie/RidgeFill-Projector-Qwen3.8-Flash-Next-i8) | vLLM fork |
|
| 44 |
+
| Llama-3.1-8B-Instruct | [Llama-3.1-8B-Instruct-RidgeFill-Projector](https://huggingface.co/TheCacheIsALie/Llama-3.1-8B-Instruct-RidgeFill-Projector) | reference study |
|
| 45 |
+
| Qwen3-8B | [RidgeFill-Projector-Qwen3-8B](https://huggingface.co/TheCacheIsALie/RidgeFill-Projector-Qwen3-8B) | reference study |
|
| 46 |
+
| Qwen3.5-9B | [RidgeFill-Projector-Qwen3.5-9B](https://huggingface.co/TheCacheIsALie/RidgeFill-Projector-Qwen3.5-9B) | reference study |
|
| 47 |
+
|
| 48 |
+
### Cite
|
| 49 |
+
|
| 50 |
+
```bibtex
|
| 51 |
+
@misc{johnston2026ridgefill,
|
| 52 |
+
author = {Johnston, Dylan and Smith, Robert P},
|
| 53 |
+
title = {{RidgeFill}: Training-Free Late-Layer Cache Fill for Faster Prefill},
|
| 54 |
+
year = {2026},
|
| 55 |
+
publisher = {Zenodo},
|
| 56 |
+
note = {Preprint},
|
| 57 |
+
doi = {10.5281/zenodo.23890247},
|
| 58 |
+
url = {https://doi.org/10.5281/zenodo.23890247}
|
| 59 |
+
}
|
| 60 |
+
```
|
| 61 |
+
|
| 62 |
+
<sub>Dylan Johnston and Robert P Smith, independent researchers. The design follows YOCO and DeepSeek-V4.1-Flash;
|
| 63 |
+
kishida's <a href="https://huggingface.co/kishida/Q3-8B-KVA-Projector">KVA projector</a> was the first public retrofit.</sub>
|
banner.png
ADDED
|