Install Determined on Slurm/PBS¶
This document describes how to deploy Determined on an HPC cluster managed by the Slurm or PBS workload managers.
The Determined master and launcher installation packages are configured for installation on a single login or administrator Slurm/PBS cluster node.
Install Determined Master¶
After the node has been selected and the Installation Requirements have been fulfilled and configured, install and configure the Determined master:
Install the on-premises Determined master component (not including the Determined agent) as described in the Install Determined Using Linux Packages document. Perform the installation and configuration steps, but stop before starting the
determined-masterservice, and continue with the steps below.
Install the launcher.
For an example RPM-based installation, run:
sudo rpm -ivh hpe-hpc-launcher-<version>.rpm
On Debian distributions, instead run:
sudo apt install ./hpe-hpc-launcher-<version>.deb
The installation configures and enables the
launcherservice, which provides HPC management capabilities.
If launcher dependencies are not satisfied, warning messages are displayed. Install or update missing dependencies or adjust the
ld_libary_pathin the next step to locate the dependencies.
Configure and Verify Determined Master on HPC Cluster¶
The launcher automatically adds a prototype
resource_managersection for Slurm/PBS if not already present upon startup of the launcher service. Edit the provided
resource_managerconfiguration section for your particular deployment. For RPM-based installations, the configuration file is typically the
In this example, with Determined and the launcher colocated on a node named
login, the section might resemble:
port: 8080 ... resource_manager: type: slurm master_host: login master_port: 8080 host: localhost port: 8181 protocol: http container_run_type: singularity auth_file: /root/.launcher.token job_storage_root: path: ld_library_path: tres_supported: true slot_type: cuda
The installer provides default values, however, you should explicitly configure the following cluster options:
The cluster workload manager (
The host name of the Determined master. This is the name the compute nodes will utilize to communicate with the Determined master.
Communication port used by the launcher. Update this value if there are conflicts with other services on your cluster.
Shared directory where job-related files are stored. This directory must be visible to the launcher and from the compute nodes.
The container type to be launched on Slurm (
podman). The default type is
singularitywhen using Apptainer.
Shared directory on all compute nodes where Singularity/Apptainer images are hosted. Unused unless
singularity. See Provide a Container Image Cache for details on how this option is used.
By default, the launcher runs from the root account. Create a local account and group and update these values to enable running from another account.
If any of the launcher dependencies are not on the default path, you can override the default by updating this value.
See the slurm/pbs section of the cluster configuration reference for the full list of configuration options.
After changing values in the
resource_managersection of the
/etc/determined/master.yamlfile, restart the launcher service:
sudo systemctl restart launcher
Verify successful launcher startup using the
systemctl status launchercommand. If the launcher fails to start, check system log diagnostics, such as
journalctl --since=10m -u launcher, make the needed changes to the
/etc/determined/master.yamlfile, and restart the launcher.
If the installer reported incorrect dependencies, verify that they have been resolved by changes to the
ld_library_pathin the previous step:
Reload the Determined master to get the updated configuration:
sudo systemctl restart determined-master
Verify successful determined-master startup using the
systemctl status determined-mastercommand. If the launcher fails to start, check system log diagnostics, such as
journalctl --since=10m -u determined-master, make the needed changes to the
/etc/determined/master.yamlfile, and restart the determined-master.
If the compute nodes of your cluster do not have internet connectivity to download Docker images, see Provide a Container Image Cache.
Log into Determined, see User Accounts. The Determined user must be linked to a user on the HPC cluster. If logged in with a Determined administrator account, the following example creates a Determined user account that is linked to the current user’s Linux account. For more details see Run Tasks as Specific Agent Users.
det user create $USER det user link-with-agent-user --agent-uid $(id -u) --agent-gid $(id -g) --agent-user $USER --agent-group employee $USER det user login $USER
Verify the configuration by sanity-checking your Determined configuration:
det command run hostname
A successful configuration reports the hostname of the compute node selected by Slurm to run the job.
Run a simple distributed training job such as the PyTorch MNIST Tutorial to verify that it completes successfully. This validates Determined master and launcher communication, access to the shared filesystem, GPU scheduling, and highspeed interconnect configuration. For more complete validation, ensure that the
slots_per_trialis at least twice the number of GPUs available on a single node.