DDRecorder icon indicating copy to clipboard operation
DDRecorder copied to clipboard

Linux下使用的兄弟注意下

Open PhantomRing opened this issue 1 year ago • 5 comments

执行pip install -r requirements.txt的时候会给你安装FastHan2.0.0版本,但会报错,pip安装1.7版本的即可。如果FastHan初次运行连不上网下不了模型,去它的Issues里找百度网盘下载模型,然后修改model = FastHan()这句为model = FastHan(url="模型路径")即可

PhantomRing avatar Aug 18 '23 11:08 PhantomRing

感谢你的反馈,另外requirements.txt已经更新以使得可以安装FastHan2.0.0

ZhaoWeicheng98 avatar Aug 23 '23 16:08 ZhaoWeicheng98

感谢你的反馈,另外requirements.txt已经更新以使得可以安装FastHan2.0.0

主要是FastHan下载服务似乎崩了?我在国内的各种ip下都无法自动/手动下载2.0的模型,而FastHan Github上Issue里也只贴了1.x的模型,导致现在2.0基本就是不可用的状态。如果方便的话,您能上传一份FastHan2.0的模型吗?

Funny-ppt avatar Sep 06 '23 17:09 Funny-ppt

执行pip install -r requirements.txt的时候会给你安装FastHan2.0.0版本,但会报错,pip安装1.7版本的即可。如果FastHan初次运行连不上网下不了模型,去它的Issues里找百度网盘下载模型,然后修改model = FastHan()这句为model = FastHan(url="模型路径")即可

请问具体来说是怎么解决的?我使用pip install fasthan==1.7之后,python报错ModuleNotFoundError: No module named 'fastNLP.core.optimizer'

Funny-ppt avatar Sep 06 '23 17:09 Funny-ppt

执行pip install -r requirements.txt的时候会给你安装FastHan2.0.0版本,但会报错,pip安装1.7版本的即可。如果FastHan初次运行连不上网下不了模型,去它的Issues里找百度网盘下载模型,然后修改model = FastHan()这句为model = FastHan(url="模型路径")即可

请问具体来说是怎么解决的?我使用pip install fasthan==1.7之后,python报错ModuleNotFoundError: No module named 'fastNLP.core.optimizer'

我是先卸载了fasthan然后安装1.7版本,之后导入下载好的模型就行了。你这个报错应该是因为fastnlp版本不对吧,我记得fasthan里写了它的1.x版本对应的fastnlp版本,记得是要fastnlp=1.0?明天我给你看看

PhantomRing avatar Sep 06 '23 17:09 PhantomRing

执行pip install -r requirements.txt的时候会给你安装FastHan2.0.0版本,但会报错,pip安装1.7版本的即可。如果FastHan初次运行连不上网下不了模型,去它的Issues里找百度网盘下载模型,然后修改model = FastHan()这句为model = FastHan(url="模型路径")即可

请问具体来说是怎么解决的?我使用pip install fasthan==1.7之后,python报错ModuleNotFoundError: No module named 'fastNLP.core.optimizer'

我是先卸载了fasthan然后安装1.7版本,之后导入下载好的模型就行了。你这个报错应该是因为fastnlp版本不对吧,我记得fasthan里写了它的1.x版本对应的fastnlp版本,记得是要fastnlp=1.0?明天我给你看看

感谢回复!确实是fastnlp版本的问题。使用pip install 'fastnlp<1.0' 'fasthan<2.0'就可以解决问题

Funny-ppt avatar Sep 06 '23 17:09 Funny-ppt