JittorLLMs
JittorLLMs copied to clipboard
启动 WebDemo 的时候遇到错误
如题,接下来是完整的错误信息(项目文件夹为 H:\JittorLLMs-main)
H:\JittorLLMs-main>python web_demo.py chatglm
[i 0508 19:55:32.337907 24 compiler.py:955] Jittor(1.3.7.15) src: c:\users\playmcblock\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages\jittor
[i 0508 19:55:32.458067 24 compiler.py:956] cl at C:\Users\PlayMcBlock\.cache\jittor\msvc\VC\_\_\_\_\_\bin\cl.exe(19.29.30133)
[i 0508 19:55:32.459065 24 compiler.py:957] cache_path: C:\Users\PlayMcBlock\.cache\jittor\jt1.3.7\cl\py3.9.13\Windows-10-10.x41\IntelRCoreTMi5xe4\default
[i 0508 19:55:32.468040 24 install_cuda.py:93] cuda_driver_version: [12, 1, 0]
[i 0508 19:55:32.584987 24 __init__.py:411] Found C:\Users\PlayMcBlock\.cache\jittor\jtcuda\cuda11.2_cudnn8_win\bin\nvcc.exe(11.2.67) at C:\Users\PlayMcBlock\.cache\jittor\jtcuda\cuda11.2_cudnn8_win\bin\nvcc.exe.
[i 0508 19:55:32.818469 24 compiler.py:1010] cuda key:cu11.2.67
[i 0508 19:55:32.822454 24 __init__.py:227] Total mem: 15.69GB, using 5 procs for compiling.
jit_utils.cc
c:\users\playmcblock\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages\jittor\src\pyjt/py_obj_holder.h(8): fatal error C1083: Cannot open include file: 'Python.h': No such file or directory
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\lib\multiprocessing\pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "C:\Users\PlayMcBlock\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\jittor_utils\__init__.py", line 199, in do_compile
run_cmd(cmd)
File "C:\Users\PlayMcBlock\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\jittor_utils\__init__.py", line 188, in run_cmd
raise Exception(err_msg)
Exception: Run cmd failed: "C:\Users\PlayMcBlock\.cache\jittor\msvc\VC\_\_\_\_\_\bin\cl.exe" "c:\users\playmcblock\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages\jittor\src\utils\jit_utils.cc" -std:c++17 -EHa -MD -utf-8 -nologo -I"C:\Users\PlayMcBlock\.cache\jittor\msvc\VC\include" -I"C:\Users\PlayMcBlock\.cache\jittor\msvc\win10_kits\include\ucrt" -I"C:\Users\PlayMcBlock\.cache\jittor\msvc\win10_kits\include\shared" -I"C:\Users\PlayMcBlock\.cache\jittor\msvc\win10_kits\include\um" -DNOMINMAX -I"c:\users\playmcblock\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages\jittor\src" -I"C:\Users\PlayMcBlock\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\win32\include" -O2 -c -Fo: "C:\Users\PlayMcBlock\.cache\jittor\jt1.3.7\cl\py3.9.13\Windows-10-10.x41\IntelRCoreTMi5xe4\default\cu11.2.67\obj_files\jit_utils.cc.obj"
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "H:\JittorLLMs-main\web_demo.py", line 26, in <module>
model = models.get_model(args)
File "H:\JittorLLMs-main\models\__init__.py", line 38, in get_model
globals()[f"get_{model_name}"]()
File "H:\JittorLLMs-main\models\util.py", line 51, in get_chatglm
new_path.append(download_fromhub(f"jittorhub://{f}", tdir="chat-glm"))
File "H:\JittorLLMs-main\models\util.py", line 5, in download_fromhub
import jittor as jt
File "C:\Users\PlayMcBlock\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\jittor\__init__.py", line 18, in <module>
from . import compiler
File "C:\Users\PlayMcBlock\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\jittor\compiler.py", line 1189, in <module>
check_cache_compile()
File "C:\Users\PlayMcBlock\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\jittor\compiler.py", line 884, in check_cache_compile
recompile = compile(cc_path, cc_flags+f" {opt_flags} ", files, jit_utils.cache_path+'/jit_utils_core'+extension_suffix, True)
File "C:\Users\PlayMcBlock\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\jittor\compiler.py", line 151, in compile
jit_utils.run_cmds(cmds, cache_path, jittor_path, "Compiling "+base_output)
File "C:\Users\PlayMcBlock\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\jittor_utils\__init__.py", line 251, in run_cmds
for i,_ in enumerate(p.imap_unordered(do_compile, cmds)):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\lib\multiprocessing\pool.py", line 870, in next
raise value
Exception: Run cmd failed: "C:\Users\PlayMcBlock\.cache\jittor\msvc\VC\_\_\_\_\_\bin\cl.exe" "c:\users\playmcblock\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages\jittor\src\utils\jit_utils.cc" -std:c++17 -EHa -MD -utf-8 -nologo -I"C:\Users\PlayMcBlock\.cache\jittor\msvc\VC\include" -I"C:\Users\PlayMcBlock\.cache\jittor\msvc\win10_kits\include\ucrt" -I"C:\Users\PlayMcBlock\.cache\jittor\msvc\win10_kits\include\shared" -I"C:\Users\PlayMcBlock\.cache\jittor\msvc\win10_kits\include\um" -DNOMINMAX -I"c:\users\playmcblock\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages\jittor\src" -I"C:\Users\PlayMcBlock\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\win32\include" -O2 -c -Fo: "C:\Users\PlayMcBlock\.cache\jittor\jt1.3.7\cl\py3.9.13\Windows-10-10.x41\IntelRCoreTMi5xe4\default\cu11.2.67\obj_files\jit_utils.cc.obj"