Skip to content

cluv

This is a quick overview. For more information, check out the introduction.

Installation

  1. (optional) Install UV: https://docs.astral.sh/uv/getting-started/installation/

  2. Install this package:

uv tool install git+https://github.com/mila-iqia/cluv
  1. Navigate to an existing project, and add the cluv config to your pyproject.toml:
cluv init

Usage

To view all available commands, use the --help flag:

cluv --help

Here are some common workflows:

Setup cluv in an existing project

cd ~/my-project  # Cluv requires your project to be located somewhere under your home directory (`$HOME`).
cluv init

Establish SSH connections to all clusters

cluv login

Sync your project on all clusters

cluv sync

Need to set up dataset replication with cluv sync? See the dataset sync guide.

Sync your project on a specific cluster

cluv sync rorqual

Submit a job to a specific cluster

cluv submit rorqual scripts/job.sh --time=00:10:00 -- python main.py