Skip to content
Open
Changes from all commits
提交
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Formula/o/ollama.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
class Ollama < Formula
desc "Create, run, and share large language models (LLMs)"
homepage "https://ollama.com/"
url "https://github.com/ollama/ollama.git",
tag: "v0.33.0",
revision: "ebf200f9521da9739a576a8bbf8cbf94e0cec6e3"
tag: "v0.33.1",
revision: "13f2fb8c99278469b954429d5541019f4d83a4d0"
license "MIT"
head "https://github.com/ollama/ollama.git", branch: "main"

Expand Down Expand Up @@ -43,8 +43,8 @@
# Pinned dependency required by llama-server
resource "llama.cpp" do
url "https://github.com/ggml-org/llama.cpp.git",
tag: "b10488",
revision: "9d77fa17254e1dee4b9e92504c91611a60b1359f"
tag: "b10630",
revision: "d222767c7a6516559a3f49e7721b6c6b1acc87b4"

livecheck do
url "https://raw.githubusercontent.com/ollama/ollama/refs/tags/v#{LATEST_VERSION}/LLAMA_CPP_VERSION"
Expand Down Expand Up @@ -77,7 +77,7 @@
]

system "cmake", "-S", "llama/server", "-B", "llama-server", *args, *std_cmake_args(install_prefix: libexec)
system "cmake", "--build", "llama-server"
system "cmake", "--build", "llama-server", "--target", "llama-server", "llama-quantize"
system "cmake", "--install", "llama-server", "--component", "llama-server"

# Remove ui app directory
Expand Down Expand Up @@ -131,7 +131,7 @@
OLLAMA_KV_CACHE_TYPE: "q8_0"
end

test do

Check failure on line 134 in Formula/o/ollama.rb

View workflow job for this annotation

GitHub 操作 / macOS 14-arm64

`brew test --verbose ollama` failed on macOS Sonoma (14) on Apple Silicon!

/opt/homebrew/Library/Homebrew/test.rb:63:in '<main>'
port = free_port
ENV["OLLAMA_HOST"] = "localhost:#{port}"

Expand Down
Loading