yhcc / BARTABSA

142 stars 28 forks source link

OSError #12

Open xdcui-nlp opened 2 years ago

xdcui-nlp commented 2 years ago

python train.py --dataset pengb/14lap 你好,我尝试运行你的代码然后遇到了这个问题,但是本地能正常运行,在服务器上就有这个问题,我以为是python版本太低,换了python3.8还是出现了这个问题。 OSError: libstdc++.so.6: cannot open shared object file: No such file or directory

TGLTommy commented 2 years ago

建议你用docker下载镜像:docker pull pytorch/pytorch:1.11.0-cuda11.3-cudnn8-runtime ,然后启一个容器,在里面安装transformers==3.4.0 , 运行脚本就可以。亲测可行

xdcui-nlp commented 2 years ago

建议你用docker下载镜像:docker pull pytorch/pytorch:1.11.0-cuda11.3-cudnn8-runtime ,然后启一个容器,在里面安装transformers==3.4.0 , 运行脚本就可以。亲测可行

好的谢谢,我尝试一下。