Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

导入CogDL及其子模块的时间非常长/It takes a long time to import CogDL and its sub-modules #395

Open
FrancisGrace opened this issue Sep 20, 2022 · 6 comments

Comments

@FrancisGrace
Copy link

🐛 Bug

执行导入CogDL及其子模块语句的时间非常长。
It takes a long time to import CogDL and its sub-modules.

To Reproduce

Steps to reproduce the behavior:

import cogdl
print('Hello World!')

运行此代码后五分钟内未输出“Hello World!”。
After running the code, 'Hello World!' are not printed in 5 minutes.

Expected behavior

运行此代码后立刻输出“Hello World!”。
After running the code, 'Hello World!' should be printed immediately.

Environment

  • CogDL version: 0.5.3(使用v0.5.0正常/behaves normally in v0.5.0)
  • OS (e.g., Linux): Windows 10
  • Python version: 3.8.13
  • PyTorch version: 1.11.0
  • CUDA/cuDNN version (if applicable): CUDA 11.1
  • Any other relevant information: None

Additional context

@cenyk1230
Copy link
Member

Hi @FrancisGrace,

我猜测是在编译cogdl的稀疏算子,能否看一下~/.cache/torch_extensions里的情况。

@THINK2TRY
Copy link
Contributor

第一次导入的时候需要对底层算子进行编译,所以需要花费几分钟。后续导入的话应该就会比较快。

@zhanghaoxuan184
Copy link

🐛 Bug

执行导入CogDL及其子模块语句的时间非常长。 It takes a long time to import CogDL and its sub-modules.

To Reproduce

Steps to reproduce the behavior:

import cogdl
print('Hello World!')

运行此代码后五分钟内未输出“Hello World!”。 After running the code, 'Hello World!' are not printed in 5 minutes.

Expected behavior

运行此代码后立刻输出“Hello World!”。 After running the code, 'Hello World!' should be printed immediately.

Environment

  • CogDL version: 0.5.3(使用v0.5.0正常/behaves normally in v0.5.0)
  • OS (e.g., Linux): Windows 10
  • Python version: 3.8.13
  • PyTorch version: 1.11.0
  • CUDA/cuDNN version (if applicable): CUDA 11.1
  • Any other relevant information: None

Additional context

我也遇到了此问题,请问你解决了吗?

@QingFei1
Copy link
Contributor

是重装cogdl之后出现的这种情况吗

@zhanghaoxuan184
Copy link

并不是,我前段时间用的时候还没问题,有一段时间没用之后再运行导入时间就变得很长,我现在将cogdl改成了0.5.0版本就可以快速运行了

@Doehong
Copy link

Doehong commented Feb 6, 2023

我这里也是不知道如何解决。一直卡在导入中

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants