1.下载 huggingface model方法
下载 huggingface model的权重、vocab.txt、config.json。只要将第三行,链接地址替换对应的model地址。例如gpt2
!sudo apt-get install git-lfs
!git lfs install
!git clone https://huggingface.co/hfl/chinese-roberta-wwm-ext-large/
下载 huggingface model的权重、vocab.txt、config.json。只要将第三行,链接地址替换对应的model地址。例如gpt2
!sudo apt-get install git-lfs
!git lfs install
!git clone https://huggingface.co/hfl/chinese-roberta-wwm-ext-large/