[PR #3770] [CLOSED] Allow User-Defined GPU Selection for Ollama #57970

Closed
opened 2026-04-29 12:46:01 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/3770
Author: @chornox
Created: 4/20/2024
Status: Closed

Base: mainHead: main


📄 Description

Currently, Ollama defaults to using NVIDIA GPUs. This PR introduces the ability for users to choose their preferred GPU by leveraging the existing CUDA_VISIBLE_DEVICES environment variable.

By setting CUDA_VISIBLE_DEVICES to a "-1" (invalid value), users can ensure Ollama respects their GPU preference, regardless of brand. This change is backwards compatible and will not impact users without AMD GPUs.


🔄 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/3770 **Author:** [@chornox](https://github.com/chornox) **Created:** 4/20/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📄 Description Currently, Ollama defaults to using NVIDIA GPUs. This PR introduces the ability for users to choose their preferred GPU by leveraging the existing `CUDA_VISIBLE_DEVICES` environment variable. By setting `CUDA_VISIBLE_DEVICES` to a "-1" (invalid value), users can ensure Ollama respects their GPU preference, regardless of brand. This change is backwards compatible and will not impact users without AMD GPUs. --- <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-29 12:46: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#57970