Skip to content

Commit

Permalink
[MLX] Updated to "master"
Browse files Browse the repository at this point in the history
Updated - removes need for patches
Disabled MLX_BUILD_GGUF for Windows
Re-enabled MLX_BUILD_GGUF and MLX_BUILD_SAFETENSORS for Windows and FreeBSD
Added patch for distributed/ring on Windows
  • Loading branch information
stemann committed Feb 2, 2025
1 parent 7921ccd commit 142884f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 32 deletions.
9 changes: 3 additions & 6 deletions M/MLX/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
using BinaryBuilder, Pkg

name = "MLX"
version = v"0.22.0"
version = v"0.22.1" # unofficial

sources = [
GitSource("https://github.com/ml-explore/mlx.git", "1ce0c0fcb0f58cb9322981a65d267abc41cc2785"),
GitSource("https://github.com/ml-explore/mlx.git", "2d8e6674009f124747c2047d27aed71cc3c8ee47"), # master
ArchiveSource("https://github.com/roblabla/MacOSX-SDKs/releases/download/macosx14.0/MacOSX14.0.sdk.tar.xz",
"4a31565fd2644d1aec23da3829977f83632a20985561a2038e198681e7e7bf49"),
# Using the PyPI wheel for aarch64-apple-darwin to get the metal backend, which requires the `metal` compiler to build (which is practically impossible to use from the BinaryBuilder build env.)
FileSource("https://files.pythonhosted.org/packages/62/2b/427896261bc8d940eff561e6199d1aee9dbdc7caa117486654a44d7d793c/mlx-$(version)-cp313-cp313-macosx_13_0_arm64.whl", "50d0d76826cfe939025791ce2c014e743ec7aff7aa67194ffaef40c40e574ef4"; filename = "mlx-aarch64-apple-darwin20.whl"),
FileSource("https://files.pythonhosted.org/packages/62/2b/427896261bc8d940eff561e6199d1aee9dbdc7caa117486654a44d7d793c/mlx-0.22.0-cp313-cp313-macosx_13_0_arm64.whl", "50d0d76826cfe939025791ce2c014e743ec7aff7aa67194ffaef40c40e574ef4"; filename = "mlx-aarch64-apple-darwin20.whl"),
DirectorySource("./bundled"),
]

Expand All @@ -25,9 +25,6 @@ fi
cd $WORKSPACE/srcdir/mlx
atomic_patch -p1 ../patches/nbits32-ops.patch
atomic_patch -p1 ../patches/win32_freebsd-jit_compiler.patch
CMAKE_EXTRA_OPTIONS=()
if [[ "$target" == x86_64-apple-darwin* ]]; then
CMAKE_EXTRA_OPTIONS+=("-DMLX_ENABLE_X64_MAC=ON")
Expand Down
13 changes: 0 additions & 13 deletions M/MLX/bundled/patches/nbits32-ops.patch

This file was deleted.

13 changes: 0 additions & 13 deletions M/MLX/bundled/patches/win32_freebsd-jit_compiler.patch

This file was deleted.

0 comments on commit 142884f

Please sign in to comment.