Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Utilising ANE (Apple Neural Engine) for inference #93

Open
dj-nuo opened this issue Jul 24, 2024 · 3 comments
Open

Utilising ANE (Apple Neural Engine) for inference #93

dj-nuo opened this issue Jul 24, 2024 · 3 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@dj-nuo
Copy link

dj-nuo commented Jul 24, 2024

Hi! I know that PyTorch can use MPS to accelerate inference on Apple computers, but ONNX provides ability to use ANE (Apple Neural Engine) as well.
Have you tried converting BS-Roformer or Demucs to ONNX or CoreML?

My previous attempts to do so were unsuccessful(

@beveradb
Copy link
Collaborator

Hey, thanks for the heads up! That's pretty cool - I haven't tried it, but if you could get the models which already use ONNX (eg. UVR_MDXNET_KARA_2.onnx, UVR-MDX-NET-Inst_HQ_3.onnx, UVR-MDX-NET-Inst_HQ_4.onnx) to work with ANE that would probably be easier than converting the model architecture of one of the others.

However, I'm not sure I really understand the goal - at least on my personal Macbook with an M3 Max, all of the models in audio-separator which I use frequently already use my GPU resources fully!

@dj-nuo
Copy link
Author

dj-nuo commented Jul 24, 2024

The goal is to utilize ANE) GPU is powerful, but not as powerful for specific calculations as ANE)

@beveradb
Copy link
Collaborator

Gotcha; I'm afraid I don't know where to start with that (I'd imagine it needs work in PyTorch first?) - PRs very welcome though if you can figure it out! 🙏

@beveradb beveradb added enhancement New feature or request help wanted Extra attention is needed labels Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants