[PR #9477] [CLOSED] Support $XDG_DATA_HOME standard for storing models #44227

Closed
opened 2026-04-24 23:45:02 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/9477
Author: @abitrolly
Created: 3/3/2025
Status: Closed

Base: mainHead: xdg-data-home


📝 Commits (1)

  • c67a088 Support $XDG_DATA_HOME standard for storing models

📊 Changes

1 file changed (+33 additions, -3 deletions)

View changed files

📝 envconfig/config.go (+33 -3)

📄 Description

The lookup order:

  • $OLLAMA_MODELS
  • $XDG_DATA_HOME/ollama/models
  • $HOME/.local/share/ollama/models
  • $HOME/.ollama/models

Related to https://github.com/ollama/ollama/issues/228


🔄 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/9477 **Author:** [@abitrolly](https://github.com/abitrolly) **Created:** 3/3/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `xdg-data-home` --- ### 📝 Commits (1) - [`c67a088`](https://github.com/ollama/ollama/commit/c67a0889f8828bd24172f34862890f56dc116e2f) Support $XDG_DATA_HOME standard for storing models ### 📊 Changes **1 file changed** (+33 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `envconfig/config.go` (+33 -3) </details> ### 📄 Description The lookup order: - $OLLAMA_MODELS - $XDG_DATA_HOME/ollama/models - $HOME/.local/share/ollama/models - $HOME/.ollama/models Related to https://github.com/ollama/ollama/issues/228 --- <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-24 23:45: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#44227