Replies: 1 comment
-
和world无关,没编译成功。没找到assert.h,我没有包进来C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\assert.h这些 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
rwkv world mode!
No sentence-transformers model found with name model/m3e-base. Creating a new one with MEAN pooling.
Using C:\Users\wbcai\AppData\Local\torch_extensions\torch_extensions\Cache\py311_cu118 as PyTorch extensions root...
Detected CUDA files, patching ldflags
Emitting ninja build file C:\Users\wbcai\AppData\Local\torch_extensions\torch_extensions\Cache\py311_cu118\wkv_cuda\build.ninja...
Building extension module wkv_cuda...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
[1/3] cl /showIncludes -DTORCH_EXTENSION_NAME=wkv_cuda -DTORCH_API_INCLUDE_EXTENSION_H -ID:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\torch\include -ID:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\torch\include\torch\csrc\api\include -ID:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\torch\include\TH -ID:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" -ID:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Include -D_GLIBCXX_USE_CXX11_ABI=0 /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -c D:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\rwkv\cuda\wrapper.cpp /Fowrapper.o
FAILED: wrapper.o
cl /showIncludes -DTORCH_EXTENSION_NAME=wkv_cuda -DTORCH_API_INCLUDE_EXTENSION_H -ID:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\torch\include -ID:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\torch\include\torch\csrc\api\include -ID:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\torch\include\TH -ID:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" -ID:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Include -D_GLIBCXX_USE_CXX11_ABI=0 /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -c D:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\rwkv\cuda\wrapper.cpp /Fowrapper.o
用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.35.32217.1 版
版权所有(C) Microsoft Corporation。保留所有权利。
注意: 包含文件: D:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\torch\include\torch/extension.h
注意: 包含文件: D:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\torch\include\torch\csrc\api\include\torch/all.h
注意: 包含文件: D:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\torch\include\torch\csrc\api\include\torch/autograd.h
注意: 包含文件: D:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\torch\include\torch/csrc/autograd/autograd.h
注意: 包含文件: D:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\torch\include\torch/csrc/autograd/variable.h
注意: 包含文件: D:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\torch\include\torch/csrc/utils/python_stub.h
注意: 包含文件: D:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\torch\include\torch/csrc/Export.h
注意: 包含文件: D:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\torch\include\c10/macros/Export.h
注意: 包含文件: D:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\torch\include\c10/macros/cmake_macros.h
注意: 包含文件: D:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\torch\include\torch/csrc/autograd/cpp_hook.h
注意: 包含文件: D:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\torch\include\torch/csrc/autograd/function_hook.h
注意: 包含文件: D:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\torch\include\ATen/Tensor.h
注意: 包含文件: D:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\torch\include\ATen/core/Tensor.h
注意: 包含文件: D:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\torch\include\ATen/core/TensorBody.h
注意: 包含文件: D:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\torch\include\c10/core/Device.h
注意: 包含文件: D:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\torch\include\c10/core/DeviceType.h
注意: 包含文件: D:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\torch\include\c10/macros/Macros.h
注意: 包含文件: D:\wenda\vc\VC\Tools\MSVC\14.35.32215\include\cassert
注意: 包含文件: D:\wenda\vc\VC\Tools\MSVC\14.35.32215\include\yvals_core.h
注意: 包含文件: D:\wenda\vc\VC\Tools\MSVC\14.35.32215\include\vcruntime.h
注意: 包含文件: D:\wenda\vc\VC\Tools\MSVC\14.35.32215\include\sal.h
注意: 包含文件: D:\wenda\vc\VC\Tools\MSVC\14.35.32215\include\concurrencysal.h
注意: 包含文件: D:\wenda\vc\VC\Tools\MSVC\14.35.32215\include\vadefs.h
注意: 包含文件: D:\wenda\vc\VC\Tools\MSVC\14.35.32215\include\xk知识库加载完成
eycheck.h
D:\wenda\vc\VC\Tools\MSVC\14.35.32215\include\cassert(9): fatal error C1083: 无法打开包括文件: “assert.h”: No such file or directory
[2/3] C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\nvcc --generate-dependencies-with-compile --dependency-output operators.cuda.o.d -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcompiler /EHsc -Xcompiler /wd4190 -Xcompiler /wd4018 -Xcompiler /wd4275 -Xcompiler /wd4267 -Xcompiler /wd4244 -Xcompiler /wd4251 -Xcompiler /wd4819 -Xcompiler /MD -DTORCH_EXTENSION_NAME=wkv_cuda -DTORCH_API_INCLUDE_EXTENSION_H -ID:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\torch\include -ID:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\torch\include\torch\csrc\api\include -ID:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\torch\include\TH -ID:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" -ID:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Include -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 "-t 4" -std=c++17 --use_fast_math -O3 --extra-device-vectorization -c D:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\rwkv\cuda\operators.cu -o operators.cuda.o
FAILED: operators.cuda.o
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\nvcc --generate-dependencies-with-compile --dependency-output operators.cuda.o.d -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcompiler /EHsc -Xcompiler /wd4190 -Xcompiler /wd4018 -Xcompiler /wd4275 -Xcompiler /wd4267 -Xcompiler /wd4244 -Xcompiler /wd4251 -Xcompiler /wd4819 -Xcompiler /MD -DTORCH_EXTENSION_NAME=wkv_cuda -DTORCH_API_INCLUDE_EXTENSION_H -ID:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\torch\include -ID:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\torch\include\torch\csrc\api\include -ID:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\torch\include\TH -ID:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" -ID:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Include -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 "-t 4" -std=c++17 --use_fast_math -O3 --extra-device-vectorization -c D:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\rwkv\cuda\operators.cu -o operators.cuda.o
operators.cu
operators.cu
D:\wenda\vc\VC\Tools\MSVC\14.35.32215\include\crtdefs.h(10): fatal error C1083: �������ļ�: ��corecrt.h��: No such file or directory
operators.cu
D:\wenda\vc\VC\Tools\MSVC\14.35.32215\include\crtdefs.h(10): fatal error C1083: �������ļ�: ��corecrt.h��: No such file or directory
ninja: build stopped: subcommand failed.
Exception in thread Thread-2 (load_model):
Traceback (most recent call last):
File "D:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\torch\utils\cpp_extension.py", line 1893, in _run_ninja_build
subprocess.run(
File "D:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Lib\subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "D:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Lib\threading.py", line 1038, in _bootstrap_inner
self.run()
File "D:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Lib\threading.py", line 975, in run
self._target(*self._args, **self._kwargs)
File "D:\wenda\wenda\wenda.py", line 50, in load_model
LLM.load_model()
File "D:\wenda\wenda\llms\llm_rwkv.py", line 307, in load_model
from rwkv.model import RWKV # pip install rwkv
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\rwkv\model.py", line 29, in
load(
File "D:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\torch\utils\cpp_extension.py", line 1284, in load
return _jit_compile(
^^^^^^^^^^^^^
File "D:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\torch\utils\cpp_extension.py", line 1509, in _jit_compile
_write_ninja_file_and_build_library(
File "D:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\torch\utils\cpp_extension.py", line 1624, in _write_ninja_file_and_build_library
_run_ninja_build(
File "D:\wenda\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\torch\utils\cpp_extension.py", line 1909, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error building extension 'wkv_cuda'
Beta Was this translation helpful? Give feedback.
All reactions