Skip to content

Conversation

@OutisLi
Copy link
Collaborator

@OutisLi OutisLi commented Jan 11, 2026

To make display tidier.

Summary by CodeRabbit

  • Style
    • Standardized capitalization and label formatting across backend info displays (PT/TF/PD and custom OP status).
    • Training progress messages now show "Batch" (capital B) for consistent display.
    • Capitalized DataSystem summary headings.
    • Title-cased build and runtime summary labels; normalized value formatting (float precision, build variant, computation device, thread counts, visible GPU count).

✏️ Tip: You can customize this high-level summary in your review settings.

Copilot AI review requested due to automatic review settings January 11, 2026 08:53
@OutisLi OutisLi requested review from njzjz and removed request for Copilot January 11, 2026 08:53
@dosubot dosubot bot added the new feature label Jan 11, 2026
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 11, 2026

Note

Other AI code review bot(s) detected

CodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review.

📝 Walkthrough

Walkthrough

Title-case and capitalization standardization of user-facing strings across logs and summaries: backend-info keys, training log prefix, data-system header, and summary/build labels. No changes to control flow, public signatures, or underlying values.

Changes

Cohort / File(s) Summary
Backend info keys
deepmd/pd/entrypoints/main.py, deepmd/pt/entrypoints/main.py, deepmd/tf/train/run_options.py
Renamed returned dictionary keys to title-case variants (e.g., "PD ver" → "PD Ver", "PT ver" → "PT Ver", "TF ver" → "TF Ver", "Enable custom OP" → "Custom OP Enabled", "build with *" → "Built with *"). Values and control flow unchanged.
Training logger messages
deepmd/loggers/training.py
Capitalized training message prefix from "batch" → "Batch" in formatted output strings; formatting logic unchanged.
Data system summary
deepmd/utils/data_system.py
Capitalized DataSystem name and header text ("found X system(s):" → "Found X System(s):").
Build/summary labels & formatting
deepmd/utils/summary.py
Renamed BUILD and runtime summary keys to title-case and adjusted value casing (e.g., "installed to" → "Installed To", "world size" → "World Size", some values uppercased/capitalized). No signature or behavioral changes.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Suggested reviewers

  • njzjz
🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: capitalizing information display across multiple logging and summary modules to improve tidiness.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings


📜 Recent review details

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 44e94bc and da61f44.

📒 Files selected for processing (6)
  • deepmd/loggers/training.py
  • deepmd/pd/entrypoints/main.py
  • deepmd/pt/entrypoints/main.py
  • deepmd/tf/train/run_options.py
  • deepmd/utils/data_system.py
  • deepmd/utils/summary.py
✅ Files skipped from review due to trivial changes (1)
  • deepmd/utils/data_system.py
🚧 Files skipped from review as they are similar to previous changes (4)
  • deepmd/tf/train/run_options.py
  • deepmd/pd/entrypoints/main.py
  • deepmd/loggers/training.py
  • deepmd/utils/summary.py
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (20)
  • GitHub Check: Test Python (6, 3.10)
  • GitHub Check: Test Python (4, 3.10)
  • GitHub Check: Test Python (3, 3.13)
  • GitHub Check: Test Python (2, 3.13)
  • GitHub Check: Build C library (2.18, libdeepmd_c.tar.gz)
  • GitHub Check: Build wheels for cp311-win_amd64
  • GitHub Check: Analyze (python)
  • GitHub Check: Analyze (c-cpp)
  • GitHub Check: Build C++ (clang, clang)
  • GitHub Check: Build C++ (cpu, cpu)
  • GitHub Check: Build C++ (cuda120, cuda)
  • GitHub Check: Test C++ (true, false, false, true)
  • GitHub Check: Build wheels for cp311-macosx_arm64
  • GitHub Check: Build C++ (rocm, rocm)
  • GitHub Check: Build wheels for cp311-macosx_x86_64
  • GitHub Check: Test C++ (false, false, false, true)
  • GitHub Check: Test C++ (true, true, true, false)
  • GitHub Check: Build wheels for cp310-manylinux_aarch64
  • GitHub Check: Test C++ (false, true, true, false)
  • GitHub Check: Build wheels for cp311-manylinux_x86_64
🔇 Additional comments (1)
deepmd/pt/entrypoints/main.py (1)

240-253: LGTM! Capitalization changes address previous review feedback.

The preposition "with" is correctly kept lowercase while other words use title case. The changes are purely cosmetic and improve display consistency without affecting functionality.

