Closed yiiizuo closed 3 weeks ago
you need to build colossalai from source code,otherwise such error will occur
不能直接用pip 安装 你去看一下colossalai官方的安装指引
Thank you for your reply. Then, when I build colossalai from source code, the following issues occurred:
File "/opt/conda/envs/opensora/lib/python3.10/site-packages/colossalai/booster/init.py", line 2, in
Process finished with exit code 1
Can you refer to this issue, and when installing from source, you pull from main branch?
Let me know if this issue persists after doing so.
This issue is stale because it has been open for 7 days with no activity.
I meet the similar problem
I use the pip install colossalai==0.3.6
and this problem seems to be solved.
you need to build colossalai from source code,otherwise such error will occur
you need to build colossalai from source code,otherwise such error will occur
Do you have tutorials or commands about the building process? I tried several times but failed.
Hi, colossalai==0.3.6
and colossalai==0.3.9
are both OK.
Traceback (most recent call last): File "/opt/conda/envs/opensora/lib/python3.10/site-packages/colossalai/kernel/extensions/cpp_extension.py", line 132, in load op_kernel = self.import_op() File "/opt/conda/envs/opensora/lib/python3.10/site-packages/colossalai/kernel/extensions/cpp_extension.py", line 61, in import_op return importlib.import_module(self.prebuilt_import_path) File "/opt/conda/envs/opensora/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'colossalai._C.fused_optim_cuda'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/zuoyi/T2V/Code/Open-Sora/scripts/train.py", line 329, in
main()
File "/zuoyi/T2V/Code/Open-Sora/scripts/train.py", line 163, in main
optimizer = HybridAdam(
File "/opt/conda/envs/opensora/lib/python3.10/site-packages/colossalai/nn/optimizer/hybrid_adam.py", line 88, in init
fused_optim = FusedOptimizerLoader().load()
File "/opt/conda/envs/opensora/lib/python3.10/site-packages/colossalai/kernel/kernel_loader.py", line 83, in load
return usable_exts[0].load()
File "/opt/conda/envs/opensora/lib/python3.10/site-packages/colossalai/kernel/extensions/cpp_extension.py", line 136, in load
op_kernel = self.build_jit()
File "/opt/conda/envs/opensora/lib/python3.10/site-packages/colossalai/kernel/extensions/cuda_extension.py", line 86, in build_jit
op_kernel = load(
File "/opt/conda/envs/opensora/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1308, in load
return _jit_compile(
File "/opt/conda/envs/opensora/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1669, in _jit_compile
version = JIT_EXTENSION_VERSIONER.bump_version_if_changed(
File "/opt/conda/envs/opensora/lib/python3.10/site-packages/torch/utils/_cpp_extension_versioner.py", line 45, in bump_version_if_changed
hash_value = hash_source_files(hash_value, source_files)
File "/opt/conda/envs/opensora/lib/python3.10/site-packages/torch/utils/_cpp_extension_versioner.py", line 15, in hash_source_files
with open(filename) as file:
FileNotFoundError: [Errno 2] No such file or directory: '/opt/conda/envs/opensora/lib/python3.10/site-packages/colossalai/kernel/extensions/pybind/optimizer/optimizer.cpp'
Process finished with exit code 1