能力标签
⚙️
Agent工作流

苹果芯片AI服务

基于 Zig · 无代码搭建完整 AI 自动化流程
英文名:mlx-serve
⭐ 163 Stars 🍴 8 Forks 💻 Zig 📄 MIT 🏷 AI 8.0分
8.0AI 综合评分
apple-siliconaillmzig
✦ AI Skill Hub 推荐

AI Skill Hub 强烈推荐:苹果芯片AI服务 是一款优质的Agent工作流。AI 综合评分 8.0 分,在同类工具中表现稳健。如果你正在寻找可靠的Agent工作流解决方案,这是一个值得深入了解的选择。

📚 深度解析

苹果芯片AI服务 是一套完整的 AI Agent 自动化工作流方案。随着 AI 能力的不断提升,基于 Agent 的自动化工作流正在成为提升个人和团队效率的核心方式。区别于传统的 RPA 自动化(模拟鼠标键盘操作),AI Agent 工作流通过理解任务意图、动态规划执行路径,能够处理更复杂的非结构化任务。

苹果芯片AI服务 工作流的设计遵循"最小配置,最大复用"原则:核心逻辑已经封装好,用户只需配置自己的 API Key 和业务参数即可快速上手。工作流内置错误处理和重试机制,在网络波动或 API 限速等情况下仍能稳定运行,适合作为生产环境的自动化基础设施。

在实际部署时,建议先在测试环境中运行 3-5 次,验证各个环节的输出结果符合预期,再部署到生产环境。AI Skill Hub 评分 8.0 分,是同类 Agent 工作流中的精选推荐。

📋 工具概览

苹果芯片AI服务 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。

GitHub Stars
⭐ 163
开发语言
Zig
支持平台
Windows / macOS / Linux
维护状态
轻量级项目,按需更新
开源协议
MIT
AI 综合评分
8.0 分
工具类型
Agent工作流
Forks
8

📖 中文文档

以下内容由 AI Skill Hub 根据项目信息自动整理,如需查看完整原始文档请访问底部「原始来源」。

苹果芯片AI服务 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。

📌 核心特色
  • 可视化 Agent 工作流编排,无需编写复杂代码
  • 支持多步骤自动化任务链,实现全流程无人值守
  • 与外部 API、数据库和第三方服务无缝集成
  • 内置错误处理与自动重试机制,保障稳定运行
  • 提供可复用的自动化模板,快速在同类场景部署
🎯 主要使用场景
  • 自动化日常重复性工作,将精力集中于创造性任务
  • 构建数据采集 → 处理 → 输出的完整自动化管线
  • 实现跨平台、跨系统的数据流转和业务协同
以下安装命令基于项目开发语言和类型自动生成,实际以官方 README 为准。
安装命令
# 克隆仓库
git clone https://github.com/ddalcu/mlx-serve
cd mlx-serve

# 查看安装说明
cat README.md

# 按 README 完成环境依赖安装后即可使用
📋 安装步骤说明
  1. 访问 GitHub 仓库获取工作流文件
  2. 在对应平台(Dify / Flowise / Make 等)中找到「导入工作流」功能
  3. 上传工作流文件
  4. 按照提示配置必要的环境变量和 API Key
  5. 运行测试确认流程正常后投入使用
以下用法示例由 AI Skill Hub 整理,涵盖最常见的使用场景。
常用命令 / 代码示例
# 查看帮助
mlx-serve --help

# 基本运行
mlx-serve [options] <input>

# 详细使用说明请查阅文档
# https://github.com/ddalcu/mlx-serve
以下配置示例基于典型使用场景生成,具体参数请参照官方文档调整。
配置示例
# mlx-serve 配置说明
# 查看配置选项
mlx-serve --config-example > config.yml

# 常见配置项
# output_dir: ./output
# log_level: info
# workers: 4

# 环境变量(覆盖配置文件)
export MLX_SERVE_CONFIG="/path/to/config.yml"
📑 README 深度解析 真实文档 完整度 95/100 查看 GitHub 原文 →
以下内容由系统直接从 GitHub README 解析整理,保留代码块、表格与列表结构。

mlx-serve — run any LLM on your Mac

**OpenAI- and Anthropic-compatible local inference for Apple Silicon — MLX and GGUF — faster than LM Studio on the same file. No Python. No cloud. No Electron.**

Release Stars Downloads Last commit License: MIT macOS Zig

ddalcu.github.io/mlx-serve · Download MLX Core.app · Changelog

If mlx-serve saves you from spinning up another Electron app, star the repo — it genuinely helps people find this.

