Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    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

    Scheduled Pinned Locked Moved Support
    progetpythonconnectorspypi
    4 Posts 2 Posters 11 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      m.karing_2439
      last edited by

      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

      atrippA 1 Reply Last reply Reply Quote 0
      • atrippA Offline
        atripp inedo-engineer @m.karing_2439
        last edited by

        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

        M 1 Reply Last reply Reply Quote 1
        • M Offline
          m.karing_2439 @atripp
          last edited by

          Hello @atripp,

          well that is a bummer. Thank you for looking into it anyway.

          Best regards,
          Martin

          atrippA 1 Reply Last reply Reply Quote 0
          • atrippA Offline
            atripp inedo-engineer @m.karing_2439
            last edited by

            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

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • 1 / 1
            • First post
              Last post
            Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation