项目作者: works-on-my-machine

项目描述 :
Code Server Docker image for PyTorch with python development on the browser. Includes CUDA!
高级语言: Python
项目地址: git://github.com/works-on-my-machine/pytorch-code-server.git
创建时间: 2021-01-01T14:40:37Z
项目社区:https://github.com/works-on-my-machine/pytorch-code-server

开源协议:MIT License

下载


PyTorch Code Server with CUDA

Code Server Docker image for PyTorch with python development on the browser. Contains:

  • CUDA 11.1
  • Python 3.8.3
  • PyTorch 1.81.1
  • Code Server 3.10.0 (VSCode 1.56.0)

Requirements

Quickstart

  1. $ docker run --privileged --rm -it --init \
  2. --gpus=all \
  3. --ipc=host \
  4. --user="$(id -u):$(id -g)" \
  5. --volume="$PWD:/projects" \
  6. -p 8443:8443 \
  7. ghcr.io/works-on-my-machine/pytorch-code-server:1.10.0

After running above command open localhost:8443 in your browser. Find your password under ~/.config/code-server/config.yaml

  1. $ docker exec -it <your_container_name> /bin/bash
  2. $ cat ~/.config/code-server/config.yaml

Login with your password. For a working example look at example project folder. Contains recommended extensions and settings. Example project also contains noVNC support. Checkout docker-compose.yml file for more information.

Notes

- Due to a possible bug in ms-python.python extension. After installing it revert it to a previous version by selecting “Install Another Version”. 2020.10.332292344 worked for me.

TODO

  • Better documentation
  • NO-VNC support for visualization
  • Docker compose support