1 Star 0 Fork 1

wwx/longformer

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
tvm_docker 1.34 KB
一键复制 编辑 原始数据 按行查看 历史
Iz Beltagy 提交于 2020-04-07 21:01 . first commit
FROM nvidia/cuda:10.0-cudnn7-devel-ubuntu16.04
RUN apt-get update --fix-missing
COPY install/ubuntu_install_core.sh /install/ubuntu_install_core.sh
RUN bash /install/ubuntu_install_core.sh
RUN apt update
RUN apt-get install -y software-properties-common
RUN apt-get install -y vim
RUN add-apt-repository -y ppa:deadsnakes/ppa
RUN apt update
RUN apt install -y python3.7
RUN ln -sf /usr/bin/python3.7 /usr/bin/python3
RUN apt install -y python3-pip
# LLVM
RUN echo deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-8 main \
>> /etc/apt/sources.list.d/llvm.list && \
wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add - && \
apt-get update && apt-get install -y --force-yes llvm-8
RUN pip3 install numpy pytest cython decorator scipy ipython ipdb torch==1.2.0 torchvision tensorboardx tensorboard pytest
RUN apt-get install -y python3.7-dev
RUN pip3 install fairseq==v0.9.0
# Build TVM
COPY install/install_tvm_gpu.sh /install/install_tvm_gpu.sh
RUN sed -i 's/--depth=1//g' install/install_tvm_gpu.sh
RUN bash /install/install_tvm_gpu.sh
# Environment variables
ENV PYTHONPATH=/usr/tvm/python:/usr/tvm/topi/python:/usr/tvm/nnvm/python/:/usr/tvm/vta/python:${PYTHONPATH}
ENV PATH=/usr/local/nvidia/bin:${PATH}
ENV PATH=/usr/local/cuda/bin:${PATH}
ENV LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/nvidia/lib64:${LD_LIBRARY_PATH}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wwx_ruc/longformer.git
git@gitee.com:wwx_ruc/longformer.git
wwx_ruc
longformer
longformer
master

搜索帮助