Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mlx 0.21.1 #200351

Merged
merged 2 commits into from
Dec 26, 2024
Merged

mlx 0.21.1 #200351

Changes from 1 commit
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
21 changes: 16 additions & 5 deletions Formula/m/mlx.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,23 @@ class Mlx < Formula

desc "Array framework for Apple silicon"
homepage "https://github.com/ml-explore/mlx"
url "https://github.com/ml-explore/mlx/archive/refs/tags/v0.21.0.tar.gz"
sha256 "41f8ff1b5367b4d1a3ca9c026e857bdcf5ec777e781a957ddfea3b21d7dfea6d"
# Main license is MIT while `metal-cpp` resource is Apache-2.0
license all_of: ["MIT", "Apache-2.0"]
license all_of: [
"MIT", # main license
"Apache-2.0", # metal-cpp resource
]
head "https://github.com/ml-explore/mlx.git", branch: "main"

stable do
url "https://github.com/ml-explore/mlx/archive/refs/tags/v0.21.1.tar.gz"
sha256 "1ce949256c343a4a9fb1e53cc15f537ad2faceccbb3ad314cd47a198b534bcac"

# fix x86 tests, upstream pr ref, https://github.com/ml-explore/mlx/pull/1691
carlocab marked this conversation as resolved.
Show resolved Hide resolved
patch do
url "https://github.com/ml-explore/mlx/commit/f3dfa36a3aa67dfc4488996bf7f218f976bef9aa.patch?full_index=1"
sha256 "5b798fa17ee6fccd4b031b99d8301f9fb434545f6e4ebbbd544376403c1a4c3d"
end
end

bottle do
sha256 cellar: :any, arm64_sequoia: "fd18516eef6904ee30fff4c8a064bb5a26e2f760b160452881b737058440e991"
sha256 cellar: :any, arm64_sonoma: "23800da529205b61f80056c4b23f4977f09312cce9f078f49ed369954711599e"
Expand Down Expand Up @@ -112,7 +123,7 @@ def install
(testpath/"test.py").write <<~PYTHON
import mlx.core as mx
x = mx.array(0.0)
assert mx.cos(x) == 1.0
assert mx.allclose(mx.cos(x), mx.array(1.0))
PYTHON
system python3, "test.py"
end
Expand Down
Loading