GithubHelp home page GithubHelp logo

demopl's Introduction

mnist-vit-pl

环境搭建

# 安装虚拟环境 transformers
VERSION_ALIAS="transformers"  pyenv install miniconda3-4.7.12
pyenv global transformers

# 切换 python 版本到 3.9.12
conda install python="3.9.12"

# 安装 pytorch
conda install pytorch torchvision torchaudio cudatoolkit=11.3 -c pytorch
# for a100
 pip3 install torch==1.9.1+cu111 torchvision==0.10.1+cu111 torchaudio==0.9.1 -f https://download.pytorch.org/whl/torch_stable.html

# 安装 pytorch-lightning
pip install --trusted-host mirrors.aliyun.com -i  http://mirrors.aliyun.com/pypi/simple/ pytorch-lightning

# 安装 torchmetircs
pip install --trusted-host mirrors.aliyun.com -i  http://mirrors.aliyun.com/pypi/simple/ torchmetrics

# 安装 transformers
pip install --trusted-host mirrors.aliyun.com -i  http://mirrors.aliyun.com/pypi/simple/ transformers==4.18

# 安装 jupyter
pip install --trusted-host mirrors.aliyun.com -i  http://mirrors.aliyun.com/pypi/simple/ jupyter

demopl's People

Contributors

shinoyuki222 avatar

Stargazers

LiuDa avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.