Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Hybrid Engine metrics printing #4789

Merged
merged 2 commits into from
Dec 8, 2023
Merged

Fix Hybrid Engine metrics printing #4789

merged 2 commits into from
Dec 8, 2023

Conversation

lekurile
Copy link
Contributor

@lekurile lekurile commented Dec 8, 2023

The metrics print statement in the Hybrid Engine had a bug where self._total_batch_size was assumed to exist even when this variable was not initialized due to no corresponding inference policy.

This PR fixes this by performing a check when constructing the metrics print.

Addresses: microsoft/DeepSpeedExamples#593

@tjruwase tjruwase added this pull request to the merge queue Dec 8, 2023
Merged via the queue into master with commit 5f41bd0 Dec 8, 2023
13 checks passed
mauryaavinash95 pushed a commit to mauryaavinash95/DeepSpeed that referenced this pull request Feb 17, 2024
The metrics print statement in the Hybrid Engine had a bug where
`self._total_batch_size` was assumed to exist even when this variable
was not initialized due to no corresponding inference policy.

This PR fixes this by performing a check when constructing the metrics
print.

Addresses: microsoft/DeepSpeedExamples#593
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.

3 participants