今天尝试运行bert,运行报错:
You will also need to installNVIDIA Apex.
需要安装apex,按照要求安装:
git clone https://github.com/NVIDIA/apex
cd apex
pip install-v--no-cache-dir--global-option="--cpp_ext"--global-option="--cuda_ext"./
但是安装失败。
解决:
git clone https://github.com/NVIDIA/apex
cd apex
pip install./# 直接安装即可,不需要哪些参数