Better HN
topnewbestaskshowjobs
Log inSign up

anemll

309 karma · joined Feb 12, 2025 (1y ago) · 27 submissions

ANEMLL (pronounced like "animal") Artificial Neural Engine Machine Learning Library, Open Source Project

www.anemll.com https://github.com/anemll https://huggingface.co/anemll https://github.com/anemll

Submissions

comment 1mo ago · link · parent

It's warm but not hot. On M6 it's about 50% less energy consumption in my tests vs GPU. I think iPhone should be similar

2.

Qwen3.8-27B on the iPhone 18 Neural Engine at 15–70 tok/s (1.5 bpw)(twitter.com ↗)

30 points · by anemll · 1mo ago · 12 comments

comment 2mo ago · link · parent

Not all systems affected M1 and M5MAX are OK

https://x.com/anemll/status/2098454204478366132?s=20

comment 7mo ago · link · parent

Check it out, you might be able to speed it up using this https://github.com/Anemll/anemll-flash-mlx https://x.com/anemll/status/2038684375425200360

comment 8mo ago · link · parent

17B includes 10 expert plus one shared. So actual size of the expert is much smaller

comment 8mo ago · link · parent

Check my repo, I had added some support for GUFF/untloth, Q3,Q5/Q8 https://github.com/Anemll/flash-moe/blob/iOS-App/docs/gguf-h...

comment 8mo ago · link · parent

Thanks for posting this, that's how I first found out about Dan's experiment! SSD speed doubled in the M5P/M generation, that makes it usable! I think one paper under the radar is "KV Prediction for Improved Time to First Token" https://arxiv.org/abs/2410.08391 which hopefully can help with prefill for Flash streaming.

comment 8mo ago · link · parent

SSD streaming to compute units is new. M4 max can do 15 t/s with its 15GB/s drives

comment 8mo ago · link · parent

Yes, SSD speed is critical though. The repo has macOS builds for CLI and Desktop. It's early stages though. M4 Max gets 10-15 TPS on 400B depending on quantization. Compute is an issue too; a lot of code is PoC level.

comment 8mo ago · link · parent

multiple NAND, and apple already used it in Mac Studio. Plus better cooling

comment 8mo ago · link · parent

both, tbh

comment 8mo ago · link · parent

Probably 2x speed for Mac Studio this year if they do double NAND ( or quad?)

13.

iPhone 17 Pro Demonstrated Running a 400B LLM(twitter.com ↗)

713 points · by anemll · 8mo ago · 326 comments

comment 11mo ago · link · parent

Tensor Parallel test with RDMA last week https://x.com/anemll/status/1996349871260107102

Note fast sync workaround

comment 12mo ago · link · parent

In macOS 26.2 (Tahoe) beta, Apple introduced a low-latency Thunderbolt 5 RDMA driver, enabling up to 80 Gb/s bidirectional bandwidth for Mac clustering—ideal for distributed ML on Apple Silicon. It's optimized for low latency, delivering ~14 Gbps throughput at 4K MTU. My tests (M4 Pro to M3 Ultra): Stock ibv_uc_pingpong achieved ~14 µs round-trip for 4K packets (requires GID index setup). Custom C++ variant hit 6-13 µs/iter: https://x.com/anemll/status/1993192776897642942 Code and details: https://github.com/Anemll/mlx-rdma/blob/anemll-rdma/ibv_roun... https://github.com/Anemll/mlx-rdma/blob/anemll-rdma/ibv_roun... (includes steps to enable RDMA in macOS Recovery OS terminal) Theoretically, this accelerates pipeline parallelism (faster layer handoffs) and tensor parallelism (low-overhead sharding) on GPUs, with potential extensions to ANE for real-time AI workflows.

16.

RDMA over Thunderbolt 5 on Apple Silicon – 14µs latency(twitter.com ↗)

6 points · by anemll · 12mo ago · 1 comment

comment 1y ago · link · parent

It’s also supported in Apple Neural Engine https://github.com/Anemll/Anemll

18.

Anemll adds Qwen3 support for Apple neural engine(twitter.com ↗)

4 points · by anemll · 1y ago · discuss

comment 1y ago · link · parent

We can ran 2000 or 4000 context with ANE

comment 1y ago · link · parent

M4 max should work at 120GB for ANE and 500+ for GPU. So GPU will be 3-4 times faster for anything over 1-3B. ANE is likely as fast for prefill due to higher FLOPs

comment 1y ago · link · parent

Right.I was thinking about it, you still need batch refill, however, Apple Core ML tools were failing for attention activations quantization. Long context, pre-fill is still compute bound.

comment 1y ago · link · parent

Yes for GPU, however ANE only supports FP16 plus integers. M4/A17 added accelerated int8 that is twice faster than FP16

comment 1y ago · link · parent

Memory bandwidth is the main bottleneck. It got better with M3/M4. ANE is really fast in FLOPS but low in memory bandwidth.

comment 1y ago · link · parent

What hardware are you on? Most models are memory bandwidth limited. ANE was limited to 64GB/s prior to M3 Max or M4 pro. If you are on M1, GPU will be significantly faster for 3-8B models due to memory bandwidth rather then ANE capabilities.