mlx-serve is a native Zig server that runs any LLM on Apple Silicon — MLX-format models and every GGUF on HuggingFace (Qwen, Llama, Mistral, Gemma, DeepSeek V4 Flash, thousands more). It exposes OpenAI-compatible and Anthropic-compatible HTTP APIs out of the box, so the same http://localhost:11234 works with Claude Code, the OpenAI SDK, Continue, Cursor, Open WebUI, and anything else that speaks one of those wires. Ships with MLX Core, a macOS menu-bar app with chat, agent mode, MCP tool calling, and model management.

MLX Core

<img src="docs/appiconb.png" width="48" align="center"> Download MLX Core.app — latest release for macOS (Apple Silicon)

Features

  • Run any LLM — every supported MLX architecture and the entire GGUF universe via embedded llama.cpp. DeepSeek V4 Flash runs through the dedicated antirez/ds4 engine.
  • OpenAI-compatible API/v1/chat/completions, /v1/completions, /v1/embeddings, /v1/models, streaming SSE, tools, JSON-schema constrained decoding, logprobs.
  • OpenAI Responses API/v1/responses with previous_response_id chains, per-event sequence_number, the /v1/responses/compact opaque history blob, and a WebSocket transport on the same endpoint.
  • Anthropic Messages API/v1/messages works with Claude Code (ANTHROPIC_BASE_URL=http://localhost:11234) and the Anthropic SDK.
  • Speculative decoding — PLD (model-agnostic n-gram lookup, on by default) + the Gemma 4 cross-attention drafter. Adaptive prompt-time and runtime gates keep novel-content workloads at parity; agentic code loops see up to 1.6×.
  • KV-cache quantization — 4-bit / 8-bit / TurboQuant variants shrink KV memory ~4× / ~2× / further still, so 16K contexts fit on hardware that couldn't hold them dense.
  • Continuous batching--max-concurrent N batches decode requests through one forward pass for ~1.6× throughput at 4-way parallel.
  • Prefix cache — shared system-prompt KV reuse across turns and across conversations. v26.5.7 adds an LRU of llama.cpp KV sessions so multi-doc agent loops stay warm.
  • Tokenize cache — chat-template render + tokenize cached per request; the second hit on a long conversation is a memcpy. Warm TTFT 7.7× faster on 1.8K-token prompts.
  • Vision — Gemma 4 SigLIP encoder; send images via image_url content blocks.
  • Reasoning / thinking — full streaming of thinking tokens as reasoning_content.
  • No Python — single Zig binary, no pip, no venv. The MLX Core app ships everything signed and notarized.

Prerequisites

  • macOS 26+ with Apple Silicon (M1/M2/M3/M4) — the released app bundles MLX dylibs built for macOS 26; older macOS needs a from-source build against a local mlx
  • Zig 0.16+ (only if building from source)
  • mlx-c and libwebp (only if building from source):
brew install mlx-c webp

Install via Homebrew

brew tap ddalcu/mlx-serve https://github.com/ddalcu/mlx-serve
brew install --cask mlx-core   # GUI menu bar app
brew install mlx-serve          # CLI server only

Build and run

./scripts/fetch-llama.sh (only once)
zig build -Doptimize=ReleaseFast
./zig-out/bin/mlx-serve --model ~/.mlx-serve/models/gemma-4-e4b-it-4bit --serve --port 8080

Build the app

./scripts/fetch-llama.sh (only once)
cd app && SKIP_NOTARIZE=1 bash build.sh
open "MLX Core.app"

Requires APPLE_DEVELOPER_ID and APPLE_TEAM_ID environment variables for code signing.

Build + ship

  • Zig — the systems language the server is written in. The 0.16 migration was painless thanks to the team's documentation.
  • Homebrew — distribution channel for both the server (brew install mlx-serve) and the GUI (brew install --cask mlx-core).

If we missed you, please open a PR — happy to add anyone who landed code, fixtures, or a fix here.

Quick Start

Usage

Image / Video Generation (optional)

The tray has ImageGen and VideoGen buttons that run FLUX.2 and LTX-Video 2.3 through a Python subprocess. Both run natively on MLX — no MPS/diffusers path. This is completely optional — the Zig server itself remains Python-free.

Prerequisite: Python 3 and ffmpeg must be installed on your Mac.

brew install python ffmpeg

Then launch MLX Core, click the ImageGen (or VideoGen) tray icon, and hit Install in the window. The app will:

  1. Create a dedicated venv at ~/.mlx-serve/venv (does not touch your system Python)
  2. Install mflux (FLUX), ltx-pipelines-mlx (LTX-2.3), and shared utilities. ~3 GB pip install.
  3. Download the model weights on first generation (HuggingFace cache, resumable)

Models:

FeatureDefaultOther optionsApprox. RAM
ImageFLUX.2-klein 4B 4-bit (mflux, ~5 GB pre-quantized)FLUX.1-schnell / dev 4-bit and 8-bit8 / 12 / 16 GB
VideoLTX-Video 2.3 Q424 GB RAM, ~50 GB first-run download (LTX 41 GB + Gemma 8 GB)
The 41 GB LTX snapshot ships both transformer variants (1-stage distilled + 2-stage dev, ~11 GB each) plus a 7.6 GB distillation LoRA, so you can switch between Fast/Good/Quality/Super offline without re-downloading.

The image path uses mflux for native MLX inference with built-in 4/8-bit quantization. The video path uses ltx-2-mlx with audio generation (muxed via system ffmpeg).

Outputs go to ~/.mlx-serve/generations/images/YYYY-MM-DD/ and .../videos/YYYY-MM-DD/.

The app won't let you start a generation if there isn't enough free RAM. If the mlx-serve server is running and competing for memory, you'll be prompted to stop it first.

CLI options

FlagDefaultDescription
--model PATHrequiredPath to the model directory or a .gguf file
--serveoffStart the HTTP server
--host ADDR127.0.0.1Host address to bind
--port N11234Port for the HTTP server
--prompt TEXT"Hello"Prompt for interactive mode
--max-tokens N100Maximum tokens to generate
--temp F0.0Sampling temperature (0 = greedy)
--ctx-size NautoContext window size (auto = computed from GPU memory)
--timeout N300Request timeout in seconds
--reasoning-budget N-1Thinking token budget (-1 = unlimited, 0 = no thinking)
--no-visionoffDisable vision encoder even if model supports it
--pld / --no-pldonPrompt Lookup Decoding (model-agnostic spec-decode)
--pld-draft-len N5Max draft tokens per PLD step
--pld-key-len N3N-gram match key length for PLD
--drafter DIRnoneGemma 4 assistant drafter checkpoint (e.g. gemma-4-E4B-it-assistant-bf16)
--draft-block-size N4Drafts per round for the Gemma 4 drafter
--kv-quant {off,4,8,turbo2,turbo4}offKV-cache quantization scheme (MLX path)
--llama-kv-quant {off,q8,q4}offKV-cache quantization for GGUF (llama.cpp path)
--llama-cache-entries N1Multi-session LRU for llama.cpp (warm multi-doc agents)
--tokenize-cache-entries N4Chat-template + tokenize cache size
--max-concurrent N1Continuous-batch decode parallelism
--prefix-cache-entries NautoShared-prefix KV cache entry cap
--prefix-cache-mem N{KB,MB,GB}2 GBShared-prefix KV cache memory cap
--model-dir PATHnoneDiscover and serve every model in a folder (LRU resident set)
--log-levelinfoLog level (error, warn, info, debug)

API

POST /v1/responses (OpenAI Responses API)

curl http://localhost:8080/v1/responses \
  -H "Content-Type: application/json" \
  -d '{
    "model": "mlx-serve",
    "input": "Write a haiku about programming.",
    "stream": true
  }'

