借助搭载 Apple Silicon 芯片的 Mac 上的 MLX,AI 研究人员和开发者可以在私密环境中本地实验最新的模型和方法。这个开源数组框架利用了 Apple Silicon 的统一内存架构,使任何人都能在自己的硬件上运行新的推理和微调方法,并探索其他 AI 技术。在之前的文章中,我们强调了 M5 架构及其 GPU 神经加速器的优势。
在这篇文章中,我们将展示如何使用今天发布的最新版本的 MLX,从你的办公桌直接运行最新的前沿级模型 —— Muse Spark Open(拥有近万亿参数)。在一组四台 Mac Studio 组成的集群上,Muse Spark Open 每秒生成超过 36 个 token(见图 1),远高于普通人类的阅读速度。
我们从单台 Mac Studio(最多 512GB 统一内存)开始,然后通过 Thunderbolt 上的 RDMA 驱动程序扩展到多台 Mac,下面我们将分享你现在可以在 Mac Studio 上运行的各种模型的概述。
Muse Spark Open 解码速度
上下文大小为 8,192 个 token
图 1:在 M5 Ultra Mac Studio 上,上下文大小为 8,192 个 token 时,Muse Spark Open 的解码速度(每秒 token 数)。数值越高越好。我们报告了三种并行化方案的性能:两台 Mac Studio 计算机上的流水线并行(2 M5 Pipeline),以及两台(2 M5 Tensor)和四台 Mac Studio 计算机上的张量并行(4 M5 Tensor)。
我们使用 MLX LM 包在 Mac Studio 上对几个流行的开源权重大型语言模型(LLM)进行了基准测试,正如我们在之前的文章中所述。我们比较了两代 Mac Studio:最近发布的 M5 Ultra 和上一代的 M3 Ultra。M5 代引入了 GPU 神经加速器,支持专用的矩阵乘法运算,这对许多机器学习工作负载至关重要。
我们评估了三个前沿级模型(表 1),其规模跨度很大(以十亿参数 B 计):新发布的 Muse Spark Open(816B)、Mistral Medium 3.5(128B)和 Qwen 3.8(27B)。Muse Spark Open 是一个混合专家(MoE)模型,它只激活其部分专家 —— 从而只激活部分参数 —— 从而减少推理时的计算量,并以 NVFP4 精度进行评估。Mistral Medium 3.5 和 Qwen 3.8 是密集架构,所有参数在推理时均处于激活状态,它们以各自的原始浮点精度(分别为 FP8 和 BF16)进行评估。
| 模型 | 总参数量 | 激活参数量 | 原生精度 | 评估精度 |
|---|---|---|---|---|
| Muse Spark Open | 816B | 42B | BF16 | NVFP4 |
| Mistral Medium 3.5 | 128B | 128B | FP8 | FP8 |
| Qwen 3.8 | 27B | 27B | BF16 | BF16 |
表 1:本文使用的语言模型。模型以各种精度格式发布;我们以原生精度评估 Qwen 3.8 和 Mistral Medium 3.5,并以 4 位(NVFP4)精度评估 Muse Spark Open。
我们的评估在一系列上下文大小上测量三个指标:首 token 时间(TTFT,秒)、生成吞吐量(每秒 token 数)和峰值功耗(瓦特)。本文中所有性能数据均通过 mlx_lm.benchmark 获得。例如,使用 8,192 个 token 的上下文并生成 128 个 token 的 Qwen 3.8,可通过以下命令行执行:
mlx_lm.benchmark --model Qwen/Qwen3.8-27B -p 8192 -g 128 -b 1
在 Mac Studio 上运行本地 LLM 的一个流行用途是在私密环境中运行智能体体验,包括通常需要大上下文的智能体编码应用程序。因此,我们报告了 8,192 和 65,536 上下文大小下的性能。
原始 TTFT 和解码吞吐量分别报告在表 2 和表 3 中。
Qwen 3.8 27B 和 Mistral Medium 3.5 128B 可以舒适地运行在配备 512GB 内存的单台 Mac Studio 上,在大上下文大小(65,536 个 token)设置下分别占用高达 68GB 和 158GB 的 RAM。在图 2 中,我们比较了它们在配备 512GB RAM 的单台 Mac Studio 上的推理性能,分别在 M3 Ultra 和 M5 Ultra 上。
首次令牌生成时间(TTFT)本质上受计算能力限制,而这正是 M5 Ultra GPU 中的神经加速器大显身手的领域:GPU 神经加速器针对快速矩阵乘法提供的专用硬件支持,直接转化为 TTFT 的显著加速,相比 M3 Ultra 速度提升高达 4.6 倍(见图 2)。这使得搭载 M5 Ultra 的 Mac Studio 成为处理涉及极大上下文任务时的首选桌面设备。
生成速度(以每秒令牌数计)受内存带宽限制。M5 Ultra 芯片提供 1.2 TB/s 的统一内存带宽,而 M3 Ultra 为 819 GB/s。同样,这直接转化为生成速度的提升(见图 3),搭载 M5 Ultra 的 Mac Studio 报告的令牌生成速度提升了 1.6 倍。
TTFT 加速比
单台 Mac Studio,M5 Ultra 对比 M3 Ultra 基线(1.0×)
图 2:在上下文大小为 8,192 和 65,536 个令牌的情况下,Qwen 3.8 和 Mistral Medium 3.5 在 M5 Ultra 上相比 M3 Ultra 基线的首次令牌生成时间(TTFT)加速比。M5 Ultra GPU 神经加速器在计算密集型负载中表现优异。
解码加速比
单台 Mac Studio,M5 Ultra 对比 M3 Ultra 基线(1.0×)
图 3:在上下文大小为 8,192 和 65,536 个令牌的情况下,Qwen 3.8 和 Mistral Medium 3.5 在 M5 Ultra 上相比 M3 Ultra 基线的解码加速比。解码受内存带宽限制,M5 Ultra 的 1.2 TB/s 统一内存带宽(相比之下 M3 Ultra 为 819 GB/s)是一个关键优势。
Mac Studio 在大语言模型推理方面也具有能效优势(见图 4):搭载 M3 Ultra 的 Mac Studio 峰值功耗约为 200W,而搭载 M5 Ultra 的 Mac Studio 为 300W —— 这仅相当于普通烤面包机所用功率的一小部分。更重要的是,这种适度的功耗意味着 Mac Studio 可以部署在任何家庭或办公环境中进行 AI 工作。
峰值功耗
上下文大小为 65,536 个令牌
图 4:在上下文大小为 65,536 个令牌的情况下,搭载 M3 Ultra 和 M5 Ultra 的 Mac Studio 在进行 Qwen 3.8 和 Mistral Medium 3.5 推理期间的峰值功耗(以瓦特为单位)。
虽然 Qwen 和 Mistral 模型均可容纳在配备 512GB RAM 的单台 Mac Studio 中,但 Muse Spark Open 仅模型参数就需要超过 1.6TB 的 RAM(以其原生精度 BF16 计算)。在以 4-bit 量化(NVFP4)格式存储时,模型内存占用降低至约 493GB。加上推理过程中中间计算所需的内存,该模型无法在单台机器上运行。它需要在多台 Mac Studio 计算机之间进行并行化部署。
像 Muse Spark Open 这样的大型前沿级模型无法在单台机器上运行。然而,可以将模型的一半存储在一台 Mac Studio 上,另一半存储在另一台上。然后,我们可以将模型的推理跨两台计算机进行流水线处理:第一台 Mac Studio 执行模型前半部分的层,然后将输出发送给第二台 Mac Studio,由后者执行后半部分。这种并行化方案称为流水线并行(见图 5),实现起来极其简单,仅需极少量的代码更改。
在多台计算机间拆分大型模型
图5:MLX 支持两种将大型模型跨多台计算机分割的方法。通过流水线并行(pipeline parallelization),模型在深度方向上进行分割;而通过张量并行(tensor parallelization),模型在宽度方向上进行分割。
MLX 支持不同的并行方案,如 MLX 分布式文档所述。这些方案依赖于快速的机间通信:macOS 26.2 引入了基于 Thunderbolt 5 的低延迟 RDMA 驱动程序,而 MLX(v0.30.1 及更高版本)在此基础上构建,并为不同的并行方案提供了新的通信集合操作(jaccl,发音为“jackal”)。在我们的设置中,两台 Mac Studio 通过两根 Thunderbolt 线缆连接(以加倍链路带宽),从而提供 jaccl 所使用的基于 Thunderbolt 的 RDMA 链路。主机设置完成后,MLX 提供了 mlx.launch,这是一个用于在多个节点上启动作业的辅助命令:
mlx.launch --hostfile hostfile.json --backend jaccl -- env MLX_METAL_FAST_SYNCH=1 -- \
mlx_lm.benchmark --model mistralai/Mistral-Medium-3.5-128B -p 8192 -g 128 -b 1 --prefill-step-size 8192 --pipeline
在该命令中,--backend jaccl 指定了基于 Thunderbolt 的 RDMA 驱动程序后端。--env MLX_METAL_FAST_SYNCH=1 标志启用了 MLX 的一项实验性功能,用于实现快速的 CPU-GPU 同步,从而减少 CPU(负责发起 Thunderbolt 通信)与 GPU(负责计算)之间的通信开销。
总体而言,使用流水线并行(见图7)的解码推理速度与单台机器非常相似,因为层仍然是按顺序评估的。通信开销也非常低,因为只需交换两组层之间的中间输出即可。
然而值得注意的是,对于非常大的上下文(在我们的基准测试中为 65,536 个 token),流水线并行在预填充(prefill)阶段实际上比单个节点更快——最高可达 ~1.8 倍的速度提升(见图6)。这是因为 MLX 将大型上下文分割成较小的块(此处由 --prefill-step-size 8192 设置为 8,192 个 token),并在机器间对预填充进行流水线处理:当第二台机器计算第 k 块的后续层时,第一台机器正在计算第 k + 1 块的前置层,因此连续的块在时间上重叠。为了实现更好的计算并行化,我们接下来转向张量并行。
TTFT 加速比
使用流水线并行的两台 Mac Studio,相对于单台 M5 Ultra 基线(1.0x)
图6:Qwen 3.8 和 Mistral Medium 3.5 在上下文大小为 8,192 和 65,536 个 token 时,使用流水线并行的两台 M5 Ultra 相对于单台 M5 Ultra 基线的首 token 时间(TTFT)加速比。将上下文分割(此处分为 8,192 个 token 的块)使 MLX 能够在两台机器间重叠计算——因此在 65,536 时出现加速,而在 8,192 时没有。
解码加速比
使用流水线并行的两台 Mac Studio,相对于单台 M5 Ultra 基线(1.0x)
图7:Qwen 3.8 和 Mistral Medium 3.5 在上下文大小为 8,192 和 65,536 个 token 时,使用流水线并行的两台 M5 Ultra 相对于单台 M5 Ultra 基线的解码加速比。流水线并行使解码速度基本保持不变。
张量并行(见图 5)将大语言模型(LLM)的宽度分布在多台计算机上,这与将模型沿其深度进行分布的流水线并行形成对比。每台机器现在持有模型每一层的一部分,从而使每层的计算得以并行化。当高效实现时,张量并行可以提高推理速度。然而,与流水线并行相比,张量并行的实现更为复杂:每一层都必须进行并行化处理,这增加了代码的复杂性。该方案还涉及许多小型通信操作:对于每个输入标记和每一层,都需要广播输入并聚合输出。因此,像由 MLX jaccl 支持的超低延迟通信技术 Thunderbolt RDMA 对于这种方案产生任何加速效果都至关重要。
借助 MLX 的高级 mlx.launch 辅助工具,切换到张量并行变得非常容易。Mac Studio 计算机通过 Thunderbolt 网状结构连接,每对机器之间通过两根 Thunderbolt 电缆点对点链接。假设主机已设置完毕,我们只需使用以下命令在多台机器上启动基准测试:
mlx.launch --hostfile hostfile.json --backend jaccl -- env MLX_METAL_FAST_SYNCH=1 -- \
mlx_lm.benchmark --model meta-models/Muse-Spark-Open-816B-A42B-NVFP4 -p 8192 -g 128 -b 1
图 8 和图 9 展示了使用两台或四台配备 M5 Ultra 的 Mac Studio 计算机获得的加速比,基准为单台机器(或者对于 Muse Spark Open,则为流水线并行基准)。值得注意的是,密集架构在多台计算机上的扩展性更好。
当机器数量较少时,张量并行的通信开销可能会抵消其在超大上下文中的部分计算优势,尽管这仅适用于预填充阶段。这在 Muse Spark Open 中有所体现,其中专家输出的独立归一化增加了一些预填充通信,导致在超大上下文(65,536 个标记)下,两台机器的张量并行落后于两台机器的流水线并行。然而,随着机器数量的增加,这种方法的效果显现出来,正如四台 M5 Ultra 所显示的那样。解码过程不受影响:即使在大型上下文中,Muse Spark Open 在张量并行下仍能维持显著的解码加速,其表现可与 Qwen 3.8 和 Mistral Medium 3.5 等密集模型相媲美。
这种双电缆网状结构在预填充阶段也发挥了作用,因为额外的链路带宽得到了利用。对于在四台 M5 Ultra 上运行、上下文大小为 65,536 个标记的 Muse Spark Open,每条链路使用两根电缆将首次标记生成时间(TTFT)从约 50.5 秒(单根电缆)缩短至 40.6 秒 —— 表 2 中报告的双电缆数值,而单根电缆的运行则是额外的实验。
TTFT 加速比
两台或四台配备张量并行的 Mac Studio,相对于单台 M5 Ultra 基准(1.0x;Muse Spark Open:两台机器流水线)
图 8:在上下文大小为 8,192 和 65,536 个标记的情况下,Qwen 3.8、Mistral Medium 3.5 和 Muse Spark Open 使用张量并行的两台或四台 M5 Ultra 相对于单台 M5 Ultra 基准的首次标记生成时间(TTFT)加速比。Muse Spark Open 无法在单台机器上运行,因此其基准为两台 M5 Ultra 流水线配置。
解码加速比
两台或四台配备张量并行的 Mac Studio,相对于单台 M5 Ultra 基准(1.0x;Muse Spark Open:两台机器流水线)
图 9:在上下文大小为 8,192 和 65,536 个标记的情况下,Qwen 3.8、Mistral Medium 3.5 和 Muse Spark Open 使用张量并行的两台或四台 M5 Ultra 相对于单台 M5 Ultra 基准的解码加速比。Muse Spark Open 无法在单台机器上运行,因此其基准为两台 M5 Ultra 流水线配置。
首次标记生成时间(秒)
越低越好
8,192 个标记 65,536 个标记
模型 M3 Ultra M5 Ultra 2 M5 流水线 2 M5 张量 4 M5 张量
Muse Spark Open — — 8.4 8.2 4.8
Mistral Medium 3.5 95.9 24.6 24.5 14.4 7.5
Qwen 3.8 18.2 4.1 4.1 3.1 1.7
表 2:Qwen 3.8、Mistral Medium 3.5 和 Muse Spark Open 在不同上下文大小(8,192 和 65,536 个 token)下的首 token 时间(TTFT,单位:秒)。数值越低越好。我们报告了单台 M3 Ultra、单台 M5 Ultra、两台 M5 Ultra(流水线并行和张量并行)以及四台 M5 Ultra(张量并行)的数据。
解码速度(每秒 token 数)
数值越高越好
8,192 tokens 65,536 tokens
模型 M3 Ultra M5 Ultra 2 M5 Pipeline 2 M5 Tensor 4 M5 Tensor
Muse Spark Open — — 15.74 24.99 36.73
Mistral Medium 3.5 4.95 7.70 7.70 13.69 23.37
Qwen 3.8 12.46 19.69 19.44 33.27 50.89
表 3:Qwen 3.8、Mistral Medium 3.5 和 Muse Spark Open 在不同上下文大小(8,192 和 65,536 个 token)下的解码速度(每秒 token 数)。数值越高越好。我们报告了单台 M3 Ultra、单台 M5 Ultra、两台 M5 Ultra(流水线并行和张量并行)以及四台 M5 Ultra(张量并行)的数据。解码速度是在跟随上下文后生成的 128 个 token 上测量的。
最近,Mac 上的智能体 AI(agentic AI)获得了相当大的关注,智能体编码工具在开发者中得到了广泛采用。借助 MLX,通过启动一个由 mlx_lm.server 工具提供支持的服务器,即可在本地运行这些工具。例如,在端口 8080 上运行 Muse Spark Open 的服务器启动命令如下:
mlx.launch --hostfile hostfile.json --backend jaccl -- env MLX_METAL_FAST_SYNCH=1 -- \
mlx_lm.server --model meta-models/Muse-Spark-Open-816B-A42B-NVFP4 --port 8080
与 mlx_lm.benchmark 类似,mlx_lm.server 辅助工具也可以前缀 mlx.launch,以在多台 Mac Studio 之间并行化计算。在此基础上,可以使用 OpenCode 等工具启用智能体 AI,并轻松配置其使用该本地 LLM 服务器:
{
"$schema" : "https://opencode.ai/config.json" ,
"model" : "meta-models/Muse-Spark-Open-816B-A42B-NVFP4" ,
"provider" : {
"mlx" : {
"npm" : "@ai-sdk/openai-compatible" ,
MLX on Mac with Apple silicon lets AI researchers and developers experiment locally with the latest models and methods in a private environment. The open-source array framework leverages the unified memory architecture of Apple silicon, enabling anyone to run new inference and fine-tuning methods on their own hardware and explore other AI techniques. In a previous post , we highlighted the advantages of the M5 architecture and its GPU Neural Accelerators.
In this post, we show how to run the latest frontier-class model â Muse Spark Open, with nearly a trillion parameters â right from your desk, using the latest version of MLX, released today. On a cluster of four Mac Studios, Muse Spark Open generates over 36 tokens per second (see Figure 1 ), well above average human reading speed.
Beginning on a single Mac Studio (up to 512GB of unified memory), then scaling out across multiple Macs with the RDMA over Thunderbolt driver, below we share an overview of the range of models you can now run on Mac Studio.
Muse Spark Open Decode Speed
Context size of 8,192 tokens
Figure 1: Muse Spark Open decode speed in tokens per second, on Mac Studio with M5 Ultra, at a context size of 8,192 tokens. Higher is better. We report performance for three parallelization schemes: pipeline parallelization over two Mac Studio computers (2 M5 Pipeline), and tensor parallelization over two (2 M5 Tensor) and four Mac Studio (4 M5 Tensor) computers.
We benchmark several popular open-weight LLMs on Mac Studio , using the MLX LM package, as described in our prior post . We compare two generations of Mac Studio: the recently released M5 Ultra and the previous generation, M3 Ultra. The M5 generation features the GPU Neural Accelerator, which supports dedicated matrix multiplication operations, essential for many machine learning workloads.
We evaluate three frontier-class models ( Table 1 ) spanning a wide range of sizes (in billions of parameters, B): the newly released Muse Spark Open (816 B), Mistral Medium 3.5 (128 B), and Qwen 3.8 (27 B). Muse Spark Open is a mixture of experts (MoE) model, which keeps only a fraction of its experts â and thus parameters â active, reducing compute at inference, and it is evaluated in NVFP4 precision. Mistral Medium 3.5 and Qwen 3.8 are dense architectures, where all parameters are active at inference, and they are evaluated in their native floating-point precision (FP8 and BF16, respectively).
Model Total Parameters Active Parameters Native Precision Evaluation Precision
Muse Spark Open 816B 42B BF16 NVFP4
Mistral Medium 3.5 128B 128B FP8 FP8
Qwen 3.8 27B 27B BF16 BF16
Table 1: Language models used in this post. Models ship in various precision formats; we evaluate Qwen 3.8 and Mistral Medium 3.5 in their native precision, and Muse Spark Open in 4-bit (NVFP4) precision.
Our evaluation measures three metrics across a range of context sizes: time to first token (TTFT, in seconds), generation throughput (in tokens/second), and peak power usage (in watts). All the performance numbers in this post were obtained with mlx_lm.benchmark . For example, running Qwen 3.8 with 8,192 tokens of context and generating 128 tokens is performed with the command line:
mlx_lm.benchmark --model Qwen/Qwen3.8-27B -p 8192 -g 128 -b 1
A popular use of local LLMs on Mac Studio is running agentic experiences in a private environment, including agentic coding applications that often need large contexts. We therefore report performance at both 8,192 and 65,536 context sizes.
Raw TTFT and decode throughput are reported in Table 2 and Table 3 , respectively.
Qwen 3.8 27B and Mistral Medium 3.5 128B fit comfortably on a single Mac Studio with 512GB, taking up to 68GB and 158GB of RAM in the large context size (65,536 tokens) setup. In Figure 2 , we compare their inference performance on a single Mac Studio with 512GB of RAM, both on M3 Ultra and M5 Ultra.
Time to first token (TTFT) is essentially compute bound, and that is where the Neural Accelerators in the M5 Ultra GPU shine: the specialized hardware support for fast matrix-multiplication of the GPU Neural Accelerator directly translates into significant speedups for TTFT, up to 4.6Ã faster compared to an M3 Ultra (see Figure 2 ). That makes the Mac Studio with M5 Ultra the desktop of choice when it comes to handling tasks involving very large contexts.
Generation speed (in tokens per second) is memory-bandwidth bound. The M5 Ultra chip delivers 1.2 TB/s of unified memory bandwidth, up from 819 GB/s for the M3 Ultra. Here again, that translates directly into generation speed (see Figure 3 ), with the Mac Studio with M5 Ultra reporting 1.6Ã faster tokens/s.
TTFT Speedup
Single Mac Studio, M5 Ultra over an M3 Ultra baseline (1.0Ã)
Figure 2: Time to first token (TTFT) speedup on M5 Ultra over an M3 Ultra baseline, for Qwen 3.8 and Mistral Medium 3.5, at context sizes of 8,192 and 65,536 tokens. The M5 Ultra GPU Neural Accelerator shines on compute-bound workloads.
Decode Speedup
Single Mac Studio, M5 Ultra over an M3 Ultra baseline (1.0Ã)
Figure 3: Decode speedup on M5 Ultra over an M3 Ultra baseline, for Qwen 3.8 and Mistral Medium 3.5, at context sizes of 8,192 and 65,536 tokens. Decode is memory-bandwidth bound, and the M5 Ultraâs 1.2 TB/s of unified memory bandwidth (vs 819 GB/s on the M3 Ultra) is a key advantage.
The Mac Studio is also energy-efficient for LLM inference (see Figure 4 ): peak power consumption is about 200W for the Mac Studio with M3 Ultra, and 300W for the Mac Studio with M5 Ultra â a fraction of the power used by a common toaster. More importantly, that modest amount of power consumption means a Mac Studio can be deployed for AI work in any home or office environment.
Peak Power Consumption
Context size of 65,536 tokens
Figure 4: Peak power consumption (in watts) during Qwen 3.8 and Mistral Medium 3.5 inference, at a context size of 65,536 tokens, on Mac Studio with M3 Ultra and with M5 Ultra.
While both the Qwen and Mistral models fit on a single Mac Studio with 512GB of RAM, Muse Spark Open would require more than 1.6TB of RAM in its native precision (BF16) for the model parameters alone. In a 4-bit quantized (NVFP4) format, the model memory footprint is lowered to about 493GB. Add the memory needed for intermediate computations during inference, and the model cannot fit on a single machine. It requires parallelization across multiple Mac Studio computers.
Very large frontier-class models like Muse Spark Open will not fit on a single machine. It is, however, possible to store half of the model on one Mac Studio and the other half on another. We can then pipeline the modelâs inference across two computers: the first Mac Studio executes the first half of the modelâs layers, then sends the output to the second Mac Studio, which executes the second half. This parallelization scheme is called pipeline parallelization (see Figure 5 ) and is extremely simple to implement, requiring only minimal code changes.
Splitting Large Models Across Multiple Computers
Figure 5: MLX supports two approaches to splitting large models across multiple computers. With pipeline parallelization, a model is split across depth, while with tensor parallelization, a model is split across width.
MLX supports different parallelization schemes, as described in the MLX distributed documentation . These rely on fast inter-machine communication: macOS 26.2 introduced a low-latency RDMA driver over Thunderbolt 5, and MLX (v0.30.1 and later) builds on top of this driver and provides new communication collectives ( jaccl , pronounced âjackalâ) for different parallelization schemes. In our setup, the two Mac Studios are connected with two Thunderbolt cables (to double the link bandwidth), providing the RDMA-over-Thunderbolt link that jaccl uses. Once the hosts are set up, MLX provides mlx.launch , a helper command to launch jobs across multiple nodes:
mlx.launch --hostfile hostfile.json --backend jaccl -- env MLX_METAL_FAST_SYNCH=1 -- \
mlx_lm.benchmark --model mistralai/Mistral-Medium-3.5-128B -p 8192 -g 128 -b 1 --prefill-step-size 8192 --pipeline
In this command, --backend jaccl specifies the RDMA Thunderbolt driver backend. The --env MLX_METAL_FAST_SYNCH=1 flag enables an experimental MLX feature for fast CPU-GPU synchronization, reducing communication overhead between the CPU (which initiates the Thunderbolt communication) and the GPU (which does the compute).
In general, decode inference speed with pipeline parallelization (see Figure 7 ) is very similar to that of a single machine, since the layers are still evaluated sequentially. Communication overhead is also very low, as only the intermediate outputs between the two sets of layers need to be exchanged.
It is however notable that for very large contexts (65,536 tokens in our benchmark), pipeline parallelization ends up faster than a single node for prefill â up to ~1.8Ã faster (see Figure 6 ). This is because MLX segments large contexts into smaller chunks (here, 8,192 tokens, as set by --prefill-step-size 8192 ) and pipelines the prefill across the machines: while the second machine computes the later layers of chunk k k k , the first machine computes the earlier layers of chunk k + 1 k+1 k + 1 , so consecutive chunks overlap in time. For even better compute parallelization, we next turn to tensor parallelization.
TTFT Speedup
Two Mac Studios with pipeline parallelization, over a single M5 Ultra baseline (1.0Ã)
Figure 6: Time to first token (TTFT) speedup of two M5 Ultras with pipeline parallelization over a single M5 Ultra baseline, for Qwen 3.8 and Mistral Medium 3.5, at context sizes of 8,192 and 65,536 tokens. Splitting the context (here into 8,192-token chunks) lets MLX overlap computation across the two machines â hence the speedup at 65,536 but not 8,192.
Decode Speedup
Two Mac Studios with pipeline parallelization, over a single M5 Ultra baseline (1.0Ã)
Figure 7: Decode speedup of two M5 Ultras with pipeline parallelization over a single M5 Ultra baseline, for Qwen 3.8 and Mistral Medium 3.5, at context sizes of 8,192 and 65,536 tokens. Pipeline parallelization leaves decode speed essentially unchanged.
Tensor parallelization (see Figure 5 ) distributes the LLMâs width across several computers, in contrast to pipeline parallelization, which distributes the model across its depth. Each machine now holds a fraction of each of the layers of the model, such that per-layer computation is parallelized. When efficiently implemented, tensor parallelization improves inference speed. However, tensor parallelization is more complex to implement than pipeline parallelization: each layer must be parallelized, which increases code complexity. The scheme also involves many small communication operations: for each input token and for each layer, one must broadcast inputs and aggregate outputs. As a result, a very low-latency communication technology like Thunderbolt RDMA, supported by MLX jaccl , is critical for this approach to yield any speedup.
With MLXâs high-level mlx.launch helper, it is easy to switch to tensor parallelization. The Mac Studio computers are connected in a Thunderbolt mesh, with each pair of machines linked peer-to-peer by two Thunderbolt cables. Assuming the hosts are set up, we simply launch the benchmark across multiple machines with:
mlx.launch --hostfile hostfile.json --backend jaccl -- env MLX_METAL_FAST_SYNCH=1 -- \
mlx_lm.benchmark --model meta-models/Muse-Spark-Open-816B-A42B-NVFP4 -p 8192 -g 128 -b 1
Figure 8 and Figure 9 show the speedups obtained with two or four Mac Studio computers with M5 Ultra, relative to a single-machine baseline (or, for Muse Spark Open, the pipeline parallelization baseline). Notably, dense architectures scale better across multiple computers.
With a small number of machines, the communication overhead of tensor parallelization can offset some of its compute benefits at very large contexts, though this applies to prefill only. This shows up with Muse Spark Open, where separate normalization of the expertsâ outputs adds some prefill communication, enough that at very large contexts (65,536 tokens), two-machine tensor parallelization lags behind two-machine pipeline parallelization. The approach however pays off as machines are added, as seen with four M5 Ultras. Decode is unaffected: Muse Spark Open sustains a significant decode speedup under tensor parallelization even at large contexts, comparable to dense models like Qwen 3.8 and Mistral Medium 3.5.
The two-cable mesh also pays off during prefill, where the extra link bandwidth is felt. For Muse Spark Open on four M5 Ultras at a 65,536-token context, two cables per link cut TTFT from about 50.5s (one cable) to 40.6s â the two-cable value reported in Table 2 , the one-cable run being an additional experiment.
TTFT Speedup
Two or four Mac Studios with tensor parallelization, over a single M5 Ultra baseline (1.0Ã; Muse Spark Open: two-machine pipeline)
Figure 8: Time to first token (TTFT) speedup of two or four M5 Ultras with tensor parallelization over a single M5 Ultra baseline, for Qwen 3.8, Mistral Medium 3.5, and Muse Spark Open, at context sizes of 8,192 and 65,536 tokens. Muse Spark Open does not fit on a single machine, so its baseline is the two M5 Ultra pipeline configuration.
Decode Speedup
Two or four Mac Studios with tensor parallelization, over a single M5 Ultra baseline (1.0Ã; Muse Spark Open: two-machine pipeline)
Figure 9: Decode speedup of two or four M5 Ultras with tensor parallelization over a single M5 Ultra baseline, for Qwen 3.8, Mistral Medium 3.5, and Muse Spark Open, at context sizes of 8,192 and 65,536 tokens. Muse Spark Open does not fit on a single machine, so its baseline is the two M5 Ultra pipeline configuration.
Time to First Token (seconds)
Lower is better
8,192 tokens 65,536 tokens
Model M3 Ultra M5 Ultra 2 M5 Pipeline 2 M5 Tensor 4 M5 Tensor
Muse Spark Open â â 8.4 8.2 4.8
Mistral Medium 3.5 95.9 24.6 24.5 14.4 7.5
Qwen 3.8 18.2 4.1 4.1 3.1 1.7
Table 2: Time to first token (TTFT) in seconds for Qwen 3.8, Mistral Medium 3.5, and Muse Spark Open, at context sizes of 8,192 and 65,536 tokens. Lower is better. We report a single M3 Ultra, a single M5 Ultra, two M5 Ultras (pipeline and tensor parallelization), and four M5 Ultras (tensor parallelization).
Decode Speed (tokens per second)
Higher is better
8,192 tokens 65,536 tokens
Model M3 Ultra M5 Ultra 2 M5 Pipeline 2 M5 Tensor 4 M5 Tensor
Muse Spark Open â â 15.74 24.99 36.73
Mistral Medium 3.5 4.95 7.70 7.70 13.69 23.37
Qwen 3.8 12.46 19.69 19.44 33.27 50.89
Table 3: Decode speed in tokens per second for Qwen 3.8, Mistral Medium 3.5, and Muse Spark Open, at context sizes of 8,192 and 65,536 tokens. Higher is better. We report a single M3 Ultra, a single M5 Ultra, two M5 Ultras (pipeline and tensor parallelization), and four M5 Ultras (tensor parallelization). Decode speed was measured over 128 generated tokens following the context.
Recently, agentic AI on Mac has gained considerable traction, with agentic coding tools seeing widespread adoption among developers. With MLX, powering these tools locally is as simple as launching a server with the mlx_lm.server tool. For example, a server running Muse Spark Open on port 8080 is started with:
mlx.launch --hostfile hostfile.json --backend jaccl -- env MLX_METAL_FAST_SYNCH=1 -- \
mlx_lm.server --model meta-models/Muse-Spark-Open-816B-A42B-NVFP4 --port 8080
As with mlx_lm.benchmark , the mlx_lm.server helper can be prefixed with mlx.launch to parallelize computation across multiple Mac Studios. From there, agentic AI can be enabled with tools like OpenCode , which can be easily configured to use that local LLM server:
{
"$schema" : "https://opencode.ai/config.json" ,
"model" : "meta-models/Muse-Spark-Open-816B-A42B-NVFP4" ,
"provider" : {
"mlx" : {
"npm" : "@ai-sdk/openai-compatible" ,
| 刊期 | 得分 | 排名 | 结果 |
|---|---|---|---|
| 2026-11-11 | 7.4 | 64 | 未入选 |
| 2026-11-10 | 7.4 | 52 | 未入选 |
| 2026-11-09 | 7.4 | 38 | 未入选 |
| 2026-11-08 | 7.4 | 52 | 未入选 |
| 2026-11-07 | 7.4 | 66 | 未入选 |
| 2026-11-06 | 7.4 | 71 | 未入选 |
| 2026-11-05 | 7.4 | 61 | 未入选 |
| 2026-11-04 | 7.4 | 65 | 未入选 |
| 2026-11-03 | 7.4 | 49 | 未入选 |
| 2026-10-26 | 7.4 | 21 | 入选 |
| 2026-10-25 | 7.4 | 34 | 未入选 |
| 2026-10-24 | 7.4 | 60 | 未入选 |
| 2026-10-23 | 7.4 | 73 | 未入选 |
| 2026-10-22 | 7.4 | 63 | 未入选 |
| 2026-10-21 | 7.4 | 61 | 未入选 |
| 2026-10-20 | 7.4 | 45 | 未入选 |
| 2026-10-19 | 7.49 | 38 | 未入选 |
| 2026-10-18 | 7.77 | 45 | 未入选 |
| 2026-10-17 | 8.22 | 54 | 未入选 |
| 2026-10-16 | 8.95 | 39 | 未入选 |