---
title: Sophon-Realtime-4B-Flash-MLX
canonical_url: "https://www.modelscope.cn/models/AdventistsAI/Sophon-Realtime-4B-Flash-MLX"
md_url: "https://www.modelscope.cn/models/AdventistsAI/Sophon-Realtime-4B-Flash-MLX.md"
repository: AdventistsAI/Sophon-Realtime-4B-Flash-MLX
chinese_name: "智子实时语音-4B-Flash-MLX"
last_updated: 2026-12-02
license: apache-2.0
model_type:
  - sophon_realtime
parameters: 3.4B
tensor_type:
  - BF16
  - F32
  - U32
library_name:
  - mlx
  - safetensors
language:
  - zh
  - en
downloads: 271
stars: 0
tags:
  - sophon-realtime
  - full-duplex
  - speech-to-speech
  - realtime
  - mlx
  - apple-silicon
---

# Sophon-Realtime-4B-Flash-MLX

> Sophon-Realtime-4B-Flash-MLX - AdventistsAI 在 ModelScope 开源的模型。智子实时语音 Sophon-Realtime-4B-Flash-MLX

AdventistsAI/Sophon-Realtime-4B-Flash-MLX 是 ModelScope 魔搭社区上的 3.4B 参数机器学习模型，采用 apache-2.0 许可。

- **Repository**: AdventistsAI/Sophon-Realtime-4B-Flash-MLX
- **License**: apache-2.0
- **Parameters**: 3.4B
- **Tags**: sophon-realtime, full-duplex, speech-to-speech, realtime, mlx, apple-silicon
- **Downloads**: 271
- **Stars**: 0
- **Last updated**: 2026-12-02

Source: https://www.modelscope.cn/models/AdventistsAI/Sophon-Realtime-4B-Flash-MLX

---

# 智子实时语音 Sophon-Realtime-4B-Flash-MLX

> **没有显卡？** 可以直接用在线 API：[注册](https://api.adventists.cn/console/)就送 3 小时免费对话（兼容 OpenAI Realtime，[文档](https://api.adventists.cn/console/docs)）。

**版本 1.5.0**（2026-11-18）· [更新记录](https://github.com/adventists-ai/sophon-realtime/blob/main/CHANGELOG.md) · 代码：[`mac/`](https://github.com/adventists-ai/sophon-realtime/tree/main/mac) · CUDA 版：[Sophon-Realtime-4B-Flash](https://www.modelscope.cn/models/AdventistsAI/Sophon-Realtime-4B-Flash) · 32B Mac 版：[Sophon-Realtime-32B-Flash-4bit-MLX](https://www.modelscope.cn/models/AdventistsAI/Sophon-Realtime-32B-Flash-4bit-MLX) · English: `README_EN.md`

全双工语音模型 [Sophon-Realtime-4B-Flash](https://www.modelscope.cn/models/AdventistsAI/Sophon-Realtime-4B-Flash)，**在 16 GB 及以上内存的苹果芯片 Mac 上本地运行**（MLX）。
你说话，它自己判断你说完没有，用自己的声音和声音标签回答；你打断它就停，你只是"嗯"一声它就接着讲。听、判断话轮、说话全部由模型在 Mac 的 GPU 上完成：不上云，中间也没有语音转文字这一步。

思考器里的语言模型由 `mlx_lm` 量化为 8 位（每 64 个一组）；音频塔、投影层和发声部分与 CUDA 版是同一份权重。

## Mac 上选 4B 还是 32B

| | **4B（本仓库）** | 32B |
|---|---|---|
| 统一内存 | **16 GB 可以跑**（对话时占用约 11 GB）；建议 24 GB 以上 | 32 GB 可以跑，建议 36 GB 以上（占用约 26 GB） |
| 下载 | 约 9 GB | 约 24 GB |
| 你说完 → 它开口（M4 Max） | 确定你说完时 **0.3–0.5 s** | 0.9–1.1 s |
| 知识和推理 | 弱很多（CUDA 版 VoiceBench 62.4） | 强（82.8） |

4B 大脑保留了对话本领（话轮判断、附和、打断、声音标签），但知识和推理弱很多，可能很自信地说错事实。适合本地演示、陪伴和角色扮演；需要答得准时，用 32B 版或[在线 API](https://api.adventists.cn/console/)。

## 要求
- 苹果芯片（M1 及以上）、macOS 14 及以上、**统一内存 16 GB 及以上**（16 GB 时请关掉其他程序）
- 下载约 9 GB
- 一个麦克风。Mac Studio 和 Mac mini 没有内置麦克风，请插 USB 麦克风或耳机。用外放也可以，自带回声消除

## 快速上手
```bash
git clone https://github.com/adventists-ai/sophon-realtime && cd sophon-realtime
SIZE=4B bash mac/install.sh       # Python 环境 + 本仓库权重，装到 ~/sophon-mac/models-4b
~/sophon-mac/sophon-4b            # 用中文聊
~/sophon-mac/sophon-4b --lang en  # 用英文聊
```
选项：`--no-aec`（戴耳机，不做回声消除）、`--in` / `--out`（音频设备，`--list` 列出）、`--voice`。32B 和 4B 可以同时装。

## 话轮判断
4B 大脑回答的是服务器版的四选项话轮问题（"说完了 / 还在说 / 附和 / 在犹豫"），用单独的短提示词提问；32B Mac 版更短的两选项问法是按 32B 调的，4B 不适用（由 `config.json` 里的 `turn_question` 选择）。
在 Smart Turn v3.2 测试集抽样上的准确率（每种语言 300 段，一半说完；每段取最后 8 s）：

| | 英文 准确率 / AUC | 中文 准确率 / AUC |
|---|---|---|
| **4B，本仓库** | **90.0 / 0.961** | **89.7 / 0.954** |
| 4B 用 32B 版的短问法 | 72.3 / 0.888 | 74.0 / 0.851 |
| 32B Mac 版（同一批样本） | 91.7 / 0.961 | 92.7 / 0.973 |

模型不确定你说完没有时，会最多等到 2 s 静音再回答。

## 现状和局限
- 在 M4 Max（36 GB）上用实时模拟音频输入测试过，并把 MLX 内存限制在 10.5 GB（16 GB Mac 给 GPU 的量）：整段对话跑完，峰值 11.3 GB。
  还没在真实的 16 GB Mac 上试过，欢迎在 [issue #1](https://github.com/adventists-ai/sophon-realtime/issues/1) 反馈。
- 一次一路对话。Mac 版暂时还没有摄像头输入、工具调用和零样本音色克隆（只有内置音色）。

## 文件
| 目录 | 内容 |
|---|---|
| `thinker_mlx/` | 思考器的语言模型，供 `mlx_lm` 使用，8 位 |
| `ear/` | 思考器的音频塔和投影层 |
| `talker/` | 发声部分（与 Flash 相同） |
| `voices/` | 内置音色 |

许可：代码 Apache-2.0；模型权重 Apache-2.0，来源见 `NOTICE`。
