赞
踩
transformers包安装
!pip install pytorch-transformers
代码
from transformers import AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("gpt2")
报错:
No module named ‘transformers.models.auto.tokenization_auto’
解决方案:
重启kernel
restart the runtime
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。