Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
Proget Python connector to PyTorch Cuda Index
-
Hello,
PyTorch is using some specific index for CUDA-enabled versions of PyTorch. This is detailed here: https://pytorch.org/get-started/locally/
I'm trying to access the index https://download.pytorch.org/whl/cu118
Using it directly in pip for installing the package works just fine. Adding this index as a PyPi conenctor to ProGet does not work at all. The health check for a connector to this index always returns the following in the health check:Connector PyTorch-cuda118 health check reported error: The remote server returned an error: (403) Forbidden.
I setup the connector the following way:
- Type: PyPI
- Name: PyTorch-cuda118
- Url: https://download.pytorch.org/whl/cu118
- Timeout: 10sec
- Authentication: anonymous
- Advanced option: Allow searching and listing in the PyPi repository
Metadata caching, as well as package filters are disabled.
Am I doing anything specifically wrong?
Best regards,
Martin
-
Hi @m-karing_2439 ,
Unfortunately, this repository doesn't following PyPI repository conventions.
For example:
- No way to see latest packages (should be https://download.pytorch.org/whl/cu118/rss/updates.xml)
- Does not return anything for
/simple
listing (e.g. https://download.pytorch.org/whl/cu118/simple) - Does not support JSON-based API to retrieve package metatadata
I guess it "happens to work" in pip , or perhaps they install a plugin that allows it to work... but ProGet is designed around PyPi repository specs. which is why a non-confirming download site won't work very well.
I'll add a note to investigate this further, but for the time being you should just download the wheels and upload them to a feed in ProGet.Cheers,
Alana
-
-
Good news @m-karing_2439 ,
This works in ProGet 2024! More specifically, when rewriting/refactoring the PyPi feed, we added support for this "unconventional" repository - specifically, one that doesn't follow the
/simple
convention or use any of the JSON/warehouse api.Cheers,
Alana