Skip to content

feat: use anchor kv-cache in chunked query inference - #227

Merged
HennerM merged 1 commit into
mainfrom
feat/query-eval-cache-anchors
May 29, 2026
Merged

HennerM merged 1 commit into
mainfrom
feat/query-eval-cache-anchors

Conversation

@HennerM

@HennerM HennerM commented May 26, 2026

Copy link
Copy Markdown
Collaborator

We had support for Anchor KV caching for a while and have a good use case in the QueryInference callback: when iterating in chunks over the full geometry, we can reuse the anchors from the first chunk and thus avoid unnecessary compute. This is mathematically equivalent and speeds up inference by roughly 25% in my tests.

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.

Tip: disable this comment in your organization's Code Review settings.

@github-actions

github-actions Bot commented May 26, 2026 •

Copy link
Copy Markdown
Contributor

Coverage

Tests Skipped Failures Errors Time
1458 24 💤 0 ❌ 0 🔥 31.923s ⏱️

@HennerM
HennerM force-pushed the feat/query-eval-cache-anchors branch from 204b49c to 1f8d423 Compare May 29, 2026 08:12
@HennerM
HennerM force-pushed the feat/query-eval-cache-anchors branch from 1f8d423 to 548b5d4 Compare May 29, 2026 08:50
@HennerM
HennerM merged commit 87fcd52 into main May 29, 2026
9 checks passed
@HennerM
HennerM deleted the feat/query-eval-cache-anchors branch May 29, 2026 09:10
@github-actions github-actions Bot locked and limited conversation to collaborators May 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants