[PR #4652] [MERGED] Ensure nvidia and nvidia_uvm kernel modules are loaded in install.sh script and at startup #10292

Closed
opened 2025-11-12 15:25:10 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/4652
Author: @jmorganca
Created: 5/26/2024
Status: Merged
Merged: 5/26/2024
Merged by: @jmorganca

Base: mainHead: jmorganca/cudafixes


📝 Commits (5)

  • 033a458 ensure kernel modules are loaded in install.sh script and at startup
  • 90dff36 indentation
  • 9c65d1f use SUDO variable
  • a6e0e0b restart if nouveau is detected
  • 43dbbfa consistent success message for AMD

📊 Changes

1 file changed (+21 additions, -16 deletions)

View changed files

📝 scripts/install.sh (+21 -16)

📄 Description

Make sure the nvidia and nvidia_uvm kernel modules are loaded on install.

Nvidia has a daemon that takes care of that nvidia-persistenced for restarts, so add both to its config file as well

Lastly, make sure the kernel modules are loaded when re-running the install script, even if drivers are already installed.

Fixes https://github.com/ollama/ollama/issues/4563


🔄 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/4652 **Author:** [@jmorganca](https://github.com/jmorganca) **Created:** 5/26/2024 **Status:** ✅ Merged **Merged:** 5/26/2024 **Merged by:** [@jmorganca](https://github.com/jmorganca) **Base:** `main` ← **Head:** `jmorganca/cudafixes` --- ### 📝 Commits (5) - [`033a458`](https://github.com/ollama/ollama/commit/033a458fe549d1aef670cd08073f023152d1512d) ensure kernel modules are loaded in `install.sh` script and at startup - [`90dff36`](https://github.com/ollama/ollama/commit/90dff36be8596170ab672447aa1a96bdd6ac0a57) indentation - [`9c65d1f`](https://github.com/ollama/ollama/commit/9c65d1feea946e54753410f2dc77e27563a1aab3) use `SUDO` variable - [`a6e0e0b`](https://github.com/ollama/ollama/commit/a6e0e0b9dc242a0be2affee7028b0116af827dfd) restart if nouveau is detected - [`43dbbfa`](https://github.com/ollama/ollama/commit/43dbbfa1318a280c6aca315c1d7d57e2975513b3) consistent success message for AMD ### 📊 Changes **1 file changed** (+21 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `scripts/install.sh` (+21 -16) </details> ### 📄 Description Make sure the `nvidia` and `nvidia_uvm` kernel modules are loaded on install. Nvidia has a daemon that takes care of that `nvidia-persistenced` for restarts, so add both to its config file as well Lastly, make sure the kernel modules are loaded when re-running the install script, even if drivers are already installed. Fixes https://github.com/ollama/ollama/issues/4563 --- <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 2025-11-12 15:25:10 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama-ollama#10292
No description provided.