Revert "`has_triton`: Use the device interface for detecting Triton availability (#139171)"
Summary:
This reverts commit 48bfe9afc70a98addd5aa738bf501c029e4a9285.
Reverted https://github.com/pytorch/pytorch/pull/139171 on behalf of https://github.com/masnesral due to Performance regression for huggingface ([comment](https://github.com/pytorch/pytorch/pull/139171#issuecomment-2868939790))
Reviewed By: huydhn
Differential Revision: D74531472
fbshipit-source-id: 751398ae3c03cdd1d1d7c75a5088207a3a1784cb
Author
generatedunixname499836121