Stateful chains via previous_response_id, full streaming SSE with per-event sequence_number, schema-conformant envelope with tools / tool_choice / text / reasoning / usage echo. POST /v1/responses/compact returns an opaque base64 history blob that round-trips back as a compaction input item without any LLM call. Same endpoint also accepts an Upgrade: websocket handshake — each text frame is a response.create JSON message, and each SSE event becomes one outbound text frame.

Other endpoints

  • GET /health — health check
  • GET /v1/models — list loaded models with capabilities + engine info
  • POST /v1/completions — text completions
  • POST /v1/embeddings — text embeddings (BERT and encoder-only models)
  • GET /v1/responses/{id}, DELETE /v1/responses/{id} — fetch / delete stored responses

What about the OpenAI SDK, Continue, Cursor, Open WebUI?

All work — anything that talks the OpenAI chat-completions or Anthropic Messages wire protocol does. mlx-serve also implements the newer OpenAI Responses API (/v1/responses) for clients that want stateful chains via previous_response_id, plus a WebSocket transport on the same endpoint.

Supported Models

Architecturemodel_typeExamplesChat FormatVision
**Gemma 4**gemma4gemma-4-e2b-it-4bit, gemma-4-e4b-it-8bit, gemma-4-26b-a4b-it-4bitGemma turnsSigLIP
**Gemma 3**gemma3gemma-3-12b-it-qat-4bitGemma turns--
**Qwen 3 / 3.5 / 3.6**qwen3, qwen3_5, qwen3_5_moe, qwen3_nextQwen3-4B, Qwen3.5-4B, Qwen3.6-35B-A3BChatML--
**Nemotron-H**nemotron_hNemotron-3-Nano-4BChatML--
**LFM2**lfm2LFM2.5-350MChatML--
**Llama**llamaLlama 3, Llama 3.1, Llama 3.2Llama-3--
**Mistral**mistralMistral 7BChatML--
**DeepSeek V4 Flash**deepseek_v4 (GGUF)DeepSeek-V4-FlashDSV4--
**Anything else as GGUF**via embedded llama.cppany .gguf on HuggingFaceper-template--

