princeton-nlp / SWE-bench

[ICLR 2024] SWE-Bench: Can Language Models Resolve Real-world Github Issues?
https://www.swebench.com
MIT License
1.45k stars 240 forks source link

Using `uv pip` instead of `pip` for significant speedup #120

Open klieret opened 1 month ago

klieret commented 1 month ago

We spend a lot of time installing packages. uv pip (https://pypi.org/project/uv/) brings down installation time to almost 0s. It should be almost 100% a drop-in replacement for pip (the only limitation I know is that it might protest if requirements include a release candidate version (like 2.3.0rc1)).

As suggested by @henryiii

klieret commented 1 month ago

For example, installing swe-agent (with relatively few dependencies) is down to 1s (from 40s)