Confucius4-R2T2 โ Apple Neural Engine (fp16)
Core AI conversion of NetEase Youdao's Confucius4-R2T2, a streaming speech recognition model finetuned from Qwen3-ASR-1.7B. It runs entirely on the Apple Neural Engine, so text keeps up with your voice while the GPU is busy with something else, through the ane-speech Swift runtime with no Python, PyTorch, vLLM, or cloud API at inference time.
Any modifications made to the original model in this Derivative Work are not endorsed, warranted, or guaranteed by the original right-holder of the original model, and the original right-holder disclaims all liability related to this Derivative Work.
Model Details
- Upstream developer: NetEase Youdao (
netease-youdao/Confucius4-R2T2) - Core AI conversion and runtime: App Automaton
- Architecture: Qwen3-ASR graph (audio encoder + 1.7B text decoder)
- Conversion: from the MLX bf16 build, by tracing the
mlx-speechMLX graph and rebuilding it with Core AI; no PyTorch involved - Precision: fp16 weights and activations. Activation ranges were measured before conversion and stay well inside fp16.
- Placement: every layer runs on the Neural Engine
- Parity: streaming output matches
mlx-speechwindow by window on our test clips - Input: 16 kHz mono audio, up to about a minute per take
- Languages: 30, as declared by upstream
- Requirements: a Mac with Apple silicon and macOS 27 or later
Files
| Path | Contents |
|---|---|
audio_encoder/ |
the audio encoder, identical to the one in Qwen3-ASR-1.7B, which R2T2 left unchanged |
confucius4_r2t2/ |
the text decoder in four segments and an output head; runtime/ holds the embedding table, tokenizer, and audio front-end constants |
How to Get Started
Install ane-speech; the model downloads from this repo on first use.
uv tool install ane-speech
ane-speech stream speech.wav --chunk-ms 480 # as if spoken live, printing text as it settles
ane-speech transcribe speech.wav # the whole recording at once
From Python (pip install ane-speech), feed microphone audio as it arrives:
import ane_speech
live = ane_speech.load("confucius4_r2t2")
session = live.stream_session(chunk_ms=480)
for pcm in microphone: # float32, 16 kHz mono, any length
update = session.feed(pcm)
print(update.committed) # append-only committed text
print(session.finalize().text)
The first load compiles the model for your Mac's Neural Engine and caches the result, so later loads take a fraction of a second. ane-speech pull confucius4_r2t2 downloads ahead of time.
Streaming
ane-speech implements NetEase's chunk loop as mlx-speech does: prefix rollback, a per-window token budget, and append-only commits. Each window reuses the closed audio-encoder blocks and the decoder's cached prefix, and recomputes only what changed.
Notes
- One take holds up to about a minute of speech; start a new take for longer dictation.
- This repo contains Core AI models only, with no PyTorch or safetensors checkpoint.
Links
- Source code:
appautomaton/ane-speech - MLX build:
appautomaton/confucius4-r2t2-bf16-mlx - Offline model:
appautomaton/qwen3-asr-1.7b-fp16-ane - More from App Automaton: Project ยท GitHub ยท Hugging Face
License
The model weights are licensed under the NetEase Youdao Model Use License Agreement; a copy is included in this repository as LICENSE (original: MODEL_LICENSE). By using these weights you agree to its terms, including the restrictions on large-scale commercial use (section 2.2) and prohibited high-risk use (section 4.2). Downstream redistribution must retain the license and this notice.
The ane-speech runtime is licensed separately under MIT.
- Downloads last month
- 41