Skip to content

Commit

Permalink
Give a triton library missing warning instead of silent fail
Browse files Browse the repository at this point in the history
  • Loading branch information
jingyanwangms committed Jan 25, 2024
1 parent a2867b9 commit cc01d4b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ def _override_from_env_vars(self):
import triton # noqa: F401
except ImportError:
pass
self._logger.warning("triton is not found. Please install triton with `pip install triton`")
else:
self.enable_triton = True

Expand Down

0 comments on commit cc01d4b

Please sign in to comment.