Scale up your ML infra with on-premise GPUs
In the background, VESSL Clusters leverages GPU-accelerated Docker containers and Kubernetes pods. It abstracts the complex compute backends and system details of Kubernetes-backed GPU infrastructure into an easy-to-use web interface and simple CLI commands. Data Scientists and Machine Learning Researchers without any software or DevOps backgrounds can use VESSL's single-line CURL command to set up and configure on-premise GPU servers for ML.
VESSL’s cluster integration is composed of four primitives.
- VESSL API Server — Enables communication between the user and the GPU clusters, through which users can launch containerized ML workloads.
- VESSL Cluster Agent — Sends information about the clusters and workloads running on the cluster such as the node specifications and model metrics.
- Control plane node — Acts as the 🔗 cluster-wide control tower and orchestrates subsidiary worker nodes.
- Worker nodes — Run specified ML workloads based on the runtime spec and environment received from the control plane node.
Integrating more powerful, multi-node GPU clusters for your team is as easy as integrating your personal laptop. To make the process easier, we’ve prepared a single-line curl command that installs all the binaries and dependencies on your server.
There is an ongoing 🔗 issue related to Kubernetes hostname containing capital letters. Please make sure your machine's hostname is in lowercase.
Note that Ubunto 18.04 or Centos 7.9 or higher Linux OS is installed on your server.
You can install all the dependencies required for cluster integration using a single-line
curlcommand. The command
- Installs 🔗 k0s, a lightweight Kubernetes distribution, and designates and configures a control plane node.
- Generates a token and a command for connecting worker nodes to the control plane node configured above.
If you wish to use your control plane solely for the control plane node — meaning not running any ML workloads on the control plane node and only using it for admin and monitoring purposes — add a
--taint-controllerflag at the end of the command.
curl -sSLf https://install.dev.vssl.ai | sudo bash -s -- --role=controller
Upon installing all the dependencies, the command returns a follow-up command with a token. You can use this to add worker nodes to the control plane. If you don’t want to add an additional worker node you can skip to the next step.
curl -sSLf https://install.dev.vssl.ai | sudo bash -s -- --role worker --token '[TOKEN_HERE]'
You can confirm that your control plane and worker node have been successfully configured using a
sudo k0s kubectl get nodes
You are now ready to integrate the Kubernetes cluster with VESSL. Make sure you have VESSL Client installed on the server and configured for your organization.
pip install vessl --upgrade
The following single-line command connects your Kubernetes-backed GPU cluster to VESSL. Note the --mode multi flag, specifying multi-node cluster integraiton.
vessl cluster create --name='[CLUSTER_NAME_HERE]' --mode=multi
By this point, you have successfully completed the integration.
You can use VESSL CLI command or visit 🗂️ Clusters to confirm your integration.
vessl cluster list
Here are common problems that our users face as they integrate on-premise Clusters. You can use the
journalctlcommand to get a more detailed log of the issue. Please share this log as you reach out for support.
sudo journalctl -u k0scontroller | tail -n 20
kernel_clsuter.py111] VESSL cluster agent installed. Waiting for the agent to be connected with VESSL...
_base.py:107] VesslApiException: PermissionDenied (403): Permission denied.
It's likely that you don't have full access to install VESSL cluster agent on the server. Contact your organization's cluster and infrastructure administrator to receive help.
kernel_cluster.py:289] Existing VESSL cluster installation found! getting cluster information...
_base.py:107] VesslApiException: NotFound (404) Requested entity not found.
Try again after running the following command:
sudo helm uninstall vessl =n vessl --kubeconfig="var/lib/k0s/pki/admin/conf"
Invalid value: "k0s-ctrl-[HOSTNAME]"
leaderelection.go:334] error initially creating leader election record: Lease.coordination.k8s.io "k0s-ctrl-[HOSTNAME]" is invalide: metadata.name: Invalid value: "k0s-ctrl-[HOSTNAME]": a lwoercase RFC 1123 subdomain must consist of lowercase alphanumeric characters.
There is an ongoing 🔗 issue related to Kubernetes hostname containing capital letters. Your hostname must be in lowercase alphanumeric characters.
You can solve this issue by contacting your organization's cluster and infrastructure administrator to change your hostname, or by changing your hostname yourself using the following
Changing your hostname may have unexpected side effects and is thus prohibited under your organization's IT policy.
sudo hostname [HOSTNAME]
sudo systemctl restart k0scontroller.