[PR #4123] [CLOSED] Feat: Add OLLAMA_LOAD_TIMEOUT env variable #11391

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

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/4123
Author: @dcfidalgo
Created: 5/3/2024
Status: Closed

Base: mainHead: feat/add_ollama_load_timeout_env_variable


📝 Commits (3)

  • 11bcc40 Add env variable OLLAMA_LOAD_TIMEOUT in seconds
  • 0905a7b Add entry in FAQ
  • 2befddf log instead of fail

📊 Changes

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

View changed files

📝 docs/faq.md (+4 -0)
📝 llm/server.go (+10 -1)

📄 Description

Closes #3940

For certain hardware setups and models, the offloading to the GPU can take a lot of time and the user can hit a timeout. This PR makes the timeout configurable via the OLLAMA_LOAD_TIMEOUT env variable, to be provided in seconds.

@dhiltgen I added a subsection in the FAQ, since I was not sure where to document the env variable. Let me know if this is the right place.


🔄 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/4123 **Author:** [@dcfidalgo](https://github.com/dcfidalgo) **Created:** 5/3/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/add_ollama_load_timeout_env_variable` --- ### 📝 Commits (3) - [`11bcc40`](https://github.com/ollama/ollama/commit/11bcc404726caac0c05a8f854906da0c6bbc29d0) Add env variable OLLAMA_LOAD_TIMEOUT in seconds - [`0905a7b`](https://github.com/ollama/ollama/commit/0905a7b9c5cf0fd7a682431565145fc92bbbd56b) Add entry in FAQ - [`2befddf`](https://github.com/ollama/ollama/commit/2befddf1326873ab0ae798326f67a44c5ea4900e) log instead of fail ### 📊 Changes **2 files changed** (+14 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/faq.md` (+4 -0) 📝 `llm/server.go` (+10 -1) </details> ### 📄 Description Closes #3940 For certain hardware setups and models, the offloading to the GPU can take a lot of time and the user can hit a timeout. This PR makes the timeout configurable via the `OLLAMA_LOAD_TIMEOUT` env variable, to be provided in seconds. @dhiltgen I added a subsection in the FAQ, since I was not sure where to document the env variable. Let me know if this is the right place. --- <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-12 23:29:13 -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#11391