Last active
October 10, 2024 20:34
-
-
Save pmcfernandes/2853f72716e26105c15e5c0ab62111c7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo -v | |
# upgrade distro | |
apt update | |
apt upgrade -y | |
# install curl and ollama | |
apt install curl -y | |
curl -fsSL https://ollama.com/install.sh | sh | |
# push from server llama2 models | |
ollama pull llama2 | |
# Add Docker's official GPG key: | |
apt-get update | |
apt-get install ca-certificates curl | |
install -m 0755 -d /etc/apt/keyrings | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc | |
chmod a+r /etc/apt/keyrings/docker.asc | |
# Add the repository to Apt sources: | |
echo \ | |
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \ | |
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \ | |
tee /etc/apt/sources.list.d/docker.list > /dev/null | |
apt-get update | |
# install Docker | |
apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin | |
# install open web ui | |
docker run -d- --network=host -v open-webui:/app/backend/data -e OLLAMA_BASE_URL=http://127.0.0.1:11434 --name open-webui --restart always ghcr.io/open-webui/open-webui:main | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Forget use with a cpu
Get a gpu like 4070 ti with 16gb or more or a 3090. Install drivers in ubuntu with cmd
sudo ubuntu-drivers install --gpgpu