[PR #5580] [MERGED] Detect CUDA OS overhead #17106

Closed
opened 2026-04-16 05:52:55 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/5580
Author: @dhiltgen
Created: 7/9/2024
Status: Merged
Merged: 7/10/2024
Merged by: @dhiltgen

Base: mainHead: cuda_overhead


📝 Commits (1)

📊 Changes

2 files changed (+29 additions, -1 deletions)

View changed files

📝 gpu/gpu.go (+27 -0)
📝 gpu/types.go (+2 -1)

📄 Description

This adds logic to detect skew between the driver and
management library which can be attributed to OS overhead
and records that so we can adjust subsequent management
library free VRAM updates and avoid OOM scenarios.

Fixes #5504


🔄 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/5580 **Author:** [@dhiltgen](https://github.com/dhiltgen) **Created:** 7/9/2024 **Status:** ✅ Merged **Merged:** 7/10/2024 **Merged by:** [@dhiltgen](https://github.com/dhiltgen) **Base:** `main` ← **Head:** `cuda_overhead` --- ### 📝 Commits (1) - [`f6f759f`](https://github.com/ollama/ollama/commit/f6f759fc5fb4868125b8a25c28ce96d2c0980ef7) Detect CUDA OS Overhead ### 📊 Changes **2 files changed** (+29 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `gpu/gpu.go` (+27 -0) 📝 `gpu/types.go` (+2 -1) </details> ### 📄 Description This adds logic to detect skew between the driver and management library which can be attributed to OS overhead and records that so we can adjust subsequent management library free VRAM updates and avoid OOM scenarios. Fixes #5504 --- <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-16 05:52:55 -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#17106