✏️ Tip: You can disable this entire section by setting review_details to false in your review settings.


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
deepmd/utils/data_system.py (1)

716-716: Consider the behavior of capitalize() on system names.

The capitalize() method lowercases all characters except the first, which may not preserve the intended casing of system names. For example, "MySystem" becomes "Mysystem", and mixed-case acronyms or proper names would be affected.

Consider using name.title() for word-based capitalization or simply name if the original casing should be preserved.

Alternative approaches

If word-based capitalization is desired:

-        f"---Summary of DataSystem: {name.capitalize():13s}-----------------------------------------------"
+        f"---Summary of DataSystem: {name.title():13s}-----------------------------------------------"

Or preserve original casing:

-        f"---Summary of DataSystem: {name.capitalize():13s}-----------------------------------------------"
+        f"---Summary of DataSystem: {name:13s}-----------------------------------------------"
📜 Review details

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 82a5f32 and 0da51b6.

📒 Files selected for processing (6)
  • deepmd/loggers/training.py
  • deepmd/pd/entrypoints/main.py
  • deepmd/pt/entrypoints/main.py
  • deepmd/tf/train/run_options.py
  • deepmd/utils/data_system.py
  • deepmd/utils/summary.py
🧰 Additional context used
🧠 Learnings (2)
📚 Learning: 2025-12-12T13:40:14.334Z
Learnt from: CR
Repo: deepmodeling/deepmd-kit PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-12T13:40:14.334Z
Learning: Verify PyTorch training output shows decreasing loss with 'batch X: trn: rmse' messages

Applied to files:

  • deepmd/loggers/training.py
📚 Learning: 2025-12-12T13:40:14.334Z
Learnt from: CR
Repo: deepmodeling/deepmd-kit PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-12T13:40:14.334Z
Learning: Verify TensorFlow training output shows decreasing loss with 'batch X: trn: rmse' messages

Applied to files:

  • deepmd/loggers/training.py
🧬 Code graph analysis (1)
deepmd/utils/data_system.py (1)
deepmd/utils/path.py (3)
  • name (143-144)
  • name (264-266)
  • name (466-468)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (41)
  • GitHub Check: CodeQL analysis (python)
  • GitHub Check: Test Python (10, 3.10)
  • GitHub Check: Test Python (10, 3.13)
  • GitHub Check: Test Python (9, 3.13)
  • GitHub Check: Test Python (8, 3.13)
  • GitHub Check: Test Python (11, 3.10)
  • GitHub Check: Test Python (7, 3.13)
  • GitHub Check: Test Python (5, 3.10)
  • GitHub Check: Test Python (11, 3.13)
  • GitHub Check: Test Python (12, 3.13)
  • GitHub Check: Test Python (9, 3.10)
  • GitHub Check: Test Python (12, 3.10)
  • GitHub Check: Test Python (8, 3.10)
  • GitHub Check: Test Python (6, 3.13)
  • GitHub Check: Test Python (5, 3.13)
  • GitHub Check: Test Python (1, 3.10)
  • GitHub Check: Test Python (4, 3.13)
  • GitHub Check: Test Python (2, 3.13)
  • GitHub Check: Test Python (7, 3.10)
  • GitHub Check: Test Python (4, 3.10)
  • GitHub Check: Test Python (3, 3.13)
  • GitHub Check: Test Python (6, 3.10)
  • GitHub Check: Test Python (2, 3.10)
  • GitHub Check: Test Python (1, 3.13)
  • GitHub Check: Test Python (3, 3.10)
  • GitHub Check: Build wheels for cp310-manylinux_aarch64
  • GitHub Check: Build wheels for cp311-macosx_arm64
  • GitHub Check: Build wheels for cp311-macosx_x86_64
  • GitHub Check: Build wheels for cp311-manylinux_x86_64
  • GitHub Check: Build wheels for cp311-win_amd64
  • GitHub Check: Test C++ (false, true, true, false)
  • GitHub Check: Test C++ (true, true, true, false)
  • GitHub Check: Test C++ (false, false, false, true)
  • GitHub Check: Test C++ (true, false, false, true)
  • GitHub Check: Build C library (2.18, libdeepmd_c.tar.gz)
  • GitHub Check: Build C++ (cuda120, cuda)
  • GitHub Check: Build C++ (clang, clang)
  • GitHub Check: Build C++ (rocm, rocm)
  • GitHub Check: Build C++ (cpu, cpu)
  • GitHub Check: Analyze (python)
  • GitHub Check: Analyze (c-cpp)
🔇 Additional comments (9)
deepmd/utils/data_system.py (1)