Any quantized MLX model using one of the above architectures works natively. Anything else can be served as GGUF through the embedded llama.cpp engine — just pick the .gguf file in the Model Browser and the server auto-routes by format. Models with unsupported architectures are flagged in the Model Browser but can still be downloaded.

MLX Core (Swift app) integrations

  • Anthropic swift-sdk — the Claude API client the agent loop uses.
  • Model Context Protocol (Swift SDK) — powers the MCP marketplace + tool routing.
  • Apple frameworks (PDFKit, WKWebView, AVFoundation, AppKit, SwiftUI) — the menu-bar app, browser tool, video player, and PDF attachment pipeline all ride on these.

vs. LM Studio (HTTP-vs-HTTP)

+35% faster overall (geomean across 18 cells, best mlx-serve vs best LMS, identical 4-bit weights, ctx=4096, temp=0).

ModelEchoCodeFree-form
Gemma 4 E2B**+122%****+47%**+20%
Gemma 4 E4B**+97%****+53%****+35%**
Gemma 4 31B+20%+4%-1%
Gemma 4 26B-A4B-MoE**+66%**+23%+31%
Qwen 3.6 27B**+60%**+24%+32%
Qwen 3.6 35B-A3B-MoE**+88%**+20%+25%

Gemma 4 Qwen 3.6

Reproduce: ./tests/bench.sh --family gemma --lmstudio --omlx (or qwen36). Requires lms, jq, python3, matplotlib; --omlx requires omlx on PATH.

FAQ

🎯 aiskill88 AI 点评 A 级 2026-06-20

高性能AI工作流,支持苹果芯片

📚 实用指南(长尾问题)
适合谁
  • 需要 mlx-serve 解决具体问题的开发者与运营人员
最佳实践
  • 先在测试环境跑通最小用例,再接入生产数据
常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
部署方案
  • 云端托管:可放在 Vercel / Railway / Fly.io 等 PaaS 平台
相关搜索
mlx-serve 中文教程mlx-serve 安装报错怎么办mlx-serve 与同类工具对比mlx-serve 最佳实践mlx-serve 适合谁用

⚡ 核心功能

👥 适合谁
  • 需要 mlx-serve 解决具体问题的开发者与运营人员
⭐ 最佳实践
  • 先在测试环境跑通最小用例,再接入生产数据
⚠️ 常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)

👥 适合人群

自动化工程师和运维人员项目经理和业务分析师希望减少重复性工作的专业人士数字化转型团队

🎯 使用场景

  • 自动化日常重复性工作,将精力集中于创造性任务
  • 构建数据采集 → 处理 → 输出的完整自动化管线
  • 实现跨平台、跨系统的数据流转和业务协同

⚖️ 优点与不足

✅ 优点
  • +MIT 协议,可免费商用
  • +大幅减少重复性人工操作
  • +可视化流程,清晰直观
  • +可扩展性强,支持复杂场景
⚠️ 不足
  • 初始配置和调试需投入一定时间
  • 强依赖外部服务的稳定性
  • 复杂场景需具备一定技术基础
⚠️ 使用须知

AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。

建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。

📄 License 说明

✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。

🔗 相关工具推荐

🧩 你可能还需要
基于当前 Skill 的能力图谱,自动补全的工具组合

❓ 常见问题 FAQ

参考项目文档和示例代码
💡 AI Skill Hub 点评

总体来看,苹果芯片AI服务 是一款质量优秀的Agent工作流,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。

⬇️ 获取与下载
⬇ 下载源码 ZIP

✅ MIT 协议 · 可免费商用 · 直接从 aiskill88 服务器下载,无需跳转 GitHub

📚 深入学习 苹果芯片AI服务
查看分步骤安装教程和完整使用指南,快速上手这款工具
🌐 原始信息
原始名称 mlx-serve
Topics apple-siliconaillmzig
GitHub https://github.com/ddalcu/mlx-serve
License MIT
语言 Zig
🔗 原始来源
🐙 GitHub 仓库  https://github.com/ddalcu/mlx-serve 🌐 官方网站  http://mlxserve.com/

收录时间:2026-06-20 · 更新时间:2026-06-20 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。

📺 订阅 AI Skill Hub Daily Telegram 频道
每天 8 条精选 AI Skill、MCP、Agent 与自动化工具推送
加入频道 →