1. 安装
(1)通过pip安装
pip install transformers
(2)通过source下载
适用情况:有时通过pip安装的不是最新版本,即使更新也更新不到最新版本,可去huggingface transformers的github地址(https://github.com/huggingface/transformers)下载最新版本,安装命令如下:
pip install git+https://github.com/huggingface/transformers.git
(3)通过conda下载
conda install -c huggingface transformers
2. 使用
后续更新......
版权声明:本文为weixin_39663060原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。