Skip to content

fix: log block eigenvalue summary events#8048

Open
he-yufeng wants to merge 1 commit into
deepspeedai:masterfrom
he-yufeng:fix/eigenvalue-summary-events
Open

fix: log block eigenvalue summary events#8048
he-yufeng wants to merge 1 commit into
deepspeedai:masterfrom
he-yufeng:fix/eigenvalue-summary-events

Conversation

@he-yufeng
Copy link
Copy Markdown

Summary

  • use the eigenvalues from self.block_eigenvalue.values() when building monitor summary events
  • avoid indexing the Python 3 dict_values view
  • add focused coverage for the eigenvalue summary-event path without constructing a full engine

Fixes #7983.

To verify

  • python -m py_compile deepspeed\runtime\engine.py tests\unit\runtime\test_engine.py (passed)
  • git diff --check (passed)
  • python -m pytest tests\unit\runtime\test_engine.py -q was attempted on Windows, but collection failed before the test ran because this clone has core.symlinks=false and deepspeed/accelerator was checked out as a plain text symlink file, so deepspeed.accelerator cannot be imported locally. The new test should run in the normal Linux checkout used by CI.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cf89862488

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +1 to +2
# Copyright (c) Microsoft Corporation.
# SPDX-License-Identifier: Apache-2.0
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Add the required DeepSpeed Team header

In this new test file, the workspace AGENTS.md requires new files to include the license header # SPDX-License-Identifier: Apache-2.0 followed by # DeepSpeed Team; this header omits # DeepSpeed Team and adds a different first line, so it violates the repo's required new-file header.

Useful? React with 👍 / 👎.

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.

Incorrect variable name: self.ev_values

1 participant