Mallard 2B for MLX
The Apple silicon edition that Duckwork runs for Assist. Its English text replies can go straight to Duckwork’s voice model for playback.
In the app
- 2.3 s
- Median to first text · M4 Air
- 1.2 GB
- 6-bit model download
- 2.5 GB
- Peak memory in the speed test
How long is the wait?
On the same M4 MacBook Air, the 6-bit Mallard build finished a typical answer in 3.0 seconds. The 4-bit Qwen3.5-2B baseline took 3.7 seconds.
Qwen wrote more tokens per second. Mallard read the prompt faster and usually had less to say. Its median reply was 40 tokens, compared with 90 for Qwen.
Median seconds across 72 prompts. Shorter bars mean less waiting.
First generated word
Complete answer
Timing and memory on an M4 Air
| M4 MacBook Air | Mallard 2B · MLX 6-bit | Qwen3.5-2B · MLX 4-bit |
|---|---|---|
| First word · median | 2.3 s | 2.6 s |
| First word · 90th percentile | 3.1 s | 3.1 s |
| Complete answer · median | 3.0 s | 3.7 s |
| Complete answer · 90th percentile | 4.5 s | 5.7 s |
| Prompt processing | 726 tokens/s | 632 tokens/s |
| Text generation | 65 tokens/s | 81 tokens/s |
| Median answer length | 40 tokens | 90 tokens |
| Peak memory | 2.5 GB | 2.3 GB |
| Model load | 0.6 s | 1.3 s |
| Task checks passed in this run | 63 / 72 | 26 / 72 |
Test conditions
Both models ran with mlx-lm on a 10-core M4 MacBook Air with 24 GB of memory. Each of the 72 prompts ran separately with greedy decoding and thinking turned off.
Prompts included Duckwork instructions and tool definitions. They ranged from 255 to 2,472 tokens, typically 1,561.
Timings cover model text generation. They exclude microphone capture, transcription, external tool execution and voice playback.
Why Duckwork uses six bits
In the larger evaluation, Mallard passed 294 of 324 tasks at 6 bits. The experimental 4-bit build passed 259 and called tools roughly half as often. The BF16 weights passed 297.
Run the Mac build
Duckwork downloads the Apache 2.0 weights when you set up Assist. They use 6-bit quantization with a group size of 64. To try the same weights outside the app, install mlx-lm on an Apple silicon Mac and pass it a short prompt.
pip install mlx-lm
mlx_lm.generate --model duckwork-ai/mallard-2b-mlx-6bit --prompt "How should I test this parser?"