Open JeffreyWardman opened 8 months ago
duplicate #7935
torch is particularly bad for this because they do not provide file hashes at the repository, so poetry feels the need to download all files itself to calculate those hashes.
https://github.com/pytorch/pytorch/issues/76557#issuecomment-1750463659 says this was fixed some time ago: but it does not seem to be the case at their nightly repository. Your fastest route to seeing improvement is likely to follow up with the torch folk to get that to happen
Thanks for linking the preexisting issue. I missed it; my apologies. Surely there's a simple way to add a filter=* argument that will skip attempting to download files that don't contain that regex.
if you have a simple fix, please submit a merge request...
The below will search the source for all wheels that match the version rather than restricting to the required platform and python version.
E.g. it also downloads:
https://download.pytorch.org/whl/nightly/cu121/torch-2.2.0.dev20231213%2Bcu121-cp312-cp312-win_amd64.whl
Note the
cp312
andwin_amd64
.