Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uv add flash-attn --no-build-isolation fails #6402

Closed
vwxyzjn opened this issue Aug 22, 2024 · 3 comments
Closed

uv add flash-attn --no-build-isolation fails #6402

vwxyzjn opened this issue Aug 22, 2024 · 3 comments

Comments

@vwxyzjn
Copy link

vwxyzjn commented Aug 22, 2024

See the command below. This is on ubuntu. uv --version is 0.3.1

➜  uvtest uv init
Initialized project `uvtest`
➜  uvtest uv add torch
Using Python 3.12.5
Creating virtualenv at: .venv
Resolved 24 packages in 17ms
   Built uvtest @ file:///home/costa/Documents/go/github.com/vwxyzjn/uvtest
Prepared 24 packages in 235ms
Installed 24 packages in 243ms
 + filelock==3.15.4
 + fsspec==2024.6.1
 + jinja2==3.1.4
 + markupsafe==2.1.5
 + mpmath==1.3.0
 + networkx==3.3
 + nvidia-cublas-cu12==12.1.3.1
 + nvidia-cuda-cupti-cu12==12.1.105
 + nvidia-cuda-nvrtc-cu12==12.1.105
 + nvidia-cuda-runtime-cu12==12.1.105
 + nvidia-cudnn-cu12==9.1.0.70
 + nvidia-cufft-cu12==11.0.2.54
 + nvidia-curand-cu12==10.3.2.106
 + nvidia-cusolver-cu12==11.4.5.107
 + nvidia-cusparse-cu12==12.1.0.106
 + nvidia-nccl-cu12==2.20.5
 + nvidia-nvjitlink-cu12==12.6.20
 + nvidia-nvtx-cu12==12.1.105
 + setuptools==73.0.1
 + sympy==1.13.2
 + torch==2.4.0
 + triton==3.0.0
 + typing-extensions==4.12.2
 + uvtest==0.1.0 (from file:///home/costa/Documents/go/github.com/vwxyzjn/uvtest)
➜  uvtest uv add flash-attn --no-build-isolation
Resolved 26 packages in 17ms
error: Failed to prepare distributions
  Caused by: Failed to fetch wheel: uvtest @ file:///home/costa/Documents/go/github.com/vwxyzjn/uvtest
  Caused by: Build backend failed to build wheel through `build_editable()` with exit status: 1
--- stdout:

--- stderr:
Traceback (most recent call last):
  File "<string>", line 8, in <module>
ModuleNotFoundError: No module named 'hatchling'
@vwxyzjn
Copy link
Author

vwxyzjn commented Aug 22, 2024

Nvm, after running uv add hatching editables, I could then run uv add flash-attn --no-build-isolation. Thanks for the awesome project!

@vwxyzjn vwxyzjn closed this as completed Aug 22, 2024
@charliermarsh
Copy link
Member

Thanks for following up, was just taking a look!

@foges
Copy link

foges commented Nov 17, 2024

Note it should be uv add hatchling not uv add hatching if you're copy-pasting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants