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

requirements #16

Closed
Cgetier520990 opened this issue May 22, 2024 · 3 comments
Closed

requirements #16

Cgetier520990 opened this issue May 22, 2024 · 3 comments

Comments

@Cgetier520990
Copy link

requirements.txt文件所要求的库不全,并且没有版本号,运行出问题了

@shibing624
Copy link
Owner

啥问题?

@Cgetier520990
Copy link
Author

requirments.txt文件中只有对应库的名称,没有对应的库的版本,有可能在运行出现版本不兼容的问题。
比如在运行lr.classification_demo.py文件时,出现了一下报错
from transformers.models.camembert.modeling_camembert import (
ImportError: cannot import name 'CAMEMBERT_PRETRAINED_MODEL_ARCHIVE_LIST' from 'transformers.models.camembert.modeling_camembert' (D:\anaconda\envs\xg\lib\site-packages\transformers\models\camembert\modeling_camembert.py)
这个问题应该是我安装的_transformer4.41.0_中没有_CAMEMBERT_PRETRAINED_MODEL_ARCHIVE_LIST_,因此求该项目的库的配置信息。

@shibing624
Copy link
Owner

fixed, update code.

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