Skip to content

fix: derive vLLM context limits from checkpoint metadata - #19

Merged
layer8labs8 merged 1 commit into
layer8labs8:mainfrom
mikemikimike:issue-8-context-limit
Nov 6, 2026
Merged

layer8labs8 merged 1 commit into
layer8labs8:mainfrom
mikemikimike:issue-8-context-limit

Conversation

@mikemikimike

Copy link
Copy Markdown
Contributor

Fixes #8

Issue: #8

Derive the effective serving context limit from the same metadata precedence used by vLLM. The shared helper considers the supported config keys, model and tokenizer limits, RoPE scaling, and scaling types that must not apply the factor. QPF016 and setup planning now use the same result.

Tests:

  • python -m pytest -q (7556 passed)
  • python -m pytest tests/test_rule_boundaries.py tests/test_planner.py -q (238 passed)

@layer8labs8
layer8labs8 merged commit 381e913 into layer8labs8:main Nov 6, 2026
14 checks passed
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.

Work out the context limit the way vLLM does

2 participants