ollama/ollama

Sponsored OSS

By Ollama

Updated 1 day ago

The easiest way to get up and running with large language models.

Image
Machine learning & AI
Developer tools
1.6K

100M+

ollama/ollama repository overview

Ollama Docker image

Discord

Ollama makes it easy to get up and running with large language models locally.

CPU only
docker run -d -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama
Nvidia GPU

Install the NVIDIA Container Toolkit.

Install with Apt
  1. Configure the repository
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
  1. Install the NVIDIA Container Toolkit packages
sudo apt-get install -y nvidia-container-toolkit
Install with Yum or Dnf
  1. Configure the repository
curl -s -L https://nvidia.github.io/libnvidia-container/stable/rpm/nvidia-container-toolkit.repo \
    | sudo tee /etc/yum.repos.d/nvidia-container-toolkit.repo
  1. Install the NVIDIA Container Toolkit packages
sudo yum install -y nvidia-container-toolkit
Configure Docker to use Nvidia driver
sudo nvidia-ctk runtime configure --runtime=docker
sudo systemctl restart docker
Start the container
docker run -d --gpus=all -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama
AMD GPU

To run Ollama using Docker with AMD GPUs, use the rocm tag and the following command:

docker run -d --device /dev/kfd --device /dev/dri -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama:rocm
Run model locally

Now you can run a model:

docker exec -it ollama ollama run llama3
Try different models

More models can be found on the Ollama library.

Learn more

https://github.com/ollama/ollama

Tag summary

Content type

Image

Digest

sha256:300cbc33a

Size

1.4 GB

Last updated

1 day ago

docker pull ollama/ollama:0.25.0-rc0-rocm

This week's pulls

Pulls:

2,013,311

Last week