From 11db77c2c382e8e21cbac65e759a4c5f0e8d2c7c Mon Sep 17 00:00:00 2001 From: Ryuichi Leo Takashige Date: Tue, 20 Jan 2026 14:14:05 +0000 Subject: [PATCH] Use upstream mlx --- pyproject.toml | 5 +++-- src/exo/worker/engines/mlx/utils_mlx.py | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index f1e2a2bf..7732335e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,8 +17,8 @@ dependencies = [ "loguru>=0.7.3", "exo_pyo3_bindings", # rust bindings "anyio==4.11.0", - "mlx==0.30.3; sys_platform == 'darwin'", - "mlx[cpu]==0.30.3; sys_platform == 'linux'", + "mlx; sys_platform == 'darwin'", + "mlx[cpu]; sys_platform == 'linux'", "mlx-lm @ git+https://github.com/AlexCheema/mlx-lm.git@fix-transformers-5.0.0rc2", "tiktoken>=0.12.0", # required for kimi k2 tokenizer "hypercorn>=0.18.0", @@ -59,6 +59,7 @@ members = [ [tool.uv.sources] exo_pyo3_bindings = { workspace = true } +mlx = { git = "https://github.com/ml-explore/mlx.git", branch = "main" } # Uncomment to use local mlx/mlx-lm development versions: # mlx = { path = "/Users/Shared/mlx", editable=true } # mlx-lm = { path = "/Users/Shared/mlx-lm", editable=true } diff --git a/src/exo/worker/engines/mlx/utils_mlx.py b/src/exo/worker/engines/mlx/utils_mlx.py index 3b11ebc9..a04a1b0b 100644 --- a/src/exo/worker/engines/mlx/utils_mlx.py +++ b/src/exo/worker/engines/mlx/utils_mlx.py @@ -169,10 +169,10 @@ def mlx_distributed_init( # TODO: update once upstream fixes logger.info( - f"rank {rank} MLX_JACCL_DEVICES: {coordination_file} with devices: {jaccl_devices_json}" + f"rank {rank} MLX_IBV_DEVICES: {coordination_file} with devices: {jaccl_devices_json}" ) logger.info(f"rank {rank} MLX_JACCL_COORDINATOR: {jaccl_coordinator}") - os.environ["MLX_JACCL_DEVICES"] = coordination_file + os.environ["MLX_IBV_DEVICES"] = coordination_file os.environ["MLX_RANK"] = str(rank) os.environ["MLX_JACCL_COORDINATOR"] = jaccl_coordinator group = mx.distributed.init(backend="jaccl", strict=True)