eu-north1 region:
- Virtual machine (VM) with eight GPUs and a shared filesystem for training
- Virtual machine with one GPU for inference
Prerequisites
- Web console
- CLI
- Go SDK
- Python SDK
- JavaScript SDK
Generate an SSH key pair.
Create a VM with eight GPUs with InfiniBand™ and a shared filesystem for training
- Web console
- CLI
- Go SDK
- Python SDK
- JavaScript SDK
- In the sidebar, go to Compute → Virtual machines.
- Click Create resource → Virtual machine. The creation flow is a step-by-step wizard. The sidebar shows your progress through the configuration sections. To move between sections, click Back and Next.
-
On the Compute step, configure computing resources:
- In the Platform section, select With GPUs and Regular. Then, select a platform with NVIDIA® H100, H200 or B200 GPUs. Only these platforms support GPU clusters.
- In the Settings section, select a Preset with 8 GPUs.
-
Create a GPU cluster for the VM. InfiniBand in the GPU cluster interconnects the VM GPUs for high-speed networking and efficient training.
To use a GPU cluster, select an existing one or create a new cluster:
- Click Create in the GPU cluster field.
- In the window that opens, specify the cluster name and InfiniBand fabric. To select the fabric, see InfiniBand fabrics.
- Click Create.
- In the same section, select the Project for the VM location and specify the VM name.
-
On the Storage step, configure the boot disk and attach a shared filesystem:
- In the Boot disk section, click next to the boot disk. In the window that opens, keep New VM-managed disk selected, choose an Ubuntu operating system with pre-installed NVIDIA® GPU drivers, set the size to 50 GiB and click Save.
- In the Shared filesystems section, click Attach shared filesystem.
- In the window that opens, create a new filesystem: specify its name, set the size to 50 GiB and the block size to 4 KiB. Click Attach filesystem.
-
After the window is closed, in the Mount tag field, specify a tag for mounting the filesystem to the VM.
Create your own tag, such as
my-filesystem. Make sure that it is unique within the VM. - To mount the filesystem to the VM automatically, keep the Auto mount option enabled.
- On the Network step, select the Network and Subnet. In the Public IP address field, select Auto (dynamic), so you can later connect to the VM by SSH.
-
On the Configuration step, in the Access section, add credentials so you can connect to the VM:
- In the Username and SSH key field, click Create.
-
In the window that opens, specify the username of the VM user, a public key of your SSH key pair and the credentials name to recognize the key in the list.
Do not use the
rootoradminusernames. They are reserved for internal needs and are not allowed to connect to a VM by SSH. - Click Add credentials.
- On the Review step, check the full VM configuration. To change a section quickly, click next to the corresponding block. The wizard opens the relevant step with your current settings. Then, click Create VM.
Create a VM with one GPU for inference
- Web console
- CLI
- Go SDK
- Python SDK
- JavaScript SDK
- In the sidebar, go to Compute → Virtual machines.
- Click Create resource → Virtual machine.
-
On the Compute step, configure computing resources:
- In the Platform section, select With GPUs and Regular. Then, select any GPU platform.
- In the Settings section, select a Preset with one GPU and the Project for the VM location, and specify the VM name.
- On the Storage step, in the Boot disk section, click next to the boot disk. In the window that opens, keep New VM-managed disk selected, choose an Ubuntu operating system with pre-installed NVIDIA® GPU drivers, set the size to 50 GiB and click Save.
- On the Network step, select the Network and Subnet. In the Public IP address field, select Auto (dynamic), so you can later connect to the VM by SSH.
- On the Configuration step, in the Access section, add the same username and SSH public key that you used for the VM with eight GPUs.
- On the Review step, check the full VM configuration and click Create VM.
Connect to the VMs
Connect to the VM for training via SSH:- Web console
- CLI
- Go SDK
- Python SDK
- JavaScript SDK
- In the sidebar, go to Compute → Virtual machines.
- Open the page of the VM and copy its public IP address.
-
Use the public IP address to connect to the VM:
Use the username that you specified when creating the VM.
- Web console
- CLI
- Go SDK
- Python SDK
- JavaScript SDK
Do the same steps as for the training VM. Open the page of the inference VM, copy its public IP address and then connect to the inference VM:Use the username that you specified when creating the inference VM.
What’s next
- Learn about VM and GPU types
- Learn how to create different types of VMs
- Learn more about VM networking
- Learn how to work with GPU clusters