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

求解答:一些不解之处,万分感谢!!! #4

Open
June-Qiong opened this issue Jul 6, 2021 · 2 comments
Open

求解答:一些不解之处,万分感谢!!! #4

June-Qiong opened this issue Jul 6, 2021 · 2 comments

Comments

@June-Qiong
Copy link

   请问【第一段代码】中default涉及的三个模型,是需要我自己下载到本地,然后放在同项目的checkpoints目录下吗?如果是这样的话,我没有找到模型的下载方式,只找到了引用方式,见【第二段代码】(是ernie的引用方式),所以不太清楚具体是怎么设计的呢?另外还想请问github上下载的代码还有哪些部分是您未上传的吗?

【第一段代码】
parser.add_argument(
"--vote_model_paths",
default='checkpoints/ernie,checkpoints/roberta_wwm_large_fold,checkpoints/roberta_pair',
type=str,
help="Path to pre-trained models",
)
【第二段代码】
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("nghuyong/ernie-1.0")
model = AutoModel.from_pretrained("nghuyong/ernie-1.0")

@HuiResearch
Copy link
Owner

ernie在github搜一下ernie_pytorch就有了吧,我的代码上传就是最终提交版,应该不缺

@June-Qiong
Copy link
Author

ernie在github搜一下ernie_pytorch就有了吧,我的代码上传就是最终提交版,应该不缺

好的!谢谢您!

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