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
8ca7a71d
Unverified
Commit
8ca7a71d
authored
Mar 07, 2025
by
Ilya Lavrenov
Committed by
GitHub
Mar 06, 2025
Browse files
OpenVINO: added CPU-like conditions (#14338)
Signed-off-by:
Ilya Lavrenov
<
ilya.lavrenov@intel.com
>
parent
63137cd9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
tests/conftest.py
tests/conftest.py
+2
-1
tests/utils.py
tests/utils.py
+1
-1
No files found.
tests/conftest.py
View file @
8ca7a71d
...
...
@@ -257,7 +257,8 @@ class HfRunner:
return
x
if
device
is
None
:
device
=
"cpu"
if
current_platform
.
is_cpu
()
else
"cuda"
device
=
"cpu"
if
current_platform
.
is_cpu
(
)
or
current_platform
.
is_openvino
()
else
"cuda"
if
isinstance
(
x
,
dict
):
return
{
k
:
self
.
wrap_device
(
v
,
device
)
for
k
,
v
in
x
.
items
()}
...
...
tests/utils.py
View file @
8ca7a71d
...
...
@@ -698,7 +698,7 @@ def large_gpu_mark(min_gb: int) -> pytest.MarkDecorator:
without enough resources, or called when filtering tests to run directly.
"""
try
:
if
current_platform
.
is_cpu
():
if
current_platform
.
is_cpu
()
or
current_platform
.
is_openvino
()
:
memory_gb
=
0
else
:
memory_gb
=
current_platform
.
get_device_total_memory
()
/
GB_bytes
...
...
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