← Back to Pull requests

fix(ascend): update ascend config according to latest driver #2223

Merged
FouoF merged 1 files (8 lines) on Jul 31, 2026 10:36 UTC
View on GitHub
FouoF FouoF commented on Jul 31, 2026 03:55 UTC
Author

What type of PR is this?

/kind bug

What this PR does / why we need it:

Sync with https://github.com/Project-HAMi/ascend-device-plugin/pull/57, new driver has corrected the template name.

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

Summary by CodeRabbit

Bug Fixes
Updated Ascend 910B4-1 device configuration template names to accurately reflect their memory capacities.
* Preserved existing memory, core, and CPU resource settings.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Diff: 8 lines (+2 / -6) across 1 files Reviewer: archlitchi Review duration: 400m
All Vouch review confidence checks passed
Residual risk 0.07 = Change Risk (0.44) × (1 − Review Confidence (0.83)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.44 · 8 lines diff across 1 files
0.44
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.77 · 5 substantive comment(s)
0.77
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
83%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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.131
Ai Authored ai_authored
0.050
Sensitive Paths sensitive_paths
0.044
Real PR Conversation Timeline
8 items
coderabbitai[bot] coderabbitai[bot] commented on Jul 31, 2026 03:56 UTC
Bot

<!-- This is an auto-generated comment: summarize by coderabbit.ai -->
<!-- review_stack_entry_start -->

![Review Change Stack](https://app.coderabbit.ai/change-stack/Project-HAMi/HAMi/pull/2223?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack)

<!-- review_stack_entry_end -->
No actionable comments were generated in the recent review. 🎉

<details>
<summary>ℹ️ Recent review info</summary>

<details>
<summary>⚙️ Run configuration</summary>

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: f58c05df-e3f6-49b4-840e-3618a779a92a

</details>

<details>
<summary>📥 Commits</summary>

Reviewing files that changed from the base of the PR and between be22f5794a8529ef84133250dbf6039da1926187 and 6dc617f90d04e7bf8056a0ed65cd110abe1a5410.

</details>

<details>
<summary>📒 Files selected for processing (1)</summary>

  • charts/hami/templates/scheduler/device-configmap.yaml
  • </details>

    </details>

    ---
    <!-- walkthrough_start -->

    <details>
    <summary>📝 Walkthrough</summary>

    Walkthrough

    The scheduler ConfigMap updates the Ascend 910B4-1 VNPU template names to reflect their configured 16 GiB and 32 GiB memory values. Related explanatory comments were removed. Other resource values remain unchanged.

    Changes

    Device configuration

    |Layer / File(s)|Summary|
    |---|---|
    |Rename 910B4-1 VNPU templates <br> charts/hami/templates/scheduler/device-configmap.yaml|Renames vir05_1c_8g and vir10_3c_16g to vir05_1c_16g and vir10_3c_32g. Removes the associated explanatory comments. Keeps memory, core, and CPU values unchanged.|

    Estimated code review effort: 1 (Trivial) | ~3 minutes

    Suggested reviewers: mesutoezdil

    Poem

    A rabbit checks the names in line,

    “Sixteen and thirty-two now shine.”

    The cores and CPUs stay in place,

    Comments hop away with grace.

    The device map is clear and neat.

    </details>

    <!-- walkthrough_end -->
    <!-- pre_merge_checks_walkthrough_start -->

    <details>
    <summary>🚥 Pre-merge checks | ✅ 5</summary>

    <details>
    <summary>✅ Passed checks (5 passed)</summary>

    | Check name | Status | Explanation |
    | :------------------------: | :------- | :------------------------------------------------------------------------------------------------------------------ |
    | Description Check | ✅ Passed | Check skipped - CodeRabbit’s high-level summary is enabled. |
    | Title check | ✅ Passed | The title clearly describes the Ascend configuration update to match the latest driver and matches the main change. |
    | Docstring Coverage | ✅ Passed | No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. |
    | Linked Issues check | ✅ Passed | Check skipped because no linked issues were found for this pull request. |
    | Out of Scope Changes check | ✅ Passed | Check skipped because no linked issues were found for this pull request. |

    </details>

    </details>

    <!-- pre_merge_checks_walkthrough_end -->
    <!-- finishing_touch_checkbox_start -->

    <details>
    <summary>✨ Finishing Touches</summary>

    <details>
    <summary>🧪 Generate unit tests (beta)</summary>

  • <!-- {"checkboxId": "f47ac10b-58cc-4372-a567-0e02b2c3d479", "radioGroupId": "utg-output-choice-group-unknown_comment_id"} --> Create PR with unit tests
  • </details>

    </details>

    <!-- finishing_touch_checkbox_end -->
    <!-- tips_start -->

    ---

    Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

    <details>
    <summary>❤️ Share</summary>

  • X

  • Mastodon

  • Reddit

  • LinkedIn
  • </details>

    <sub>Comment @coderabbitai help to get the list of available commands.</sub>

    <!-- tips_end -->

    codecov[bot] codecov[bot] commented on Jul 31, 2026 04:00 UTC
    Bot

    Codecov Report


    :white_check_mark: All modified and coverable lines are covered by tests.

    | Flag | Coverage Δ | |
    |---|---|---|
    | unittests | 62.91% <ø> (+0.84%) | :arrow_up: |

    Flags with carried forward coverage won't be shown. Click here to find out more.
    see 7 files with indirect coverage changes
    <details><summary> :rocket: New features to boost your workflow: </summary>

  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

  • </details>

    moezdil moezdil commented on Jul 31, 2026 07:13 UTC
    Contributor

    lgtm

    just 1 ask: this breaks 910B4-1 vNPU creation on old drivers, maybe fill the releasenote field with smth like "910B4-1 vNPU template names updated, requires latest Ascend driver".
    Optional: keep a 1-line comment noting template names depend on driver version. WDYT?

    FouoF FouoF commented on Jul 31, 2026 08:08 UTC
    Author

    Former comments indicate that the template name is not consistent with template spec. So i think it should be treated as a driver bug and the best practice is to update the driver.

    https://github.com/Project-HAMi/ascend-device-plugin/commit/531a70a863ab0c2a1e65c6bfaee4c96b688a9af2 changed it and mark as fix, I'm not sure whether it is behavior change according to driver update. So I can't provide a config and driver version compatibility matrix.

    DSFans2014 DSFans2014 commented on Jul 31, 2026 08:52 UTC
    Reviewer

    /lgtm

    archlitchi archlitchi approved these changes on Jul 31, 2026 10:35 UTC
    Approved Reviewer

    /lgtm

    hami-robot[bot] hami-robot[bot] commented on Jul 31, 2026 10:35 UTC
    Bot

    [APPROVALNOTIFIER] This PR is APPROVED

    This pull-request has been approved by: <a href="https://github.com/Project-HAMi/HAMi/pull/2223#pullrequestreview-4827730008" title="LGTM">archlitchi</a>, <a href="https://github.com/Project-HAMi/HAMi/pull/2223#" title="Author self-approved">FouoF</a>

    The full list of commands accepted by this bot can be found here.

    The pull request process is described here

    <details >
    Needs approval from an approver in each of these files:

  • ~~OWNERS~~ [FouoF,archlitchi]
  • Approvers can indicate their approval by writing /approve in a comment
    Approvers can cancel approval by writing /approve cancel in a comment
    </details>
    <!-- META={"approvers":[]} -->

    Reviewers
    Assignees
    FouoF FouoF
    Labels
    risk: low confidence: 83.3% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 44.3% (MEDIUM) · Higher = larger blast radius
    44.3%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 83.3% · Lower = rushed or shallow review
    83.3%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 7.4% · Safe to merge
    7.4%