From ba850d3a9de4e433c09090e7c91b9e0a7187fbea Mon Sep 17 00:00:00 2001 From: Egor Filimonov <44640852+ssshinigami@users.noreply.github.com> Date: Fri, 17 Apr 2026 04:05:20 +0300 Subject: [PATCH] [Bugfix] [NPU] Fix check_env on Ascend for CANN 8.5 (#22888) --- python/sglang/check_env.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python/sglang/check_env.py b/python/sglang/check_env.py index a9a8a62b2..20e931b44 100644 --- a/python/sglang/check_env.py +++ b/python/sglang/check_env.py @@ -362,7 +362,10 @@ class NPUEnv(BaseEnv): else: cann_info["CANN"] = "Not Available" try: - bisheng = os.path.join(CANN_HOME, "compiler/ccec_compiler/bin/bisheng") + bisheng = os.path.join(CANN_HOME, "tools/bisheng_compiler/bin/bisheng") + if not os.path.isfile(bisheng): + # Check path for old CANN version + bisheng = os.path.join(CANN_HOME, "compiler/ccec_compiler/bin/bisheng") bisheng_output = ( subprocess.check_output([bisheng, "--version"]).decode("utf-8").strip() )