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

Give a triton library missing warning instead of silently turn off #19276

Merged
merged 4 commits into from
Feb 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions orttraining/orttraining/python/training/ortmodule/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,9 @@ def _override_from_env_vars(self):
import triton # noqa: F401
except ImportError:
pass
self._logger.warning(
"triton library missing. Please install triton with `pip install triton`. Triton feature will be off."
)
else:
self.enable_triton = True

Expand Down
Loading