Zack Saadioui
8/27/2024
1
2
3
4
5
6
7
8
9
10
bash
curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg \
&& curl -s -L https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list | \
sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | \
sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list
sudo apt-get update
sudo apt-get install -y nvidia-container-toolkit
sudo nvidia-ctk runtime configure --runtime=docker
sudo systemctl restart docker
docker run --gpus nvidia/cuda:11.5.2-base-ubuntu20.04 nvidia-smi
1
2
3
bash
git clone https://github.com/valiantlynx/ollama-docker.git
cd ollama-docker
1
docker-compose.yml
1
docker-compose.yml
webui: image: ghcr.io/open-webui/open-webui:main ports:1 2 3
- "11434:11434" volumes: - ollama:/root/.ollama
1
2
bash
docker-compose up -d
1
docker-compose.yml
1
2
bash
docker-compose ps
1
llava-phi3
1
2
bash
docker-compose down
1
docker-compose logs
Copyright © Arsturn 2024