diff --git a/Formula/m/mlx.rb b/Formula/m/mlx.rb index b902ae3ca780b..0623d4d8794f3 100644 --- a/Formula/m/mlx.rb +++ b/Formula/m/mlx.rb @@ -3,29 +3,20 @@ 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.22.0.tar.gz" + sha256 "c8c890f450a4c09704b2597c56e111fbd4eb2c75d66a9c8f1fb1096c3e2b2cbe" 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 - 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: "575a6fdd16b8e35a74c193a8e34caace3c057e1dae8829bf8b3e5320f5c41e5a" - sha256 cellar: :any, arm64_sonoma: "889879a0ab49703e93eb5ae95d973ae957b72ce7cbb4ec3ea924bd6e14dc2790" - sha256 cellar: :any, arm64_ventura: "a5732b975b0fa32bd286ddc3889d0a70c8cb2203ca9ed35f6822f4f106f06761" - sha256 cellar: :any, sonoma: "a94154645f164f56c18c97a2e11056bdfefbc505e7f982b2562c3a52bda285b1" - sha256 cellar: :any, ventura: "95d49fdef66a38e083d0380d72b6feabd6e386c01f0556a1e7b711ef30cf99e7" + sha256 cellar: :any, arm64_sequoia: "fa43fa85874c6e49fabbe6416594877d42e280d6193b30324c99f43938470bf4" + sha256 cellar: :any, arm64_sonoma: "c634ecbffa237f41f53090ad7f54d93d0d82a526e8f2b9cf2eec83fdce9af2ed" + sha256 cellar: :any, arm64_ventura: "0d523a90879e8017250d0e584515a150e0add3778988197e7f643a29ef9f88ff" + sha256 cellar: :any, sonoma: "0be5d40a557956639da8973525a7772803bf1024266f5dc75efc8b8ed0258a48" + sha256 cellar: :any, ventura: "53f553cf4346a3c0df5f6090feab202be1a94e3d57ab984696609f6988eac405" end depends_on "cmake" => :build @@ -46,12 +37,12 @@ class Mlx < Formula depends_on "openblas" end - # https://github.com/ml-explore/mlx/blob/v#{version}/CMakeLists.txt#L91C21-L91C97 + # https://github.com/ml-explore/mlx/blob/v#{version}/CMakeLists.txt#L98 # Included in not_a_binary_url_prefix_allowlist.json resource "metal-cpp" do on_arm do - url "https://developer.apple.com/metal/cpp/files/metal-cpp_macOS15_iOS18-beta.zip" - sha256 "d0a7990f43c7ce666036b5649283c9965df2f19a4a41570af0617bbe93b4a6e5" + url "https://developer.apple.com/metal/cpp/files/metal-cpp_macOS15_iOS18.zip" + sha256 "0433df1e0ab13c2b0becbd78665071e3fa28381e9714a3fce28a497892b8a184" end end