-
Notifications
You must be signed in to change notification settings - Fork 891
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
[perf] differences in pip vs uv when installing package from src #3802
Comments
Hard for me to test this because it requires CUDA it seems? |
But |
It seems like pip isn't performing a build? Do their verbose logs have more information? |
I think pip actually doesn't use PEP 517 when doing editables, or something like that. |
Unfortunately this package requires cuda, although the issue related to the install time does not seem related from what I can tell
I did not include the whole logs as on first install most of the time is spent building cpp extensions via cmake. The cmake build is done incrementally, so it doesn't affect the tests above which is when I noticed this significant time difference just comparing uv and pip install. The uv pip install just hangs on this line for a while, after which the install seems just as fast as regular pip.
It's possible there may be something else going on under the hood, as cmake logs are not exposed via uv pip install (#1567). But for regular pip, I can get the logs and it seems relatively fast, so unsure what the issue is (10-15 seconds vs 1-2 minutes) |
Is there a particular setup you have? Can you try on a fully clean environment, e.g. docker image? |
This is while trying to build a docker image |
Which docker image base were you using? |
Nvidia pytorch image https://catalog.ngc.nvidia.com/orgs/nvidia/containers/pytorch Using 24.04-py3 |
Thanks, I was attempting it earlier in a |
This is after uninstalling transformer_engine n in the base image, and then installing it from src |
Would like some help or pointers with identifying the reason for the performance different between pip and uv pip install for a package (https://github.com/NVIDIA/TransformerEngine)
Reproduce steps:
With regular pip:
With uv pip:
With --verbose enabled, the command seems to get stuck at
Calling setuptools.build_meta:__legacy__.build_editable
for a long while:The text was updated successfully, but these errors were encountered: