Installation

NVIDIA GPU Driver

Open a terminal, execute the following commands to install NVIDIA CPU driver.

sudo apt install nvidia-utils-535
sudo apt install nvidia-driver-535
circle-exclamation

Now run sudo reboot to reboot the host. After rebooting, execute nvidia-smi command. You should see the information regarding NVIDIA GPU in the output.

Install NVIDIA Toolkit (CUDA)

In the terminal, execute the following commands to install CUDA, the NVIDIA toolkit.

Disk Setup (LVM Setting)

To configure the AI SSD for directing AIDE in executing fine-tuning tasks, follow these steps:

  1. Install LVM

  1. Check Disks Location

circle-info

Ensure that ai100 device identifiers are nvme6n1 and nvme8n1. Update if necessary

  1. Clear Disks (Just In Case)

  1. Create LVM

  1. Mount LVM

  • Format the disk

  • Mount the disk

  1. Make Mount Persistent

circle-info

To remove permanent mount setting, run: sudo sed -i '/\/dev\/ai\/ai/d' /etc/fstab

  1. Successful Example

If LVM setting is successful, you will see the following successful configuration when running command lsblk.

If you need to dissolve LVM setting. Just run the following commands:

  1. Swap File Setting

Enable swap space to provide extra memory for DRAM, allowing you to increase batch sizes if there is sufficient

  • Create swap file

  • Modify permission

  • Initialize swap file

  • Enable the swap

  • Make the swap permanent

If you would like to remove the swap, please make sure to follow the steps below to prevent unexpected system issues.

Install Docker

  • Run the following command to uninstall all conflicting packages:

apt-get might report that you have none of these packages installed.

  • Set up Docker's apt repository.

  • Install the Docker packages.

  • Add user to docker group.

Here ACCOUNT is the account you are logging into. After this, remember to re-login againg so that your account is a member of docker group.

  • Verify that the installation is successful.

This command downloads a test image and runs it in a container. When the container runs, it prints a confirmation message and exits.

Install NVIDIA Container Toolkit

  • Configure the production repository.

  • Update the packages list from the repository.

  • Install the NVIDIA Container Toolkit packages.

  • Configure the container runtime by using the nvidia-ctk command.

  • Restart the Docker daemon.

Install GenAI Studio

GenAI Studio make an installer so that users can install it with ease. Normally, what you need to do is to download it and, then, execute it.

circle-info

The GenAI Studio installation file is approximately 30GB. To ensure smooth system installation, we recommend having at least 100GB of free disk space.

Please contact your technical window for the installation file. the named like GenAI-Studio_<VERSIOIN>_setup.run format. Don't forget move the installer you downloaded to the target host if your download does not run on. Finally, just execute the downloaded installer file. Answer the questions during the process. You can tell that's really a simple step.

circle-check

Starts GenAI Studio Up

If everything goes well the GenAI Studio should be installed under $HOME/Advantech/GenAI-Studio directory. Change your directory to ~/Advantech/GenAI-Studio/bin and run ./app-up. After seconds, open a browser to visit the target host with 3001 port.

circle-info

Before v1.1.0 release, the installation path is $HOME/GenAI-Studio.

Last updated