Install Docker Desktop
Install Chocolatey
Open a command prompt: Ctrl + R
Install jq
choco install jq -yInstall curl
choco install curl -yInstall gît
Choco install git -yClone the repository
gît clone https://github.com/Smartappli/LLM_SERVER.gitLaunch Docker Desktop
Docker volume creation
cd LLM_SERVER
cd Docker
create_docker_volume.batBuild Docker image for Llama CPP Python Server - CPU with OpenBlast
cd cpu
docker build -t smartappli/llama-cpp-python-server-cpu:1.0 .Build Docker image for Llama CPP Python Server - CUDA with OpenBlast
cd ..
cd cuda
docker build -t smartappli/llama-cpp-python-server-cuda:1.0 .Run Llama cpp python server CPU
docker run -v LLM_SERVER:/models smartappli/llama-cpp-python-server-cpuor
Run Llama cpp python server GPU
docker run -v LLM_SERVER:/models smartappli/llama-cpp-python-server-cudainstall dépendances
pip install -r requirements.txtLaunch tests
cd ..
python main.pyInstall Wget, jq, and git
apt install update
apt install wget jq git Clone the repository
gît clone https://github.com/Smartappli/LLM_SERVER.gitDocker volume creation
cd LLM_SERVER
cd Docker
sudo chmod +x create_docker_volume.sh
sudo ./create_docker_volume.shBuild Docker image for Llama CPP Python Server - CPU with OpenBlast
cd cpu
docker build -t smartappli/llama-cpp-python-server-cpu:1.0 .Build Docker image for Llama CPP Python Server - CUDA with OpenBlast
cd ..
cd cuda
docker build -t smartappli/llama-cpp-python-server-cuda:1.0 .Run Llama cpp python server CPU
docker run -v LLM_SERVER:/models smartappli/llama-cpp-python-server-cpuor
Run Llama cpp python server GPU
docker run -v LLM_SERVER:/models smartappli/llama-cpp-python-server-cudainstall dépendances
pip install -r requirements.txtLaunch tests
cd ..
python main.py