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

Use accurate available CPU count STT-wide #2253

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

wasertech
Copy link
Collaborator

Merged #2211 and #2249 to get a more accurate cpu count stt-wide.

This was referenced Jul 5, 2022
Copy link
Collaborator Author

@wasertech wasertech left a comment

Choose a reason for hiding this comment

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

I like it very much!

>>> from coqui_stt_training.util import cpu
>>> cpu.available_count()
24

See my full logs

print("Caught KeyboardInterrupt, terminating workers")
executor.terminate()
executor.join()

Copy link
Collaborator Author

@wasertech wasertech Oct 27, 2022

Choose a reason for hiding this comment

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

catch interrupt and raise it so main() can exit with code 1

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.

None yet

3 participants