feat(agentx): display physical cache-tier token sources - #944
Open
cquil11 wants to merge 4 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 ETL aggregation and chart-series versioning for prompt-token metrics, so incorrect tier merging or missed backfill would skew displayed breakdowns; sibling/API field additions are lower risk UI and read-path changes.
Overview
AgentX prompt-token source breakdown 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, connector-defined tiers, and related labels replace the old logicallocal_cache_hit/external_kv_transferseries so stacked totals do not double-count. Chart-series derivation bumps to v16 (no SQL migration; stale JSONB rows need recomputation/backfill). Older vLLM blobs and SGLang’s existing mapping stay on the prior breakdown.The point-detail UI adds tier-specific colors and English / Simplified Chinese labels on the stacked prefill-source chart (plus a Cypress component test). Sibling navigation loads
kv_offloading,p90_intvty, andp90_ttftfrom the benchmark-siblings API (cache namespace v4), shows physical offload tiers on chips (DRAM, NVMe, combined) instead of genericoff=ON, and rings chips that sit on both P90 interactivity and TTFT Pareto frontiers vs throughput per GPU.Smaller fixes: eval ETL maps agentic ISL/OSL
0to null; Pareto helpers inchart-utilsare generic over{x,y}points; API docs and data-pipeline notes describe the new attribution rules.Reviewed by Cursor Bugbot for commit 6452884. Bugbot is set up for automated code reviews on this repo. Configure here.