Multi-Node Launcher is a solution for easily setting up and managing GPU nodes using Ansible. This guide provides step-by-step instructions to quickly configure your system and manage your GPU nodes.
Multi-Node Launcher automates the setup process for GPU nodes with Ansible. It ensures that required dependencies are installed and configuration is performed in a reliable, idempotent manner.
Before you start, ensure that you have met the following requirements:
- Ansible installed on your control node
- SSH access to target nodes
- Sudo privileges on target nodes
- NVIDIA GPU(s) on target nodes
- Internet access for package downloads
You can quickly set up your GPU nodes by running the following one-liner:
curl -sL https://raw.githubusercontent.com/Ratio1/r1setup/refs/heads/main/install.sh -o install.sh && bash install.sh && rm install.shThis command will:
- Create a temporary setup directory
- Download necessary scripts
- Execute prerequisite checks
- Perform Ansible setup and configuration
Before running the playbook, follow these steps:
- Install required Ansible collections:
ansible-galaxy collection install -r requirements.yml
- Configure your hosts by editing the
inventory/hosts.ymlfile. - If you need to track or bump the deployed
edge_node.servicetemplate revision, editgroup_vars/mnl.ymland setmnl_service_version. r1setupstores the last applied service file version per node in its saved config; missing values are treated asv0.
- Test connectivity to your nodes:
ansible all -i inventory/hosts.yml -m ping
- Execute the playbook:
ansible-playbook -i inventory/hosts.yml playbooks/site.yml
If you encounter issues during setup or execution, consider the following:
- Verify that all prerequisites are met.
- Ensure that SSH keys and permissions are correctly configured.
- Consult the Ansible logs for detailed error messages.
- Search for known issues on the project's GitHub repository or open a new issue.
- The playbook is idempotent and can be run multiple times safely.
- Ensure adequate cooling and power for GPU operations.
- For macOS users: This setup uses Homebrew for package management. Ensure Homebrew is installed prior to running the setup.