packages icon indicating copy to clipboard operation
packages copied to clipboard

[Request] python-onnxruntime

Open Jcuhfehl opened this issue 2 years ago • 6 comments

Package:

https://aur.archlinux.org/packages/python-onnxruntime

Purpose:

Used as a runtime some machine learning/llm stuff

Benefits:

No response

Building:

No response

Copyright:

MIT

Expected Interest:

Some

Already available?

No

Unique request?

Yes

Banned package?

No

More information:

No response

Jcuhfehl avatar Oct 29 '23 14:10 Jcuhfehl

It have a couple of depends on AUR (nsync, python-coloredlogs) and some optdepends too (python-py3nvml, python-onnx, python-transformers)

FabioLolix avatar Oct 29 '23 14:10 FabioLolix

some machine learning/llm stuff

What program do you need this for?

xiota avatar Oct 29 '23 15:10 xiota

@xiota Could be used for training, inference, and even quantization acceleration, as seen here in 2.2. Definitely nice to provide Python bindings. I am curious to know the final size.

Technetium1 avatar Oct 29 '23 18:10 Technetium1

@Technetium1 This falls under dependency without any dependents.

There are a lot of python modules related to AI. Don't really want to add all of them. Someone asked that all related packages be added to an AI-related modules' optdeps. Don't remember how many hundreds of packages that would have been.

AI programmers switch packages pretty rapidly. If no program is actually using this, how does anyone know that it isn't just the flavor of the week that everyone will soon abandon? (Naming one substantive program is a pretty low barrier.)

xiota avatar Oct 29 '23 18:10 xiota

@xiota It's used independently or alongside other frameworks! It's a large project that's kept momentum for ~5 years. Check out https://onnxruntime.ai to see some of the backing forces

Even if this was just a dependency, it's one that an exception can be made for on the grounds that it's difficult to build (pinned comment). Some acceleration is included in the Pypi release, but for example, some CUDA features are not supported unless it's built this way.

Unless this ends up proving to be a HUGE burden, we should try to make it available

Technetium1 avatar Oct 29 '23 20:10 Technetium1

I don't question that someone somewhere finds it useful. But if it's not worth the effort for OP to explain its use better than a generic one-liner, it's not worth the effort to try to build. The more "difficult to build" a package is, the better I expect the explanation to be.

The request template clearly asks that AUR dependencies be listed, and OP didn't do that either. There are five first-level AUR depends and three first-level optdeps. While the required dependencies don't appear to have recursive dependencies, the optdeps do, and the nature of AI modules is for a lot of important functionality to be in the optdeps.

xiota avatar Oct 29 '23 21:10 xiota