We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
请问【第一段代码】中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")
The text was updated successfully, but these errors were encountered:
ernie在github搜一下ernie_pytorch就有了吧,我的代码上传就是最终提交版,应该不缺
Sorry, something went wrong.
好的!谢谢您!
No branches or pull requests
【第一段代码】
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")
The text was updated successfully, but these errors were encountered: