Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
6a417b86
Unverified
Commit
6a417b86
authored
Feb 20, 2025
by
ajayvohra2005
Committed by
GitHub
Feb 20, 2025
Browse files
fix neuron performance issue (#13589)
parent
d3ea5011
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vllm/worker/neuron_worker.py
vllm/worker/neuron_worker.py
+2
-2
No files found.
vllm/worker/neuron_worker.py
View file @
6a417b86
...
...
@@ -76,7 +76,7 @@ class NeuronWorker(LoraNotSupportedWorkerBase, LocalOrDistributedWorkerBase):
# Set the number of GPU blocks to be the same as the maximum number of
# sequences that can be processed in a single batch. This is equivalent
# to schedule without PagedAttention.
num_gpu_blocks
=
self
.
scheduler_config
.
max_num_seqs
num_gpu_blocks
=
self
.
scheduler_config
.
max_num_seqs
+
1
# Swap not yet supported with Neuron backend.
num_cpu_blocks
=
0
...
...
@@ -90,7 +90,7 @@ class NeuronWorker(LoraNotSupportedWorkerBase, LocalOrDistributedWorkerBase):
# Different values are not tested.
assert
num_cpu_blocks
==
0
assert
num_gpu_blocks
==
self
.
scheduler_config
.
max_num_seqs
assert
num_gpu_blocks
==
self
.
scheduler_config
.
max_num_seqs
+
1
self
.
cache_config
.
num_gpu_blocks
=
num_gpu_blocks
self
.
cache_config
.
num_cpu_blocks
=
num_cpu_blocks
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment