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

fastai版本不对 #1

Open
Hezepeng opened this issue Nov 10, 2020 · 3 comments
Open

fastai版本不对 #1

Hezepeng opened this issue Nov 10, 2020 · 3 comments

Comments

@Hezepeng
Copy link

你好,在使用您的代码,使用pip安装requirements.txt时,提示:ERROR: Could not find a version that satisfies the requirement torch>=1.6.0 (from fastai==2.0.15) (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)

如果先装pytorch1.6,后装fastai,会提示找不到fastai.utils。
感觉是不是fastai和pytorch的版本对不上?能否帮忙确认一下您Pytorch_TextGCN项目的pytorch的版本以及fastai的版本?

感谢!期待您的回复~

@chengsen
Copy link
Owner

你可以试一试删去版本号,然后安装一下;其实不用太关注版本,PyTorch1.0以上应该都行

@Hezepeng
Copy link
Author

Pytorch_TextGCN的项目中用到fastai的地方就一个:
from fastai.utils.pynvml_gate import load_pynvml_env self.pynvml = load_pynvml_env()
然后我去看了fastai的Github项目,发现根本没有utils文件,1.0的版本中有,而且fastai1.0版本中的load_pynvml_env()函数其实时调用了pynvml包里的pynvml.nvmlInit(),所以我把您项目中用到fastai地方的代码改成直接调用pynvml包就可以运行了……
pynvml.nvmlInit() self.pynvml = pynvml
所以感觉fastai应该在这个项目中用处不大,只是为了查看一下GPU使用情况。

@chengsen
Copy link
Owner

看你的具体任务吧,我的任务需要知道模型运行的现存占用。

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

2 participants