Skip to content

feat(engines): lmdeploy adapter — Inference page metrics from the rol… - #114

Merged
reiase merged 3 commits into
DeepLink-org:masterfrom
VincentCheungKokomo:pr/lmdeploy-engine-adapter
Nov 17, 2026
Merged

reiase merged 3 commits into
DeepLink-org:masterfrom
VincentCheungKokomo:pr/lmdeploy-engine-adapter

Conversation

@VincentCheungKokomo

@VincentCheungKokomo VincentCheungKokomo commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

LMDeploy has no Prometheus endpoint and its TurboMind engines are native processes, so neither the HTTP scraper nor in-process hooks apply. Its server wrapper does print one stats line per data-parallel rank (~10 s cadence) which XTuner streams into the run log; the adapter tails that file, fans lines out to per-rank engines, maps them onto the shared normalized.* names and writes inference_engine_metric rows. Registry keys are stored prefixed (normalized.*) to match what the Inference page cards look up, and engines keep the last known values across empty polls. Verified on a 64-step PPO run with 4 ranks: subprocess-free, engines/cards/history all populate.

…lout log

LMDeploy has no Prometheus endpoint and its TurboMind engines are
native processes, so neither the HTTP scraper nor in-process hooks
apply. Its server wrapper does print one stats line per data-parallel
rank (~10 s cadence) which XTuner streams into the run log; the
adapter tails that file, fans lines out to per-rank engines, maps them
onto the shared normalized.* names and writes inference_engine_metric
rows. Registry keys are stored prefixed (normalized.*) to match what
the Inference page cards look up, and engines keep the last known
values across empty polls. Verified on a 64-step PPO run with 4 ranks:
subprocess-free, engines/cards/history all populate.
make lint-python fails on the one overlong update_scrape_result call;
ruff format fixes it (ruff check was already clean).
@codecov

codecov Bot commented Nov 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Published after the previous triage; fixed in 6.6.1 (upgrade still
tracked with the tornado bump). Gate re-verified: 17 advisories,
0 not allowlisted.
@reiase
reiase merged commit 66b31d3 into DeepLink-org:master Nov 17, 2026
15 of 16 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.

2 participants