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

Bert模型存放位置 #611

Closed
fuzaizai666 opened this issue Dec 9, 2024 · 3 comments
Closed

Bert模型存放位置 #611

fuzaizai666 opened this issue Dec 9, 2024 · 3 comments
Labels
question Further information is requested

Comments

@fuzaizai666
Copy link

您好哇,请问ner standard 任务中本地下载的bert-base-chinese模型要放在哪里?

@fuzaizai666 fuzaizai666 added the question Further information is requested label Dec 9, 2024
@LiamLYYY
Copy link
Contributor

LiamLYYY commented Dec 12, 2024

您好,在/DeepKE/example/ner/standard/conf/hydra/model/bert.yaml文件中的bert_model: 'bert-base-uncased',修改模型名为本地模型存储路径即可。
Windows示例 bert_model: "D:\models\bert-base-chinese"
Linux示例 bert_model: "/home/user/models/bert-base-chinese"
建议根据您的具体环境使用 绝对路径,避免因工作目录的变化导致模型加载失败。

@LiamLYYY
Copy link
Contributor

您好,在/DeepKE/example/ner/standard/conf/hydra/model/bert.yaml文件中的bert_model: 'bert-base-uncased',修改模型名为本地模型存储路径即可

@zxlzr
Copy link
Contributor

zxlzr commented Dec 13, 2024

请问您的问题解决了吗

@zxlzr zxlzr closed this as completed Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants