@@ -3,29 +3,20 @@ class Mlx < Formula
33
44 desc "Array framework for Apple silicon"
55 homepage "https://github.com/ml-explore/mlx"
6+ url "https://github.com/ml-explore/mlx/archive/refs/tags/v0.22.0.tar.gz"
7+ sha256 "c8c890f450a4c09704b2597c56e111fbd4eb2c75d66a9c8f1fb1096c3e2b2cbe"
68 license all_of : [
79 "MIT" , # main license
810 "Apache-2.0" , # metal-cpp resource
911 ]
1012 head "https://github.com/ml-explore/mlx.git" , branch : "main"
1113
12- stable do
13- url "https://github.com/ml-explore/mlx/archive/refs/tags/v0.21.1.tar.gz"
14- sha256 "1ce949256c343a4a9fb1e53cc15f537ad2faceccbb3ad314cd47a198b534bcac"
15-
16- # fix x86 tests, upstream pr ref, https://github.com/ml-explore/mlx/pull/1691
17- patch do
18- url "https://github.com/ml-explore/mlx/commit/f3dfa36a3aa67dfc4488996bf7f218f976bef9aa.patch?full_index=1"
19- sha256 "5b798fa17ee6fccd4b031b99d8301f9fb434545f6e4ebbbd544376403c1a4c3d"
20- end
21- end
22-
2314 bottle do
24- sha256 cellar : :any , arm64_sequoia : "575a6fdd16b8e35a74c193a8e34caace3c057e1dae8829bf8b3e5320f5c41e5a "
25- sha256 cellar : :any , arm64_sonoma : "889879a0ab49703e93eb5ae95d973ae957b72ce7cbb4ec3ea924bd6e14dc2790 "
26- sha256 cellar : :any , arm64_ventura : "a5732b975b0fa32bd286ddc3889d0a70c8cb2203ca9ed35f6822f4f106f06761 "
27- sha256 cellar : :any , sonoma : "a94154645f164f56c18c97a2e11056bdfefbc505e7f982b2562c3a52bda285b1 "
28- sha256 cellar : :any , ventura : "95d49fdef66a38e083d0380d72b6feabd6e386c01f0556a1e7b711ef30cf99e7 "
15+ sha256 cellar : :any , arm64_sequoia : "fa43fa85874c6e49fabbe6416594877d42e280d6193b30324c99f43938470bf4 "
16+ sha256 cellar : :any , arm64_sonoma : "c634ecbffa237f41f53090ad7f54d93d0d82a526e8f2b9cf2eec83fdce9af2ed "
17+ sha256 cellar : :any , arm64_ventura : "0d523a90879e8017250d0e584515a150e0add3778988197e7f643a29ef9f88ff "
18+ sha256 cellar : :any , sonoma : "0be5d40a557956639da8973525a7772803bf1024266f5dc75efc8b8ed0258a48 "
19+ sha256 cellar : :any , ventura : "53f553cf4346a3c0df5f6090feab202be1a94e3d57ab984696609f6988eac405 "
2920 end
3021
3122 depends_on "cmake" => :build
@@ -46,12 +37,12 @@ class Mlx < Formula
4637 depends_on "openblas"
4738 end
4839
49- # https://github.com/ml-explore/mlx/blob/v#{version}/CMakeLists.txt#L91C21-L91C97
40+ # https://github.com/ml-explore/mlx/blob/v#{version}/CMakeLists.txt#L98
5041 # Included in not_a_binary_url_prefix_allowlist.json
5142 resource "metal-cpp" do
5243 on_arm do
53- url "https://developer.apple.com/metal/cpp/files/metal-cpp_macOS15_iOS18-beta .zip"
54- sha256 "d0a7990f43c7ce666036b5649283c9965df2f19a4a41570af0617bbe93b4a6e5 "
44+ url "https://developer.apple.com/metal/cpp/files/metal-cpp_macOS15_iOS18.zip"
45+ sha256 "0433df1e0ab13c2b0becbd78665071e3fa28381e9714a3fce28a497892b8a184 "
5546 end
5647 end
5748
0 commit comments