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

[Neuron] Add an option to build with neuron #2065

Merged
merged 9 commits into from
Jan 18, 2024

Conversation

liangfu
Copy link
Contributor

@liangfu liangfu commented Dec 12, 2023

This PR adds an option that setup vLLM to build with Neuron toolchain (include neuronx-cc and transformers-neuronx).

This would help us build

vllm-0.2.7+neuron212

, where the neuron version comes out of the compiler version (neuronx-cc 2.12).

This is part of the effort to add support to accelerate LLM inference with Trainium/Inferentia (see #1866) .

Copy link
Collaborator

@WoosukKwon WoosukKwon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @liangfu, apologies for the late review and thanks for the PR! I like this PR in that you didn't submit a big PR at once but instead split it into small parts. :)

Overall, I think moving the import statements is not a good idea. Considering the architecture you showed last time, I think we can just skip loading the modules that try to import custom ops. WDYT?

requirements-neuron.txt Outdated Show resolved Hide resolved
requirements-neuron.txt Outdated Show resolved Hide resolved
setup.py Outdated Show resolved Hide resolved
vllm/model_executor/layers/activation.py Outdated Show resolved Hide resolved
setup.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@WoosukKwon WoosukKwon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@liangfu Apologies for the late review and thanks for addressing my comments! Left some very minor comments on styles. Looking forward to the next PRs!

setup.py Outdated Show resolved Hide resolved
vllm/utils.py Show resolved Hide resolved
liangfu and others added 2 commits January 17, 2024 09:59
Co-authored-by: Woosuk Kwon <woosuk.kwon@berkeley.edu>
@WoosukKwon WoosukKwon merged commit 18473cf into vllm-project:main Jan 18, 2024
14 checks passed
hongxiayang pushed a commit to hongxiayang/vllm that referenced this pull request Jan 18, 2024
hongxiayang pushed a commit to hongxiayang/vllm that referenced this pull request Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants