Skip to content

poetry sync -E cpu downloads multiple gigabytes of data #5

Description

@dhdaines

Thanks for this repository! Unfortunately it doesn't resolve the eternal, horrible, no good problem with Poetry and PyTorch, where it insists on downloading every single torch wheel ever published:

$ poetry --version
Poetry (version 2.3.4)
$ poetry sync -E  cpu
Updating dependencies
Resolving dependencies... Downloading https://download-r2.pytorch.org/whl/cpu/torch-2.11.0%2Bcpu-cp310-cp310-linux_s390x.whl ...

The solution is obviously to never use poetry for anything, ever, but sadly, it lives on in a number upstream packages including, crucially, llama.cpp. Do you know if there is any way around this issue? Poetry's insistence that it's PyTorch's fault and nothing can be done rings very, very hollow since uv (and hatch, and pdm, and pip, and ...) seems to have found a way around the problem.

But probably one should just never use poetry for anything, ever.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions