Skip to content

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: deepspeedai/DeepSpeedExamples#593

@lekurile lekurile requested a review from tjruwase as a code owner December 8, 2023 16:56
@lekurile lekurile requested review from loadams and mrwyattii December 8, 2023 16:57
@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
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: deepspeedai/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.

4 participants