feat: advertise hami-core Devcore via deviceCoreScaling #132
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.45) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 448 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.365
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #132"
general
weight: 0.35
DSFans2014
Scheduler counterpart: https://github.com/Project-HAMi/HAMi/pull/2952
That HAMi PR keeps a 100-point hami-core Fit budget unless this plugin advertises Devcore > 100.
What this PR does / why we need it:
NVIDIA already applies
deviceCoreScalingwhen the plugin registersDevcore. This plugin hardcodedDevcore = 100in hami-core (HamiVnpuCoreMaxPercent), so compute oversell could not be advertised no matter what the scheduler did.vnpus.deviceCoreScaling(default 1), optional per-node override inNodeConfighamiVnpuCore.deviceCoreScaling, schemaminimum: 1Devcore = round(100 deviceCoreScaling)AICoreThe scheduler keeps a 100-point Fit budget unless advertised
Devcore > 100, so this plugin change is what actually enables oversell. Physical AICore counts (8/20/24/30) are not treated as that percentage.The first commit left
deviceCoreScaling: 1as a literal insidedeviceConfig(# @ignored), so--set/ a values file could not reach it.c98d025renders{{ .Values.hamiVnpuCore.deviceCoreScaling }}next tohamiVnpuCore.enabled. Fractional ratios need--set-json(--set 1.5becomes a string and the schema rejects the type). That is in the chart README.Ratios below 1 are rejected.
AdvertisedDevcore(true, 0.5, 20)used to return 50, but HAMi cannot tell that apart from a hardware AICore count (8/20/24/30) and clamps anything<= 100back to the base, so the cut disappeared with no log. The plugin now falls back to the percentage base and warns; NaN / Inf / out-of-int32 warn too. Rounding:1.234->123. Per-node override is shown inascend-device-node-configmap.yamland the chart README.f53444fonly corrects theHamiVnpuCoreMaxPercentcomment.registerHAMinow callsinternal.AdvertisedDevcore, so 100 is the base percentage, not the advertised total once scaling is above 1. No behavior change.Special notes for your reviewer:
AI assistance: I used Cursor to draft the patch. I reviewed the registration path. Commit messages were written by me.
Validation:
go test ./internal/...passes,helm lintis clean,README.md/values.schema.jsonregenerated withmake update-chart-docssomake verify-helm-chartstays green.<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
New Features
Added configurable VNPU device core scaling with global and per-node overrides.
Supports fractional scaling ratios for compute overselling.
Advertised compute capacity now reflects scaling while memory and virtual-device limits remain unchanged.
Invalid, unsupported, or below-minimum values fall back safely to the default behavior.
Documentation
Added Helm configuration guidance, validation details, examples, and compute overselling limitations.
Tests
Added coverage for defaults, overrides, rounding, and invalid values.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->