feat(agentx): display physical cache-tier token sources - #944
Open
cquil11 wants to merge 3 commits into
Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Author
|
Preview test environment is ready.
Representative points:
Verified the deployed API response, English and Chinese page routes, browser rendering, and deployment runtime logs (zero 5xx responses during verification). |
Contributor
Author
|
Added in commit
Verified on the deployed English and Chinese pages. All PR checks are green. |
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.
Summary
vllm:prompt_tokens_cached_by_sourcefrom AgentX server-metric artifactsValidation
bun run typecheckbun run lintbun run fmtbun --cwd packages/db vitest run src/etl/compute-chart-series.test.tsbun --cwd packages/app vitest run src/components/inference/agentic-point/time-series-math.test.ts src/lib/api-route-catalog.test.tsbun --cwd packages/app vitest run src/lib/zh-copy.test.tsbun run --cwd packages/app test:e2e:component --spec cypress/component/agentic-token-source-chart.cy.tsxLive-data plan
Run InferenceX AgentX sweep 33169766010 will be ingested into an isolated Neon branch cloned from production. This PR's Vercel preview will be scoped to that database and verified against its DRAM, NVMe, and tiered DRAM+NVMe points.
Compatibility
No relational migration is required. The existing JSONB
chart_seriespayload is versioned from v15 to v16. Historical rows without the new vLLM metric keep their current source breakdown.Note
Medium Risk
Changes derived chart-series aggregation (versioned JSONB) and extends the published benchmark-siblings response; incorrect tier merging would skew prompt-token charts until backfill completes.
Overview
AgentX prompt-token source handling now uses vLLM’s physical
prompt_tokens_cached_by_sourcemetric when present: fresh prefill still comes from the logicalprompt_tokens_by_sourcebuckets (local_compute/miss), while HBM, CPU, NVMe, and connector-defined cache tiers replace the old logical hit buckets so stacked totals do not double-count. Chart series bumps from v15 to v16 so stored rows can be recomputed; older vLLM and SGLang runs keep their existing breakdown paths.The stacked area chart and related cards add tier-specific colors, English/Simplified Chinese labels, and a Cypress component test. Sibling navigation extends the benchmark-siblings API with
kv_offloading,p90_intvty, andp90_ttft(cache namespace v4), shows physical offload tiers on chips (e.g. DRAM+NVMe instead ofoff=ON), and highlights points on both P90 interactivity and TTFT Pareto frontiers using generalizedchart-utilsPareto helpers.Public API docs and
data-pipeline.mddocument the new prompt-token semantics; no relational migration.Reviewed by Cursor Bugbot for commit 68a8d4f. Bugbot is set up for automated code reviews on this repo. Configure here.