Installation instructions#
There are two ways to install this project
- Using Conda (recommended for newcomers)
- Using a development container (recommended if you are able to install Docker on your machine)
Installation#
-
Clone the repository:
-
Installing dependencies
You can install the package using
pip install -e .
, although we recommend using the Rye package manager. This makes it easier to switch python versions and to add or change the dependencies later on.-
On your machine:
-
On the Mila cluster:
If you're on the
mila
cluster, you can run this setup script (on a compute node):
-
Using a development container#
This repo provides a Devcontainer configuration for Visual Studio Code to use a Docker container as a pre-configured development environment. This avoids struggles setting up a development environment and makes them reproducible and consistent. and make yourself familiar with the container tutorials if you want to use them. In order to use GPUs, you can enable them within the .devcontainer/devcontainer.json
file.
-
Setup Docker on your local machine
On an Linux machine where you have root access, you can install Docker using the following commands:
On Windows or Mac, follow these installation instructions
-
(optional) Install the nvidia-container-toolkit to use your local machine's GPU(s).
-
Install the Dev Containers extension for Visual Studio Code.
-
When opening repository in Visual Studio Code, you should be prompted to reopen the repository in a container:
Alternatively, you can open the command palette (Ctrl+Shift+P) and select
Dev Containers: Rebuild and Reopen in Container
.