transformers
乐清sss
立志成为大师的萌妹子!
展开
-
Hugging Face Model Hub 预训练模型清华镜像使用
今天遇到一个错误:OSError: Couldn’t reach server at ‘https://s3.amazonaws.com/models.huggingface.co/bert/roberta-large-config.json’ to download configuration file or configuration file is not a valid JSON file. Please check network or file content here: /users/yqs原创 2021-06-04 15:17:16 · 7725 阅读 · 5 评论 -
GPT2 throw error Using pad_token, but it is not set yet
今天使用GPT2遇到的ERROR,看了一下源码,问题在这:pytorch_transformers.tokenization_utilsclass PreTrainedTokenizer(object):......@property def pad_token(self): """ Padding token (string). Log an error if used while not having been set. """ if self._pad原创 2020-06-29 18:05:14 · 4989 阅读 · 2 评论