Zack Saadioui
8/26/2024
1
2
3
bash
sudo apt-get update
sudo apt-get install docker.io
1
2
3
bash
sudo systemctl start docker
sudo systemctl enable docker
1
2
3
4
5
6
7
8
bash
echo "
deb [arch=amd64] https://ollama.com/apt/debian ./
deb-src https://ollama.com/apt/debian ./
" | sudo tee /etc/apt/sources.list.d/ollama.list
dec gpg --keyserver keyserver.ubuntu.com --recv-keys 55B438D8
sudo apt-get update
sudo apt-get install ollama
1
2
bash
ollama --version
1
2
bash
ollama pull codellama:70b-instruct
1
2
bash
ollama run codellama:70b-instruct
1
curl
1
2
bash
curl -X POST http://localhost:11434/api/generate -d '{ "model": "codellama", "prompt": "Write function outputs Fibonacci sequence" }'
1
htop
1
free -h
1
2
3
4
5
6
bash
docker network create \
--driver bridge \
--subnet 172.18.0.0/16 \
--gateway 172.18.0.1 \
no-internet
Copyright © Arsturn 2024