From 2469fc2939704d57c7c1d8d6b342eb75bee16eca Mon Sep 17 00:00:00 2001 From: Awni Hannun Date: Wed, 14 Jan 2026 08:46:09 -0800 Subject: [PATCH] patch bump for next release (#2991) --- .github/actions/build-linux/action.yml | 2 ++ .github/actions/setup-linux/action.yml | 1 + .github/workflows/release.yml | 18 +++++++++--------- mlx/version.h | 2 +- python/tests/test_blas.py | 1 - 5 files changed, 13 insertions(+), 11 deletions(-) diff --git a/.github/actions/build-linux/action.yml b/.github/actions/build-linux/action.yml index 21ec6304..c7a74713 100644 --- a/.github/actions/build-linux/action.yml +++ b/.github/actions/build-linux/action.yml @@ -24,6 +24,8 @@ runs: # Can not build tests and stubs when the built executables can not run. CMAKE_ARGS="$CMAKE_ARGS -DMLX_BUILD_TESTS=OFF -DMLX_BUILD_PYTHON_STUBS=OFF" fi + # Install cpu-only torch to save space + pip install torch --index-url https://download.pytorch.org/whl/cpu pip install --no-build-isolation -e ".[dev]" -v # Pass the CMAKE_ARGS to following steps. echo CMAKE_ARGS="$CMAKE_ARGS" >> $GITHUB_OUTPUT diff --git a/.github/actions/setup-linux/action.yml b/.github/actions/setup-linux/action.yml index 08bb528f..96421fb8 100644 --- a/.github/actions/setup-linux/action.yml +++ b/.github/actions/setup-linux/action.yml @@ -27,6 +27,7 @@ runs: zip \ libblas-dev liblapack-dev liblapacke-dev \ openmpi-bin openmpi-common libopenmpi-dev + sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc || true echo "::endgroup::" - name: Use ccache diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 18db54c8..88ce57ba 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,7 +29,7 @@ jobs: - uses: ./.github/actions/build-docs deploy_documentation: - if: inputs.publish + if: ${{ github.event_name == 'push' || inputs.publish }} needs: build_documentation permissions: pages: write @@ -161,7 +161,7 @@ jobs: permissions: id-token: write environment: - name: ${{ inputs.publish && 'pypi' || '' }} + name: pypi url: https://pypi.org/p/mlx steps: - uses: actions/download-artifact@v7 @@ -177,7 +177,7 @@ jobs: - name: Display structure of downloaded files run: du -ah dist - name: Publish package distributions to PyPI - if: inputs.publish + if: ${{ github.event_name == 'push' || inputs.publish }} uses: pypa/gh-action-pypi-publish@release/v1 with: repository-url: https://upload.pypi.org/legacy/ @@ -189,7 +189,7 @@ jobs: permissions: id-token: write environment: - name: ${{ inputs.publish && 'pypi' || '' }} + name: pypi url: https://pypi.org/p/mlx-cuda steps: - uses: actions/download-artifact@v7 @@ -200,7 +200,7 @@ jobs: - name: Display structure of downloaded files run: du -ah dist - name: Publish package distributions to PyPI - if: inputs.publish + if: ${{ github.event_name == 'push' || inputs.publish }} uses: pypa/gh-action-pypi-publish@release/v1 with: repository-url: https://upload.pypi.org/legacy/ @@ -212,7 +212,7 @@ jobs: permissions: id-token: write environment: - name: ${{ inputs.publish && 'pypi' || '' }} + name: pypi url: https://pypi.org/p/mlx-cpu steps: - uses: actions/download-artifact@v7 @@ -223,7 +223,7 @@ jobs: - name: Display structure of downloaded files run: du -ah dist - name: Publish package distributions to PyPI - if: inputs.publish + if: ${{ github.event_name == 'push' || inputs.publish }} uses: pypa/gh-action-pypi-publish@release/v1 with: repository-url: https://upload.pypi.org/legacy/ @@ -235,7 +235,7 @@ jobs: permissions: id-token: write environment: - name: ${{ inputs.publish && 'pypi' || '' }} + name: pypi url: https://pypi.org/p/mlx-metal steps: - uses: actions/download-artifact@v7 @@ -245,7 +245,7 @@ jobs: - name: Display structure of downloaded files run: du -ah dist - name: Publish package distributions to PyPI - if: inputs.publish + if: ${{ github.event_name == 'push' || inputs.publish }} uses: pypa/gh-action-pypi-publish@release/v1 with: repository-url: https://upload.pypi.org/legacy/ diff --git a/mlx/version.h b/mlx/version.h index fcb35db8..d83a24e8 100644 --- a/mlx/version.h +++ b/mlx/version.h @@ -4,7 +4,7 @@ #define MLX_VERSION_MAJOR 0 #define MLX_VERSION_MINOR 30 -#define MLX_VERSION_PATCH 3 +#define MLX_VERSION_PATCH 4 #define MLX_VERSION_NUMERIC \ (100000 * MLX_VERSION_MAJOR + 1000 * MLX_VERSION_MINOR + MLX_VERSION_PATCH) diff --git a/python/tests/test_blas.py b/python/tests/test_blas.py index 3221a75d..469d2407 100644 --- a/python/tests/test_blas.py +++ b/python/tests/test_blas.py @@ -297,7 +297,6 @@ class TestBlas(mlx_tests.MLXTestCase): self.assertTrue(np.allclose(out_mlx, out_npy, atol=1e-5)) def test_matrix_vector(self): - mx.random.seed(0) for dtype in self.dtypes: with self.subTest(dtype=dtype): np_dtype = getattr(np, dtype)