赞
踩
场景:训练bert-base-chinese下游任务:分类。在一个服务器可以用,但GPU只有一个卡,只能换一个服务器,换个服务器又要重装环境,但后者下载模型有问题,手动用git-lfs下载后指定位置报错:
Traceback (most recent call last):
/examples/pytorch/text-classification/run_glue.py", line 622, in <module>
main()
/examples/pytorch/text-classification/run_glue.py", line 486, in main
metric = evaluate.load("accuracy")
/python3.9/site-packages/evaluate/loading.py", line 731, in load
evaluation_module = evaluation_module_factory(
/python3.9/site-packages/evaluate/loading.py", line 681, in evaluation_module_factory
raise FileNotFoundError(
FileNotFoundError: Couldn't find a module script at 。。。Class4/bin/accuracy/accuracy.py. Module 'accuracy' doesn't exist on the Hugging Face Hub either.
因此,只有将前者的root下的模型cp过去同样的位置/root/.cache/huggingface/hub/models--bert-base-chinese
跑起来了。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。