Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
14dc9c6
MetalAllocator::malloc(0) leads to undefined behavior (#4881)
ipazarbasi Nov 18, 2026
07e7bda
Fix JIT compilation error caused by metal::remove_addrspace_t (#4833)
aleroot Nov 20, 2026
ab5d01b
Fix missing streams in l2_norm and scatter VJP (#4818)
Augustas11 Nov 20, 2026
9f6cb66
Fix missing API documentation and incorrect docstrings (#4813)
XXXXRT666 Nov 20, 2026
8f0f391
Fixed the build of the ring backend on FreeBSD (#4846)
stemann Nov 20, 2026
74b1d72
docs: Correct the axis argument name in expand_dims (#4830)
Redempt1onzzZZ Nov 20, 2026
1b3744c
Do not wire user provided buffers (#4883)
aleroot Nov 20, 2026
70d0d09
Fixed misaligned stores in `RandomBits` on the CPU (#4886)
ipazarbasi Nov 20, 2026
2905f33
[CUDA] Avoid releasing DXGI adapters during DLL teardown (#4867)
strayberry Nov 20, 2026
53353f4
Fix IndexError caused by a compiled function returning stop_gradient …
katamyra Nov 20, 2026
ebe3de6
Add bool to Metal sort kernel instantiations (#4861)
utsav1033 Nov 20, 2026
90acc54
Add lock file for GitHub Actions (#4801)
madrob Nov 20, 2026
5078f27
Fix flaky "make array from user buffer" test under heavy load (#4918)
ipazarbasi Nov 20, 2026
bd2d1fb
[CUDA] Looped row reductions across blocks (#4916)
pierreablin Nov 20, 2026
430d764
Fixed linking psapi with MinGW (#4919)
stemann Nov 20, 2026
381bb02
Correct gradients and batching for DivMod (#4823)
mahimn01 Nov 20, 2026
3a71347
docs: Add missing step default to arange signature (#4855)
lipefree Nov 20, 2026
06712fb
Don't allocate inside `quantize_impl` (#4930)
michalk8 Nov 21, 2026
6ac6c0f
Fix float16 overflow in clip_grad_norm_sharded (#4848)
unaltolga Nov 21, 2026
0c93d91
Add validate_qqmm_mode (#4931)
michalk8 Nov 21, 2026
a3a610b
Make the scheduler's active task count atomic (#4882)
ipazarbasi Nov 21, 2026
6d38ff9
[Metal] Add 2, 3, 5 and 6 bits to affine qmv_mma (#4860)
XXXXRT666 Nov 21, 2026
da823ef
Fix conv weight gradient with empty batch (#4873)
OgShadoww Nov 21, 2026
f0ab880
Fixed BLA_VENDOR being ignored on Windows (#4920)
stemann Nov 21, 2026
dc5ea6e
Keep gelu_approx float16 gradients finite (#4906)
Lyxot Nov 21, 2026
5cabdf5
[Metal] Use affine qmv_mma on M1 and M2 Ultra from 4 rows (#4890)
joshuaswarren Nov 21, 2026
1fd565f
Fixed the race on the Metal allocator's memory stats (#4885)
ipazarbasi Nov 21, 2026
8803ac3
Fixed cross-compiling the CPU preamble for Windows (#4921)
stemann Nov 21, 2026
777d741
Fix empty output handling in many primitives (#4929)
nwh Nov 21, 2026
190cb65
[Metal] Fix JIT template arguments for attention_nax_dsplit (#4903)
kainosnoema Nov 22, 2026
54742ad
Fixed misaligned GGUF metadata access (#4887)
ipazarbasi Nov 22, 2026
9edb5e9
Fix identical default random keys across threads (#4857)
Chr0mium24 Nov 22, 2026
1579e1c
Allow disabling Metal runtime compilation (#4908)
ipazarbasi Nov 22, 2026
4841850
Fixed finding MLX under a renamed library (#4928)
stemann Nov 22, 2026
52e02c5
Fix merged axes overflow in reduce op (#4888)
BhodiSea Nov 22, 2026
8e98fb8
Use fused SDPA for causal head_dim 256 with 512 to 1023 query rows (#…
jvmenen Nov 22, 2026
07fff01
[CPU] Fix accumulation precision in fp quantized matmul (#4879)
kadyrbekovhamit-cyber Nov 22, 2026
b68e9b0
added `__array_api_version__` (#4937)
prady0t Nov 22, 2026
3013bd8
[CPU] Support float64 in to_fp8 and from_fp8 (#4858)
siddhantchaudhary036 Nov 22, 2026
58d91ee
[CUDA] Support window size in fast SDPA (#4927)
pierreablin Nov 22, 2026
be0564a
docs: Fix optional metadata in save_gguf signature (#4942)
lipefree Nov 23, 2026
dd5e21c
docs: keyword and positional arguments match runtime for `astype`, `r…
lipefree Nov 23, 2026
25f42f6
[Metal] Keep SDPA VJP scores in float32 for half precision inputs (#4…
arhaamatiq Nov 23, 2026
2b567e0
Add `bits` attribute to `finfo` and `iinfo` (#4945)
prady0t Nov 23, 2026
0b8f853
[CPU] exp has undefined behavior for inf, nan and large inputs (#4932)
ipazarbasi Nov 23, 2026
c23a35c
[CUDA] fix overflow issue in matmul with large output matrices (#4938)
pierreablin Nov 23, 2026
13d65be
[CUDA] Add 128-row variant for qmm (#4851)
dhiltgen Nov 23, 2026
f06104e
Added UBSan ignore list file (#4948)
ipazarbasi Nov 23, 2026
28dd22d
Enable ThreadSanitizer on macOS with a suppressions file (#4949)
ipazarbasi Nov 23, 2026
8f578df
[Metal] Enable affine qmv_mma on M3 Ultra (#4827)
padwowen Nov 23, 2026
f04e1f2
[CUDA] Faster and more memory efficient boolean masks in attention (#…
pierreablin Nov 23, 2026
b835fb3
Tune gemv_t tiles for long K and small N (#4850)
MarcosAsh Nov 23, 2026
4b15eff
Fix Metal command queue retention when a worker thread initializes ML…
dcvz Nov 23, 2026
5c8b09e
Fix contiguous flag after reshape and view (#4915)
MarcosAsh Nov 24, 2026
b86caa6
[CUDA] clear cuDNN handles and graph caches on clear_streams (#4892)
Brooooooklyn Nov 24, 2026
b0df275
[CPU] Fix fp4 tie rounding (#4845)
eyupcanakman Nov 24, 2026
5c89894
[Metal] Expose NAX kernel availability to Python (#4956)
m4zar Nov 24, 2026
d5011a1
Fix argmin/argmax on 0-d arrays with keepdims=True (#4958)
ankitgala007 Nov 24, 2026
6793c9a
Fix checkpoint backward scheduling for chunked recurrences (#4907)
adimalkar Nov 24, 2026
3fe3cbc
[CPU] Support global scale in qqmm/quantize/dequantize (#4923)
Yunt1 Nov 24, 2026
c3ff43b
[CPU] Fix strided half-precision GEMM dimensions in BNNS and simd_gem…
Yunt1 Nov 24, 2026
5598dfa
Fix NaN propagation in CPU cummax and cummin for float16 and bfloat16…
luciusacarr Nov 24, 2026
8df368e
Merge latest upstream MLX into Pico integration
ronaldmannak Nov 24, 2026
7be1c1e
Run reproducible CPU validation for the MLX fork
ronaldmannak Nov 24, 2026
93a9c57
Keep FP8 float64 conversion compatible with macOS 14
ronaldmannak Nov 24, 2026
8ce225e
Keep globally scaled CPU SIMD weights in float32
ronaldmannak Nov 24, 2026
c85ccee
fix(metal): reduce SDPA vector kernel tile size for head dim > 256
jeanmatthieu Nov 22, 2026
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
4 changes: 2 additions & 2 deletions .github/actions/build-docs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ runs:
steps:
- name: Setup machine
id: setup
uses: ./.github/actions/setup
uses: $/.github/actions/setup
with:
ccache-key: 'release'
ccache-save: false
Expand All @@ -28,7 +28,7 @@ runs:
# Do it manually because upload-pages-artifact requires gtar
- name: Upload artifact
id: upload-artifact
uses: actions/upload-artifact@v7
uses: actions/upload-artifact@v7.0.2
with:
name: github-pages
path: artifact.tar
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ runs:

- name: Cache JIT-compiled CUDA kernels
if: runner.os == 'Linux' && startsWith(inputs.toolkit, 'cuda')
uses: actions/cache@v5
uses: actions/cache@v5.1.0
with:
path: /tmp/mlx-ptx-cache
key: >-
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/test-array-api/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ runs:
using: 'composite'
steps:
- name: Checkout array-api-tests
uses: actions/checkout@v7
uses: actions/checkout@v7.0.1
with:
repository: data-apis/array-api-tests
ref: 'ef5b39f1190d54dca0d9a12646033d2d123afdd5' # v2026.09.08
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/test-wheel/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ runs:
run: python -c "import sys; print(f'version={sys.version_info.major}.{sys.version_info.minor}')" >> $GITHUB_OUTPUT

- name: Download frontend packages
uses: actions/download-artifact@v8
uses: actions/download-artifact@v8.0.2
with:
pattern: frontend-${{ runner.os }}-${{ runner.arch }}-py${{ steps.python.outputs.version }}
path: wheelhouse

- name: Download backend packages
uses: actions/download-artifact@v8
uses: actions/download-artifact@v8.0.2
with:
pattern: backend-${{ inputs.toolkit}}-${{ runner.os }}-${{ runner.arch }}
path: wheelhouse
Expand Down
98 changes: 98 additions & 0 deletions .github/workflows/actions.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
# This file is machine-generated by `gh actions-lock`.
# Do not edit by hand; run `gh actions-lock` to update.
# Docs: https://gh.io/actions-lockfile
version: 'v0.0.3'
workflows:
'.github/workflows/build_and_test.yml':
- 'actions/cache@v5.1.0'
- 'actions/checkout@v7.0.1'
- 'actions/upload-artifact@v7.0.2'
- 'astral-sh/setup-uv@v8.2.0'
- 'hendrikmuhs/ccache-action@v1.2.23'
- 'pre-commit/action@v3.0.1'
'.github/workflows/documentation.yml':
- 'actions/cache@v5.1.0'
- 'actions/checkout@v7.0.1'
- 'actions/deploy-pages@v5.0.1'
- 'actions/upload-artifact@v7.0.2'
- 'astral-sh/setup-uv@v8.2.0'
- 'hendrikmuhs/ccache-action@v1.2.23'
'.github/workflows/pico-validation.yml':
- 'actions/checkout@v7.0.1'
- 'actions/setup-python@v6.2.0'
'.github/workflows/release.yml':
- 'actions/cache@v5.1.0'
- 'actions/checkout@v7.0.1'
- 'actions/deploy-pages@v5.0.1'
- 'actions/download-artifact@v8.0.2'
- 'actions/upload-artifact@v7.0.2'
- 'astral-sh/setup-uv@v8.2.0'
- 'hendrikmuhs/ccache-action@v1.2.23'
- 'pypa/gh-action-pypi-publish@release/v1'
'.github/workflows/update_bypass_list.yml':
- 'actions/checkout@v7.0.1'
dependencies:
'actions/cache@v4':
ref: 'v4'
commit: 'sha1-0057852bfaa89a56745cba8c7296529d2fc39830'
owner_id: 44036562
repo_id: 215566462
'actions/cache@v5.1.0':
ref: 'v5.1.0'
commit: 'sha1-caa296126883cff596d87d8935842f9db880ef25'
owner_id: 44036562
repo_id: 215566462
'actions/checkout@v7.0.1':
ref: 'v7.0.1'
commit: 'sha1-3d3c42e5aac5ba805825da76410c181273ba90b1'
owner_id: 44036562
repo_id: 197814629
'actions/deploy-pages@v5.0.1':
ref: 'v5.0.1'
commit: 'sha1-368f82528645a54fb793d4d04e342629a3f51346'
owner_id: 44036562
repo_id: 438112499
'actions/download-artifact@v8.0.2':
ref: 'v8.0.2'
commit: 'sha1-9000827ccba6bdab643e8b6fd33ac0654aef8333'
owner_id: 44036562
repo_id: 192626254
'actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405':
ref: 'v6.2.0'
commit: 'sha1-a309ff8b426b58ec0e2a45f0f869d46889d02405'
owner_id: 44036562
repo_id: 192625525
'actions/setup-python@v6.2.0':
ref: 'v6.2.0'
commit: 'sha1-a309ff8b426b58ec0e2a45f0f869d46889d02405'
owner_id: 44036562
repo_id: 192625525
'actions/upload-artifact@v7.0.2':
ref: 'v7.0.2'
commit: 'sha1-cf430e030ddbb5b0abf93d22962f4752f3646cd9'
owner_id: 44036562
repo_id: 192625955
'astral-sh/setup-uv@v8.2.0':
ref: 'v8.2.0'
commit: 'sha1-fac544c07dec837d0ccb6301d7b5580bf5edae39'
owner_id: 115962839
repo_id: 846733598
'hendrikmuhs/ccache-action@v1.2.23':
ref: 'v1.2.23'
commit: 'sha1-d62db5f07c26379fc4b4e0916f098a92573c3b03'
owner_id: 7126422
repo_id: 319035161
'pre-commit/action@v3.0.1':
ref: 'v3.0.1'
commit: 'sha1-2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd'
owner_id: 6943086
repo_id: 204199630
uses:
- 'actions/cache@v4'
'pypa/gh-action-pypi-publish@release/v1':
ref: 'release/v1'
commit: 'sha1-7245906fb61fa33a13554f9d5fb856fe61758086'
owner_id: 647025
repo_id: 178055147
uses:
- 'actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405'
28 changes: 14 additions & 14 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
name: Check Lint
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@v7.0.1
- uses: pre-commit/action@v3.0.1
- name: Test check_stream_args.py
shell: bash
Expand Down Expand Up @@ -62,22 +62,22 @@ jobs:
'ubuntu-22.04'))
}}
steps:
- uses: actions/checkout@v7
- uses: ./.github/actions/setup
- uses: actions/checkout@v7.0.1
- uses: $/.github/actions/setup
id: setup
with:
toolkit: ${{ matrix.toolkit }}
- uses: ./.github/actions/build
- uses: $/.github/actions/build
with:
cmake-args: ${{ steps.setup.outputs.cmake-args }}
# For MSVC, Ninja/Release is the only config supported by ccache.
debug: ${{ matrix.os != 'Windows' }}
- name: Check generated Python stubs with ty
if: matrix.os == 'Linux' && matrix.arch == 'x86_64' && matrix.toolkit == 'cpu'
run: uvx ty check python/mlx/core
- uses: ./.github/actions/test-linux
- uses: $/.github/actions/test-linux
if: matrix.os == 'Linux' && (matrix.toolkit == 'cpu' || matrix.arch == 'x86_64')
- uses: ./.github/actions/test-windows
- uses: $/.github/actions/test-windows
if: matrix.os == 'Windows' && matrix.toolkit == 'cpu'

mac_build:
Expand All @@ -91,8 +91,8 @@ jobs:
runs-on: [self-hosted, macos]
needs: check_lint
steps:
- uses: actions/checkout@v7
- uses: ./.github/actions/setup
- uses: actions/checkout@v7.0.1
- uses: $/.github/actions/setup
id: setup
with:
toolkit: ${{ matrix.toolkit }}
Expand All @@ -109,19 +109,19 @@ jobs:
run: |
uv pip install build setuptools
uv run python -m build -w
- uses: ./.github/actions/test-macos
- uses: $/.github/actions/test-macos
with:
toolkit: ${{ matrix.toolkit }}
- uses: ./.github/actions/test-array-api
- uses: $/.github/actions/test-array-api
if: matrix.toolkit == 'metal'

build_documentation:
name: Build Documentation
runs-on: ubuntu-22.04
needs: check_lint
steps:
- uses: actions/checkout@v7
- uses: ./.github/actions/build-docs
- uses: actions/checkout@v7.0.1
- uses: $/.github/actions/build-docs

linux_sanitizer_build_and_test:
name: Linux Sanitizer Tests (${{ matrix.sanitizer }})
Expand All @@ -135,7 +135,7 @@ jobs:
runs-on: ubuntu-22.04-arm
steps:
- name: Checkout code
uses: actions/checkout@v7
uses: actions/checkout@v7.0.1

- name: Install Dependencies
run: |
Expand Down Expand Up @@ -173,7 +173,7 @@ jobs:
image: fedora:42
steps:
- name: Checkout code
uses: actions/checkout@v7
uses: actions/checkout@v7.0.1

- name: CPP Build Test - No Release
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v7
- uses: ./.github/actions/build-docs
- uses: actions/checkout@v7.0.1
- uses: $/.github/actions/build-docs

deploy:
needs: build
Expand All @@ -25,4 +25,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5
uses: actions/deploy-pages@v5.0.1
45 changes: 45 additions & 0 deletions .github/workflows/pico-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Pico integration validation

on:
pull_request:
push:
branches: [pico/integration]
workflow_dispatch:

permissions:
contents: read

concurrency:
group: pico-validation-${{ github.ref }}
cancel-in-progress: true

jobs:
native-cpu:
if: github.repository == 'ronaldmannak/mlx' || github.repository == 'PicoMLX/mlx'
runs-on: macos-26
timeout-minutes: 45
env:
CMAKE_ARGS: -DMLX_BUILD_METAL=OFF -DMLX_BUILD_TESTS=OFF -DMLX_BUILD_EXAMPLES=OFF
CMAKE_BUILD_PARALLEL_LEVEL: 3
DEVICE: cpu
steps:
- uses: actions/checkout@v7.0.1
- uses: actions/setup-python@v6.2.0
with:
python-version: '3.12'
- name: Build the current native sources and Python bridge
run: python -m pip install -e . numpy pytest cmake
- name: Build native C++ tests in a persistent directory
run: |
cmake -S . -B build/pico-cpu -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_OSX_DEPLOYMENT_TARGET=14.0 \
-DMLX_BUILD_METAL=OFF -DMLX_BUILD_TESTS=ON \
-DMLX_BUILD_EXAMPLES=OFF -DMLX_BUILD_PYTHON_BINDINGS=OFF
cmake --build build/pico-cpu --target tests --parallel 3
- name: Run native C++ tests
run: DEVICE=cpu ./build/pico-cpu/tests/tests
- name: Verify row-aware attention and partitioning
run: |
python -m pytest -q python/tests/test_fast_sdpa.py -k 'left_padding or kv_offsets'
python -m pytest -q python/tests/test_ops.py -k argpartition
python -m pytest -q python/tests/test_quantized.py -k nvfp4_global_scale_float16_cpu
Loading
Loading