[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
c07cddae35
commit
0bb03e069d
1 changed files with 10 additions and 3 deletions
|
|
@ -385,6 +385,7 @@ def _ensure_tilelang_backend(event_queue: Any, model_name: str) -> None:
|
|||
try:
|
||||
import tilelang # noqa: F401
|
||||
import tvm_ffi # noqa: F401
|
||||
|
||||
logger.info("tilelang + apache-tvm-ffi already installed")
|
||||
return
|
||||
except ImportError:
|
||||
|
|
@ -407,13 +408,19 @@ def _ensure_tilelang_backend(event_queue: Any, model_name: str) -> None:
|
|||
]
|
||||
if shutil.which("uv"):
|
||||
pypi_cmd = [
|
||||
"uv", "pip", "install",
|
||||
"--python", sys.executable,
|
||||
"uv",
|
||||
"pip",
|
||||
"install",
|
||||
"--python",
|
||||
sys.executable,
|
||||
*specs,
|
||||
]
|
||||
else:
|
||||
pypi_cmd = [
|
||||
sys.executable, "-m", "pip", "install",
|
||||
sys.executable,
|
||||
"-m",
|
||||
"pip",
|
||||
"install",
|
||||
*specs,
|
||||
]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue