Skip to content

Fix incorrect variable name #8051

Open
Muneerali199 wants to merge 1 commit into
deepspeedai:masterfrom
Muneerali199:fix/ev-variable-name
Open

Fix incorrect variable name #8051
Muneerali199 wants to merge 1 commit into
deepspeedai:masterfrom
Muneerali199:fix/ev-variable-name

Conversation

@Muneerali199

Copy link
Copy Markdown

Fixes #7983

Two bugs in the eigenvalue monitoring logging code:

  1. Non-subscriptable dict_values: self.block_eigenvalue.values() returns a dict_values view object which does not support indexing. Wrapped with list() to make it subscriptable.

  2. Wrong variable name: self.ev_values was used instead of the local variable ev_values. self.ev_values is never defined anywhere in the class, causing AttributeError when this code path is hit.

….values()

- Line 2968: wrap .values() with list() since dict_values is not subscriptable
- Line 2972: self.ev_values -> ev_values (local variable, not instance attr)

Fixes deepspeedai#7983
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