718-718: LGTM!

The capitalization change to "Found X System(s):" is consistent with the PR's objective to standardize display formatting.

deepmd/loggers/training.py (2)

15-15: LGTM!

The capitalization of "Batch" improves consistency with the PR's formatting objectives.


52-52: LGTM!

The capitalization of "Batch" is consistent with the change at Line 15 and aligns with the PR's display standardization goals.

deepmd/tf/train/run_options.py (1)

70-73: LGTM!

The backend info dictionary key renames follow a consistent title case convention, aligning with the PR's objective to standardize display formatting. The underlying values remain unchanged.

deepmd/pd/entrypoints/main.py (1)

222-223: LGTM!

The backend info dictionary key renames standardize capitalization ("PD Ver") and improve clarity ("Custom OP Enabled" better describes the state). These changes are consistent with similar updates in other backend modules.

deepmd/pt/entrypoints/main.py (2)

242-244: LGTM!

The backend info dictionary key renames apply consistent title case formatting, aligning with the standardization effort across all backend modules in this PR.


250-251: LGTM!

The key renames ("PT Ver" and "Custom OP Enabled") are consistent with similar changes in the PD and TF backend modules, creating a unified display format across all backends.

deepmd/utils/summary.py (2)

67-68: Consistent capitalization improves display readability.

The key renamings in the __call__ method maintain consistency with the BUILD dictionary updates:

  • Multi-node keys use Title Case ("World Size", "Node List")
  • Runtime environment keys use Title Case ("Running On", "Computing Device")
  • GPU count key reordered for better readability ("Visible GPU Count")
  • Thread keys use ALL_CAPS ("NUM_INTRA_THREADS", "NUM_INTER_THREADS"), consistent with environment variable naming conventions

The .upper() transformation on the computing device value enhances visual emphasis in the output.

Also applies to: 73-74, 84-84, 89-90


49-57: No breaking changes are introduced by the BUILD dictionary key modifications. While the keys have been renamed (e.g., "installed to" → "Installed To", "use float prec" → "Float Precision"), no code in the codebase accesses these keys directly. The BUILD dictionary is used solely in the __call__ method for generating display output; it is not exposed as a public API that external code depends on. The value transformations (.capitalize() and .upper()) are also display-only changes that do not affect functionality.

@OutisLi OutisLi requested a review from Copilot January 11, 2026 09:23
@codecov
Copy link

codecov bot commented Jan 11, 2026

Codecov Report

❌ Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 81.94%. Comparing base (e5baf69) to head (da61f44).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
deepmd/utils/summary.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5145      +/-   ##
==========================================
- Coverage   81.94%   81.94%   -0.01%     
==========================================
  Files         713      713              
  Lines       73009    73009              
  Branches     3617     3616       -1     
==========================================
- Hits        59826    59824       -2     
  Misses      12021    12021              
- Partials     1162     1164       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 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.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR standardizes capitalization and formatting of display labels across the DeepMD-kit system to improve visual consistency. The changes focus on making information displays tidier by applying consistent capitalization conventions to build information, backend details, data system summaries, and training batch messages.

Changes:

  • Standardized label capitalization in build information and runtime configuration displays to Title Case
  • Updated backend information labels across TensorFlow, PyTorch, and Paddle backends for consistency
  • Capitalized logging messages in data system summaries and training batch outputs

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
deepmd/utils/summary.py Updated BUILD dictionary keys and runtime info labels to Title Case; applied uppercase transformation to variant and device values
deepmd/utils/data_system.py Capitalized data system summary log messages
deepmd/tf/train/run_options.py Standardized TensorFlow backend information labels to Title Case
deepmd/pt/entrypoints/main.py Standardized PyTorch backend information labels to Title Case
deepmd/pd/entrypoints/main.py Standardized Paddle backend information labels to Title Case
deepmd/loggers/training.py Capitalized "Batch" in training progress messages

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@OutisLi OutisLi requested a review from njzjz January 13, 2026 07:17
@OutisLi OutisLi requested a review from njzjz January 13, 2026 15:08
@OutisLi OutisLi requested a review from njzjz January 14, 2026 05:01
OutisLi and others added 5 commits January 14, 2026 16:12
@njzjz njzjz added this pull request to the merge queue Jan 14, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 14, 2026
@njzjz njzjz added this pull request to the merge queue Jan 14, 2026
Merged via the queue into deepmodeling:master with commit 2a9667e Jan 14, 2026
70 checks passed
@OutisLi OutisLi deleted the pr/cap branch January 15, 2026 02:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants