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

[Hardware][Neuron] Refactor neuron support #3471

Merged
merged 23 commits into from
Mar 22, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix
  • Loading branch information
zhuohan123 committed Mar 20, 2024
commit 364d6203c9926654bb206aa05cf17ede8a33dc4c
3 changes: 2 additions & 1 deletion examples/offline_inference_neuron.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
# The device can be automatically detected when AWS Neuron SDK is installed.
# The device argument can be either unspecified for automated detection,
# or explicitly assigned.
device="neuron")
device="neuron",
tensor_parallel_size=2)
# Generate texts from the prompts. The output is a list of RequestOutput objects
# that contain the prompt, generated text, and other information.
outputs = llm.generate(prompts, sampling_params)
Expand Down
2 changes: 1 addition & 1 deletion vllm/model_executor/neuron_model_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"LlamaForCausalLM": ("transformers_neuronx.llama.model",
"LlamaForSampling", "LlamaForCausalLM"),
"MistralForCausalLM": ("transformers_neuronx.mistral.model",
"LlamaForSampling", "MistralForCausalLM")
"MistralForSampling", "MistralForCausalLM")
}


Expand Down