Skip to content

avirupdas55/Docker_JAX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JAX Docker Image with CUDA 12.1 Support

JAX Logo

Overview

This repository contains build scripts for creating a Docker image that enables running JAX with CUDA 12.1 support. The pre-built image is available on Docker Hub with the default tag avirupdas55/jax:v1.

Getting Started

To use the pre-built Docker image with the default tag, simply pull it from Docker Hub:

docker pull avirupdas55/jax:v1

If you prefer to build the image locally using the provided build script, follow the steps below.

Building the Docker Image Locally

  1. Clone this repository:
git clone https://github.com/agent-lab/JAX_Docker.git
  1. Navigate to the repository:
cd JAX_Docker
  1. Run the build script with optional arguments for custom tag and Docker Hub ID:
bash docker_build.sh custom-tag your-docker-id

Replace custom-tag with the desired tag name and your-docker-id with your Docker Hub ID. If no arguments are provided, the default tag avirupdas55/jax:v1 will be used.

Running JAX in the Docker Container

Once you have the Docker image, you can run JAX scripts inside a container. Use the following command to start a container:

docker run -it --gpus all avirupdas55/jax:v1

This command will launch a container with access to all GPUs.

Starting a Jupyter Notebook Kernel

You can also start a Jupyter notebook kernel inside the Docker container. Use the following command:

jupyter-notebook --ip='0.0.0.0' --port=8888 --no-browser --allow-root --NotebookApp.allow_origin='*'

Example Usage

You can run JAX scripts within the Docker container. For example:

docker run -it --gpus all avirupdas55/jax:v1 python my_jax_script.py

Replace my_jax_script.py with the name of your JAX script.

Using with Singularity

To use the Docker image with Singularity, follow these steps:

  1. Run JAX script in the Singularity container:
singularity exec --nv docker://avirupdas55/jax:v1 python my_jax_script.py

Replace my_jax_script.py with the name of your JAX script.

Additional Information

Feel free to customise the Dockerfile, build script, and repository to suit your specific requirements.

Happy coding with JAX! 🚀

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published