[CI] Add Helion as an optional dependency (#32482)

Signed-off-by: Yanan Cao <gmagogsfm@gmail.com>
This commit is contained in:
Yanan Cao
2026-01-19 19:09:56 +00:00
committed by GitHub
parent 0727cc9ecf
commit 9d1e611f0e
5 changed files with 83 additions and 0 deletions
+15
View File
@@ -436,3 +436,18 @@ def has_arctic_inference() -> bool:
"""Whether the optional `arctic_inference` package is available."""
return _has_module("arctic_inference")
def has_helion() -> bool:
"""Whether the optional `helion` package is available.
Helion is a Python-embedded DSL for writing ML kernels.
See: https://github.com/pytorch/helion
Usage:
if has_helion():
import helion
import helion.language as hl
# use helion...
"""
return _has_module("helion")