[PR #488] [MERGED] add cuda docker image #20720

Closed
opened 2026-04-19 15:13:02 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/488
Author: @mxyng
Created: 9/7/2023
Status: Merged
Merged: 9/8/2023
Merged by: @BruceMacD

Base: brucemacd/linux-gpuHead: mxyng/generate


📝 Commits (2)

📊 Changes

6 files changed (+62 additions, -38 deletions)

View changed files

Dockerfile.cuda (+22 -0)
📝 llm/llama.cpp/generate.go (+8 -6)
📝 llm/llama.cpp/generate_darwin_amd64.go (+11 -7)
📝 llm/llama.cpp/generate_darwin_arm64.go (+10 -6)
📝 llm/llama.cpp/generate_linux.go (+11 -7)
llm/llama.cpp/generate_linux.sh (+0 -12)

📄 Description

Dockerfile.cuda requires nvidia-container-toolkit to run successfully:

$ docker build -t ollama:cuda -f Dockerfile.cuda .
$ docker run -d --gpus=all -p 11434:11434 -v $HOME/.ollama:/home/ollama/.ollama ollama:cuda

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/488 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 9/7/2023 **Status:** ✅ Merged **Merged:** 9/8/2023 **Merged by:** [@BruceMacD](https://github.com/BruceMacD) **Base:** `brucemacd/linux-gpu` ← **Head:** `mxyng/generate` --- ### 📝 Commits (2) - [`82085a1`](https://github.com/ollama/ollama/commit/82085a1ba4f1dd3dca53ea0eaf20001d94a84f20) update generate - [`9bdd4de`](https://github.com/ollama/ollama/commit/9bdd4dee24a97a5698d96cc3ee54a13adf4f0adf) add cuda docker image ### 📊 Changes **6 files changed** (+62 additions, -38 deletions) <details> <summary>View changed files</summary> ➕ `Dockerfile.cuda` (+22 -0) 📝 `llm/llama.cpp/generate.go` (+8 -6) 📝 `llm/llama.cpp/generate_darwin_amd64.go` (+11 -7) 📝 `llm/llama.cpp/generate_darwin_arm64.go` (+10 -6) 📝 `llm/llama.cpp/generate_linux.go` (+11 -7) ➖ `llm/llama.cpp/generate_linux.sh` (+0 -12) </details> ### 📄 Description `Dockerfile.cuda` requires [`nvidia-container-toolkit`](https://gitlab.com/nvidia/container-toolkit/container-toolkit) to run successfully: ``` $ docker build -t ollama:cuda -f Dockerfile.cuda . $ docker run -d --gpus=all -p 11434:11434 -v $HOME/.ollama:/home/ollama/.ollama ollama:cuda ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-19 15:13:02 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#20720