Skip to content
Merged

mlx 0.30.0 #255173

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
20 changes: 7 additions & 13 deletions Formula/m/mlx.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ 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.29.3.tar.gz"
sha256 "54ede208b267ea8cda566a659b7095266da78ce4d6046cf17fbeb8c5fbc9b2ee"
url "https://github.com/ml-explore/mlx/archive/refs/tags/v0.30.0.tar.gz"
sha256 "d36ea81788bdce79984e188dadb906d93688e3fb798145c393697056a05ed258"
license all_of: [
"MIT", # main license
"Apache-2.0", # metal-cpp resource
Expand All @@ -24,24 +24,18 @@ class Mlx < Formula
depends_on "nlohmann-json" => :build
depends_on "python-setuptools" => :build
depends_on "robin-map" => :build
depends_on xcode: ["15.0", :build] # for metal
depends_on arch: :arm64
depends_on macos: :sonoma
depends_on :macos
depends_on macos: :ventura
depends_on "[email protected]"

on_arm do
depends_on xcode: ["15.0", :build] # for metal
end

on_intel do
depends_on "openblas"
end

# https://github.com/ml-explore/mlx/blob/v#{version}/CMakeLists.txt
# 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.zip"
sha256 "0433df1e0ab13c2b0becbd78665071e3fa28381e9714a3fce28a497892b8a184"
url "https://developer.apple.com/metal/cpp/files/metal-cpp_26.zip"
sha256 "4df3c078b9aadcb516212e9cb03004cbc5ce9a3e9c068fa3144d021db585a3a4"
end
end

Expand Down
Loading