[PR #9294] [MERGED] server/internal: copy bmizerany/ollama-go to internal package #12911

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

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/9294
Author: @bmizerany
Created: 2/23/2025
Status: Merged
Merged: 2/25/2025
Merged by: @bmizerany

Base: mainHead: bmizerany/ollama-go


📝 Commits (1)

  • f61606f server/internal: copy bmizerany/ollama-go to internal package

📊 Changes

29 files changed (+4974 additions, -6 deletions)

View changed files

📝 .github/workflows/test.yaml (+1 -0)
📝 .gitignore (+1 -1)
📝 .golangci.yaml (+3 -5)
server/internal/cache/blob/cache.go (+544 -0)
server/internal/cache/blob/cache_test.go (+685 -0)
server/internal/cache/blob/casecheck_test.go (+93 -0)
server/internal/cache/blob/digest.go (+95 -0)
server/internal/cache/blob/digest_test.go (+63 -0)
server/internal/chunks/chunks.go (+78 -0)
server/internal/chunks/chunks_test.go (+65 -0)
server/internal/client/ollama/registry.go (+802 -0)
server/internal/client/ollama/registry_test.go (+656 -0)
server/internal/client/ollama/trace.go (+48 -0)
server/internal/cmd/opp/internal/safetensors/safetensors.go (+220 -0)
server/internal/cmd/opp/opp.go (+366 -0)
server/internal/cmd/oppbench/oppbench.go (+11 -0)
server/internal/cmd/oppbench/oppbench_test.go (+107 -0)
server/internal/internal/backoff/backoff.go (+48 -0)
server/internal/internal/backoff/backoff_synctest_test.go (+40 -0)
server/internal/internal/backoff/backoff_test.go (+38 -0)

...and 9 more files

📄 Description

This commit copies (without history) the bmizerany/ollama-go repository with the intention of integrating it into the ollama as a replacement for the pushing, and pulling of models, and management of the cache they are pushed and pulled from.

New homes for these packages will be determined as they are integrated and we have a better understanding of proper package boundaries.


🔄 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/9294 **Author:** [@bmizerany](https://github.com/bmizerany) **Created:** 2/23/2025 **Status:** ✅ Merged **Merged:** 2/25/2025 **Merged by:** [@bmizerany](https://github.com/bmizerany) **Base:** `main` ← **Head:** `bmizerany/ollama-go` --- ### 📝 Commits (1) - [`f61606f`](https://github.com/ollama/ollama/commit/f61606fb0843f9ffc011ab8c2b411dd7d2552f00) server/internal: copy bmizerany/ollama-go to internal package ### 📊 Changes **29 files changed** (+4974 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/test.yaml` (+1 -0) 📝 `.gitignore` (+1 -1) 📝 `.golangci.yaml` (+3 -5) ➕ `server/internal/cache/blob/cache.go` (+544 -0) ➕ `server/internal/cache/blob/cache_test.go` (+685 -0) ➕ `server/internal/cache/blob/casecheck_test.go` (+93 -0) ➕ `server/internal/cache/blob/digest.go` (+95 -0) ➕ `server/internal/cache/blob/digest_test.go` (+63 -0) ➕ `server/internal/chunks/chunks.go` (+78 -0) ➕ `server/internal/chunks/chunks_test.go` (+65 -0) ➕ `server/internal/client/ollama/registry.go` (+802 -0) ➕ `server/internal/client/ollama/registry_test.go` (+656 -0) ➕ `server/internal/client/ollama/trace.go` (+48 -0) ➕ `server/internal/cmd/opp/internal/safetensors/safetensors.go` (+220 -0) ➕ `server/internal/cmd/opp/opp.go` (+366 -0) ➕ `server/internal/cmd/oppbench/oppbench.go` (+11 -0) ➕ `server/internal/cmd/oppbench/oppbench_test.go` (+107 -0) ➕ `server/internal/internal/backoff/backoff.go` (+48 -0) ➕ `server/internal/internal/backoff/backoff_synctest_test.go` (+40 -0) ➕ `server/internal/internal/backoff/backoff_test.go` (+38 -0) _...and 9 more files_ </details> ### 📄 Description This commit copies (without history) the bmizerany/ollama-go repository with the intention of integrating it into the ollama as a replacement for the pushing, and pulling of models, and management of the cache they are pushed and pulled from. New homes for these packages will be determined as they are integrated and we have a better understanding of proper package boundaries. --- <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-13 00:12:34 -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#12911