Desktop: use the GPU, Neural Engine and CPU together for face recognition #20

Merged
spark merged 1 commits from task/gpu-and-cpu-faces into main 2026-10-17 20:38:16 +01:00
Owner

Summary

  • Folder search on Apple Silicon runs AuraFace on the GPU, the Neural Engine and the CPU at the same time. The CPU cores keep decoding photos and finding faces.
  • The boxes stay on the CPU interpreter. Before a scan trusts the accelerator, two fixed faces are compared with that interpreter. On this Mac the cosine was 1.0000, so the names stay the same as the server.
  • If the accelerator is missing or too far from the interpreter, the scan stays on the CPU. Intel Macs and Linux do that. This is desktop 0.3.14.

Test plan

  • ArcFace input and cosine checks
  • Apple Silicon: accelerator embeddings match the CPU recogniser (cosine 1.0000)
  • Install desktop 0.3.14 and search a folder
## Summary - Folder search on Apple Silicon runs AuraFace on the GPU, the Neural Engine and the CPU at the same time. The CPU cores keep decoding photos and finding faces. - The boxes stay on the CPU interpreter. Before a scan trusts the accelerator, two fixed faces are compared with that interpreter. On this Mac the cosine was 1.0000, so the names stay the same as the server. - If the accelerator is missing or too far from the interpreter, the scan stays on the CPU. Intel Macs and Linux do that. This is desktop 0.3.14. ## Test plan - [x] ArcFace input and cosine checks - [x] Apple Silicon: accelerator embeddings match the CPU recogniser (cosine 1.0000) - [ ] Install desktop 0.3.14 and search a folder
spark added 1 commit 2026-10-17 20:37:52 +01:00
Desktop: use the GPU, Neural Engine and CPU together for face recognition.
ci / rust (pull_request) Failing after 38s
ci / typescript (pull_request) Failing after 7m37s
d17b62d103
The boxes stay on the CPU interpreter. The recogniser uses every accelerator when a startup check still matches that interpreter, so the names stay the same.
spark merged commit 7aac72e0ea into main 2026-10-17 20:38:16 +01:00
Author
Owner

Shipped in desktop 0.3.14 (7aac72e).

On Apple Silicon the folder search uses the GPU, the Neural Engine and the CPU together for AuraFace. Photo decode and the face boxes stay on the CPU interpreter, and extra CPU copies stop while the accelerator queue is full.

Before a scan trusts the accelerator, two fixed faces are compared with the CPU recogniser. On this Mac the cosine was 1.0000 (the gate is 0.995; the name threshold is 0.40). If the accelerator is missing or farther than that, the scan stays on the CPU. Intel Macs and Linux stay on the CPU.

The web line updates by itself. The native app needs the desktop-v0.3.14 installer. The first folder scan compiles the accelerator once. I did not click through the installed app; the recogniser was checked against the CPU engine on this machine.

Shipped in desktop 0.3.14 (`7aac72e`). On Apple Silicon the folder search uses the GPU, the Neural Engine and the CPU together for AuraFace. Photo decode and the face boxes stay on the CPU interpreter, and extra CPU copies stop while the accelerator queue is full. Before a scan trusts the accelerator, two fixed faces are compared with the CPU recogniser. On this Mac the cosine was 1.0000 (the gate is 0.995; the name threshold is 0.40). If the accelerator is missing or farther than that, the scan stays on the CPU. Intel Macs and Linux stay on the CPU. The web line updates by itself. The native app needs the desktop-v0.3.14 installer. The first folder scan compiles the accelerator once. I did not click through the installed app; the recogniser was checked against the CPU engine on this machine.
Sign in to join this conversation.