# Cache granularity

Route **deepinfra**.

| document chars | prompt tokens | cached on repeat | cache writes |
|---|---|---|---|
| 1000 | 193 | 0 | 0 |
| 2000 | 370 | 256 | 0 |
| 4000 | 706 | 512 | 0 |
| 8000 | 1387 | 1280 | 0 |
| 16000 | 2734 | 2560 | 0 |
| 32000 | 5452 | 5376 | 0 |

- Common divisor of cached counts (block size candidate): **256**
- Smallest prompt that was cached: 370; largest that was not: 193

_Block sizes from a gcd need several distinct cached counts; one-token chat-template offsets can hide the block (look at the raw counts)._

---
Spend: $0.0012 reported/estimated over 12 requests (0 with unknown cost). Witnessed.
