Add support for Apple Silicon Metal #156
|
Are there any plans for Metal support on Apple Silicon (M1…4) |
Answered by
samuel100
Jun 10, 2025
Replies: 3 comments 3 replies
|
Thanks for raising an issue Shawn Cicoria (@cicorias) ! I'll move this to a discussion (under feature requests). What is your motivation for wanting Metal support - performance? If so, what level of performance over WebGpu? |
0 replies
|
Yes, inference performance is the desire. Ideally for Apple Silicon it uses the GPU -- since I can't see the source code for the foundry service For example, in Candle it's clear that Metal (GPU) is used. Would the best place to look is in the ONNX Runtime Repo? |
2 replies
|
WebGPU EP uses a library called Dawn that converts from the WebGPU shader language to Metal. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On Apple Silicon we leverage the GPU (not cpu) via the ONNX Runtime
WebGpuExecutionProvider. When you run the model you should see that it is pullingmodel-generic-gpu- what this means is that the ONNX graph has been optimized for any GPU. For some additional providers likeCudaExecutionProviderthe ONNX graph has some additional optimizations for CUDA that can be leveraged in the ONNX Runtime.The WebGPU Execution Provider uses a library called Dawn that converts from the WebGPU shader language to Metal. Therefore, to directly answer the question.... "Foundry Local already supports Metal".