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
9b14d978
Unverified
Commit
9b14d978
authored
Dec 02, 2024
by
Jani Monoses
Committed by
GitHub
Dec 02, 2024
Browse files
Fix openvino on GPU (#10793)
parent
519cc6ca
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
vllm/worker/openvino_worker.py
vllm/worker/openvino_worker.py
+3
-3
No files found.
vllm/worker/openvino_worker.py
View file @
9b14d978
...
@@ -489,7 +489,7 @@ class OpenVINOWorker(LoraNotSupportedWorkerBase):
...
@@ -489,7 +489,7 @@ class OpenVINOWorker(LoraNotSupportedWorkerBase):
block_size
=
cache_config
.
block_size
block_size
=
cache_config
.
block_size
seq_num_blocks
=
(
seq_len
+
block_size
-
1
)
//
block_size
seq_num_blocks
=
(
seq_len
+
block_size
-
1
)
//
block_size
seq_data
,
dummy_multi_modal
_data
=
input_registry
\
dummy
_data
=
input_registry
\
.
dummy_data_for_profiling
(
model_config
,
.
dummy_data_for_profiling
(
model_config
,
seq_len
,
seq_len
,
mm_registry
)
mm_registry
)
...
@@ -498,11 +498,11 @@ class OpenVINOWorker(LoraNotSupportedWorkerBase):
...
@@ -498,11 +498,11 @@ class OpenVINOWorker(LoraNotSupportedWorkerBase):
seq
=
SequenceGroupMetadata
(
seq
=
SequenceGroupMetadata
(
request_id
=
str
(
group_id
),
request_id
=
str
(
group_id
),
is_prompt
=
True
,
is_prompt
=
True
,
seq_data
=
{
group_id
:
seq_data
},
seq_data
=
{
group_id
:
dummy_data
.
seq_data
},
sampling_params
=
sampling_params
,
sampling_params
=
sampling_params
,
block_tables
=
block_tables
,
block_tables
=
block_tables
,
lora_request
=
None
,
lora_request
=
None
,
multi_modal_data
=
dummy_multi_modal_data
)
multi_modal_data
=
dummy_
data
.
multi_modal_data
)
seqs
.
append
(
seq
)
seqs
.
append
(
seq
)
self
.
model_runner
.
block_size
=
tmp_cache_config
.
block_size
self
.
model_runner
.
block_size
=
tmp_cache_config
.
block_size
...
...
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