Skip to content

fix: count global layers in hybrid KV-cache estimates - #18

Merged
layer8labs8 merged 1 commit into
layer8labs8:mainfrom
Erfouni:fix/hybrid-kv-cache-7
Nov 4, 2026
Merged

layer8labs8 merged 1 commit into
layer8labs8:mainfrom
Erfouni:fix/hybrid-kv-cache-7

Conversation

@Erfouni

@Erfouni Erfouni commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Hybrid KV-cache estimates now count global layers at the full context length. Explicit layer types take precedence over the sliding-window pattern, while the existing Gemma 2 fallback and fully sliding models keep their behavior.

Added regression coverage for GPT-OSS, Gemma 3 and malformed configs. Locally, 7549 tests passed with one Windows symlink skip. Profile validation, the benchmark gate and the site build passed. The benchmark's three declared gaps are unchanged from the base branch.

Model references: GPT-OSS configuration and Gemma 3 layer pattern.

Fixes #7

@Erfouni

Erfouni commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

Hi, could you please approve the CI and Action self-test workflows when you have a moment? Thanks for taking a look!

@layer8labs8
layer8labs8 merged commit b4775be into layer8labs8:main Nov 4, 2026
22 of 26 checks passed
@Erfouni
Erfouni deleted the fix/hybrid-kv-cache-7 branch November 5, 2026 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Count alternating sliding-window layers in the memory estimate

2 participants