eden-chan / jax_tpu_docker

Provides a Docker image for running JAX on TPU VMs. This repository contains the necessary files to build the Docker image and run JAX on TPUs with ease, making it easy for researchers to take advantage of the power of TPUs for their machine learning projects.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Jax TPU VM Docker Base Image 🚀

GitHub issues GitHub contributors GitHub last commit Docker Pulls

About

Provides a Docker image for running JAX on TPU VMs. This repository contains the necessary files to build the Docker image and run JAX on TPUs with ease, making it easy for researchers to take advantage of the power of TPUs for their machine learning projects.

This image is intended to be the base image for JAX on TPU VMs, thus you can extend it via FROM orenleung:jax_tpu or directly copying and editing the file itself.

Run Docker Container

docker run --net=host --privileged -it --rm orenleung/jax_tpu:latest

Pull Docker Container

docker pull orenleung/jax_tpu:latest

Build Docker Image

docker build -t orenleung/jax_tpu .

Anotations

Since --privileged and --net=host is required, this docker image to run will require sudo privileges, so make sure that either docker daemon is configured to run without sudo or the user is added to docker group or the user is root.

TroubleShoot

if you get this error message

docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/create": dial unix /var/run/docker.sock: connect: permission denied.
See 'docker run --help'

use sudo or add your user into the docker group Docker Post-Install Instructions

References

About

Provides a Docker image for running JAX on TPU VMs. This repository contains the necessary files to build the Docker image and run JAX on TPUs with ease, making it easy for researchers to take advantage of the power of TPUs for their machine learning projects.

License:MIT License


Languages

Language:Dockerfile 100.0%