←back to thread

Using uv with PyTorch

(docs.astral.sh)
167 points charliermarsh | 2 comments | | HN request time: 0.001s | source
Show context
alex_suzuki ◴[] No.42192428[source]
In a nutshell, what do I gain from switching to uv from my current workflow, which is: 1) create a venv (`python3.xx -m venv venv`) 2) install packages from a requirements.txt into that venv?

One limitation I know of are the inability to detect stale packages.

Apart from „blazing fast“, which I‘m not convinced it really matters to me as I rarely touch the dependencies, what are the main reasons why uv is gaining traction?

replies(4): >>42192436 #>>42192507 #>>42192711 #>>42198294 #
alex_suzuki ◴[] No.42192436[source]
PS: one thing I like about my current workflow is no extra tools needed, base python install is all that‘s required.
replies(1): >>42193311 #
1. JimDabell ◴[] No.42193311[source]
It’s similar with uv. You have exactly one dependency on the host system – it’s just uv instead of Python. uv will then obtain the correct version of Python for your project. And uv is easier to install than Python – it’s literally just one binary.
replies(1): >>42196535 #
2. alex_suzuki ◴[] No.42196535[source]
Interesting, thanks for pointing that out. Will give it a try.