Ollama 更新 MLX 引擎,在 Apple Silicon 上性能创新高
Ollama's highest performance on Apple Silicon yet with MLX · Ollama Blog
Ollama 更新 MLX 引擎,称这是其在 Apple Silicon 上的最高性能表现,模型响应更快、占用内存更少。新引擎支持 NVIDIA 的 NVFP4 格式,在 Gemma 4 12B 上相比 q4_K_M 约将量化质量损失减半,同时通过 Metal kernel 融合等优化使输出速度最高提升 20%。此外新增快照系统,为多智能体、思考型模型和分支重试保存模型状态,避免重复处理相同上下文。
正文
当前显示原文,中文全文译文尚未就绪。
June 11, 2026
Ollama’s MLX engine has been updated to deliver its highest performance on Apple Silicon yet. By leaning more heavily on Apple’s unified memory and the Metal-backed MLX framework, models output higher quality responses, respond faster, and use less memory.
Higher quality responses with NVFP4
Ollama’s MLX engine has been updated to support NVIDIA’s model-optimized NVFP4 format, allowing for higher quality outputs than other 4-bit quantization formats while maintaining state-of-the-art performance. As an added benefit, models that are optimized for datacenter deployment can now be imported and run on with Ollama’s MLX engine allowing for portability between the datacenter and the desktop.
NVFP4 tracks the local dynamic range of model weights more closely, reducing loss from quantization. When measuring the perplexity difference between q4_K_M, a common 4-bit quantization format available with Ollama, NVFP4, and unquantized bf16 weights for the Gemma 4 12B model, model-optimized NVFP4 roughly halves the quality loss while maintaining performance:
Faster output performance
Ollama’s MLX engine is now up to 20% faster from new optimizations: several operations are now fused into single Metal kernels via MLX’s just-in-time compiler features, and we’ve reworked Ollama’s GPU-backed sampling to run more efficiently.
More responsive with agent workflows
Agent workloads are dominated by prompt processing. Every tool call is a new request, and every request resends the whole transcript: system prompt, tool definitions, and every file read so far. Over a single task the model ends up processing the same context dozens of times. Prefix caching avoids the repeated work, as long as each request picks up where the last one left off.
Real agent sessions don’t work that way for long. Ollama’s new snapshot system saves model state at key points across conversations, using the same approach that serves agent workloads in Ollama’s cloud:
Multiple agents: An agent hands off to a subagent and picks back up later, or two sessions run at the same time. Each one resumes from its own saved state, and anything they have in common — often tens of thousands of tokens of system prompt, tool definitions, and ingested files — is only processed once; Thinking models: Reasoning tokens are generated, then dropped from the conversation history, so the next request never matches the state the engine just built. Each turn would normally reprocess the whole conversation. A snapshot taken right before the response starts gives the next turn somewhere to resume from; Branching and retries: A different follow-up or a regenerated response diverges from the cached conversation instead of extending it. Because snapshots exist where conversations split, only the new direction needs to be processed
Most new models make this harder than it sounds. Sliding-window attention and recurrent layers carry state that can’t be rewound. Once the model moves past a point in the conversation, that point can’t be recovered unless state was saved at the time. Ollama saves state at the points conversations are likely to return to: where they branch, at intervals through long prompts, and just before each response. Keeping snapshots selective and incremental leaves more memory for the model.
To run models with Ollama’s MLX engine, download the latest version of Ollama, then run a model:
For use in a coding agent, use ollama launch: