mlc-ai / mlc-llm

Universal LLM Deployment Engine with ML Compilation
https://llm.mlc.ai/
Apache License 2.0
19.09k stars 1.56k forks source link

[Bug] CUBLAS not enabled in prebuilt tvm #1634

Closed SuperKenVery closed 9 months ago

SuperKenVery commented 9 months ago

šŸ› Bug

CUBLAS is not enabled when compiling tvm. As a result, I cannot compile models with the prebuilt version of tvm.

To Reproduce

Steps to reproduce the behavior:

See this Dockerfile: https://git.nju.edu.cn/superKen/asc-2024-dockerfiles/-/blob/89d09235cf93bc69dc1a00926f322c6db1368145/Dockerfile

And I got:

# A lot of backtrace
  File "/root/miniconda3/envs/mlc/lib/python3.11/site-packages/mlc_chat/compiler_pass/cublas_dispatch.py", line 16, in transform_module
    raise Exception("CUBLAS is not enabled.")
Exception: CUBLAS is not enabled.

Expected behavior

It compiles the model

Environment

rickzx commented 9 months ago

Hi @SuperKenVery, this should already be solved with the latest nightly wheel after this commit: https://github.com/mlc-ai/package/commit/e96786c37d37a94802d7de9b4afaaa8be9237084.

Please update your prebuilts and try again. Thanks