Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Replace the merge of #210 with the final reviewed Inkling 2 Mini Fixed and VarLoop implementation. This branch explicitly reverts merge commit
9aba6beand reapplies the reviewed implementation in a second commit. Merging both commits together preserves continuous Inkling support onmain.The net changes relative to #210 add opt-in adaptive WCPB, including per-request chunk sizing and same-depth backfilling, and repair automatic KV memory planning for packed Inkling execution. The scheduler uses the active KV pool's page geometry and capacity. The startup probe reuses the attention backend configured for serving.
Required human contributor answers
The contributor's reviewed outcome, highest-leverage variable, expected impact, user needs, and decision to submit are recorded in #210's contributor answers. The maintainer approved the final workspace implementation and requested that it replace the earlier merge. A replacement PR is needed to publish the reviewed runtime code and its regression coverage.
Automatic KV reproducer
Locally reproduced on B300 with Inkling VarLoop, Triton attention and Packed Prefill enabled. Starting the #210 snapshot without an explicit KV pool size fails during the model-forward memory probe with
ValueError: packed queries require a compatible attention backend and KV layout. The probe recreated the backend from its name and lost the packed capability. The server should finish probing, size its KV pool, and accept requests.A minimal server invocation with the supported vLLM Inkling operators installed is:
Test plan
Test results
The replacement head
add9dd7passed the repository's all-files pre-commit run and the CI-pinned Ruff 0.13.2 lint and format checks. Four files were formatted in the publishing checkout with unchanged Python syntax trees.The B300 serving smoke at this head used VarLoop with 3 Core passes, BF16, Mixed, Packed Prefill, async scheduling, Graph warmup, and adaptive WCPB. The automatic memory probe allocated 26,024 physical KV blocks of size 16. The service completed all four W3 requests with 4,096 prompt tokens and 128 generated tokens each, after a separate four-request warmup.
The following same-card comparisons use the reviewed workspace snapshot with a 1,024-token chunk ceiling and 3,072-row budget. Each cell is the median of three unprofiled B300 VarLoop T3 runs.
The two C16 throughput ranges overlap. The C1 ops-only capture showed 85.14 to 73.49 ms of GPU activity across a 24-step window. An earlier adaptive sizing run before same-depth fill, under a 45% device-memory limit, used a 9,492-block KV pool and completed all W3 requests, with throughput falling from 830.12 to 823.56 tok/s relative to static WCPB. Testing on physical accelerators covered B300. Earlier Fixed and VarLoop serving and speculation evidence is in #210's test results.