[GH-ISSUE #7195] 怎样在本地建一个ollama.com/library的服务 #4570

Closed
opened 2026-04-12 15:30:13 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @czhcc on GitHub (Oct 14, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/7195

What is the issue?

能在本地建一个ollama.com/library的服务吗?

我用Modelfile时,内容是
FROM http://19.18.5.127/temp/myqwen7b.gguf
会出现错误
Error: pull model manifest: Get "http://19.18.5.127/v2/temp/myqwen7b.gguf/manifests/latest": EOF

要怎样提供一个本地的拉取服务?

OS

No response

GPU

No response

CPU

No response

Ollama version

No response

Originally created by @czhcc on GitHub (Oct 14, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/7195 ### What is the issue? 能在本地建一个ollama.com/library的服务吗? 我用Modelfile时,内容是 FROM http://19.18.5.127/temp/myqwen7b.gguf 会出现错误 Error: pull model manifest: Get "http://19.18.5.127/v2/temp/myqwen7b.gguf/manifests/latest": EOF 要怎样提供一个本地的拉取服务? ### OS _No response_ ### GPU _No response_ ### CPU _No response_ ### Ollama version _No response_
GiteaMirror added the bug label 2026-04-12 15:30:13 -05:00
Author
Owner

@mili-tan commented on GitHub (Oct 14, 2024):

Ollama 的模型通过 OCI 制品的形式进行分发。也许你应该尝试搭建一个本地 OCI Registry 镜像仓库(或许可能 Docker 镜像仓库也可以工作),并且通过 ollama push 推送本地已导入的模型到仓库中。

Ollama models are distributed as OCI artefacts. Maybe you should try to set up a local OCI Registry (and maybe possibly a Docker registry also could work) that you can use to push locally imported models to the registry via ollama push.

<!-- gh-comment-id:2412021350 --> @mili-tan commented on GitHub (Oct 14, 2024): Ollama 的模型通过 OCI 制品的形式进行分发。也许你应该尝试搭建一个本地 OCI Registry 镜像仓库(或许可能 Docker 镜像仓库也可以工作),并且通过 ollama push 推送本地已导入的模型到仓库中。 Ollama models are distributed as OCI artefacts. Maybe you should try to set up a local OCI Registry (and maybe possibly a Docker registry also could work) that you can use to push locally imported models to the registry via ollama push.
Author
Owner

@pdevine commented on GitHub (Oct 16, 2024):

@czhcc you'll need to specify a file path to the gguf, not a URL.

<!-- gh-comment-id:2415369288 --> @pdevine commented on GitHub (Oct 16, 2024): @czhcc you'll need to specify a file path to the gguf, not a URL.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#4570