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

[RFC]: Is huggingface-cli[hf_xet] needed for vllm build? #16012

Open
1 task done
Shafi-Hussain opened this issue Apr 3, 2025 · 9 comments
Open
1 task done

[RFC]: Is huggingface-cli[hf_xet] needed for vllm build? #16012

Shafi-Hussain opened this issue Apr 3, 2025 · 9 comments
Labels

Comments

@Shafi-Hussain
Copy link
Contributor

Motivation.

Recently huggingface-cli[hf_xet] was added in requirements/common.txt and requirements/test.in.

Is it needed in requirements/common.txt ?
If not, can it be moved to rocm build/test requirements?

Ref: 15969

Proposed Change.

Moving huggingface-cli[hf_xet] from requirements/common.txt to requirements/rocm.txt or requirements/rocm-test.txt

Feedback Period.

No response

CC List.

@hmellor

Any Other Things.

No response

Before submitting a new issue...

  • Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.
@hmellor
Copy link
Member

hmellor commented Apr 3, 2025

huggingface-cli[hf_xet] is not device specific and has no particular affinity to ROCm.

Xet allows vLLM to download models which use Xet storage from the Hugging Face Hub faster.

@hmellor hmellor closed this as completed Apr 3, 2025
@Shafi-Hussain
Copy link
Contributor Author

@hmellor Yes, but it's not a build-time requirement vllm. The only reason I suggested rocm, was because it was mentioned to resolve installation issues of ROCm.

Adding it as a build time dependency in common.txt breaks builds for ppc64le.
It should ideally be a test dependency, needed only at runtime.

@hmellor hmellor reopened this Apr 3, 2025
@hmellor
Copy link
Member

hmellor commented Apr 3, 2025

Ok, thank you for clarifying.

vLLM does not currently differentiate between build time and runtime dependencies. The same requirements are used for both.

We could add a condition in common.txt to ensure that the Xet version is not installed if the platform is ppc64le?

@Nash-123
Copy link

Nash-123 commented Apr 3, 2025

@hmellor We're experiencing the same issue on IBM Z (s390x) as well. Adding s390x to that platform condition alongside ppc64le would solve our build problem as well.

18.26 💥 maturin failed 18.26 Caused by: Failed to normalize python source path python18.26 Caused by: No such file or directory (os error 2) 18.26 Error: command ['maturin', 'pep517', 'build-wheel', '-i', 18.26 '/root/.cache/uv/builds-v0/.tmp0aHjDE/bin/python', '--compatibility', 18.26 'off'] returned non-zero exit status 1 18.26 18.26 hint: This usually indicates a problem with the package or the build 18.26 environment. 18.26 help:hf-xet(v1.0.0) was included becausehuggingface-hub[hf-xet]18.26 (v0.30.1) depends onhf-xet18.26 DEBUG Released lock at/opt/vllm/.lockDockerfile.s390x:118

@Shafi-Hussain
Copy link
Contributor Author

@hmellor thanks for the confirmation. We wanted to understand if it was indeed needed to build vllm. We are having discussions on building hf-xet from source for ppc64le. We can keep the commons.txt as it is for now.

@Nash-123 we are having discussions for building on power

@hmellor
Copy link
Member

hmellor commented Apr 4, 2025

I can confirm that it's not needed for building vLLM, it is just to improve model checkpoint download speeds at runtime.

@Akashcodes732
Copy link
Contributor

Hi @Shafi-Hussain, I am facing the same issue and the build is breaking for ppc64le. Were you able to figure out any workaround, otherwise I was planning on adding some conditional check in case of ppc64le.

@Shafi-Hussain
Copy link
Contributor Author

Raised a PR where hf-xet is built from source: #16048

@Nash-123
Copy link

Nash-123 commented Apr 9, 2025

@hmellor thanks for the confirmation. We wanted to understand if it was indeed needed to build vllm. We are having discussions on building hf-xet from source for ppc64le. We can keep the commons.txt as it is for now.

@Nash-123 we are having discussions for building on power

Thanks for the update @Shafi-Hussain !
For s390x (IBM Z), we’ve also followed the same approach to built hf-xet from source.

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

No branches or pull requests

4 participants