Installing Private LLM on Ubuntu
Follow the following steps to install Private LLM on RedHat/CentOS:
-
Install OpenJDK 17 by running the following command:
sudo apt install openjdk-17-jdk -y -
Install System Monitoring Tool by running the following command:
sudo apt update -y
sudo apt install bottom -y -
Install unzip tool by running the following command:(If already installed skip this step)
sudo apt-get install unzip -y -
Private LLM has to be installed in /opt folder, so change the directory to
/optby running the following command:
cd /opt -
Move the Private LLM Package(
privatellm.zip) collected from SearchBlox Support Team into/opt/directory. -
Unzip the
privatellm.zipfile inside/opt/directory, by running the following command:
cd /opt/unzip privatellm.zip -
Create a SearchAI Chatbot user by running the following command:
useradd searchai -
To create a service file for Private LLM edit the file
/etc/systemd/system/privatellm.servicewith the following scripts:[Unit] Description=Private LLM Requires=network.target remote-fs.target After=network.target remote-fs.target [Service] Type=simple User=searchai WorkingDirectory=/opt/privatellm/ ExecStart=/usr/bin/java -jar /opt/privatellm/privatellm.jar Restart=on-failure RestartSec=10 [Install] WantedBy=multi-user.target -
To create a service file for CPP server, edit the file
/etc/system/system/cppserver.servicewith the following scripts:[Unit] Description=Private LLM Requires=network.target remote-fs.target After=network.target remote-fs.target [Service] Type=simple User=searchai WorkingDirectory=/opt/privatellm/ ExecStart=/usr/bin/bash /opt/privatellm/start_cpp_server.sh Restart=on-failure RestartSec=10 [Install] WantedBy=multi-user.target -
Change permission for service files by running the following commands:
sudo chmod -R 755 /etc/system/system/cppserver.service
sudo chmod -R 755 /etc/systemd/system/privatellm.service -
Start CPP service by running the following command:
systemctl start cppserver -
Start Private LLM service by running the following command:
systemctl start privatellmNOTE:
Both Private LLM and CPP service must be running for the chatbot to function correctly.
-
Stop Private LLM and CPP service by running the following command:
systemctl stop cppserver
systemctl stop privatellm
Updated 11 months ago
