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
03d145db
Commit
03d145db
authored
Dec 04, 2024
by
zhuwenwen
Browse files
update tensorized_path
parent
9ddee6b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tests/tensorizer_loader/test_tensorizer.py
tests/tensorizer_loader/test_tensorizer.py
+2
-2
No files found.
tests/tensorizer_loader/test_tensorizer.py
View file @
03d145db
...
@@ -88,7 +88,7 @@ def test_load_with_tensorizer(mock_agent, tensorizer_config):
...
@@ -88,7 +88,7 @@ def test_load_with_tensorizer(mock_agent, tensorizer_config):
@
pytest
.
mark
.
skipif
(
not
is_curl_installed
(),
reason
=
"cURL is not installed"
)
@
pytest
.
mark
.
skipif
(
not
is_curl_installed
(),
reason
=
"cURL is not installed"
)
def
test_can_deserialize_s3
(
vllm_runner
):
def
test_can_deserialize_s3
(
vllm_runner
):
model_ref
=
os
.
path
.
join
(
models_path_prefix
,
"EleutherAI/pythia-1.4b"
)
model_ref
=
os
.
path
.
join
(
models_path_prefix
,
"EleutherAI/pythia-1.4b"
)
tensorized_path
=
f
"
s3://tensorized/
{
model_ref
}
/fp16/model.tensors"
tensorized_path
=
f
"
{
model_ref
}
/fp16/model.tensors"
with
vllm_runner
(
model_ref
,
with
vllm_runner
(
model_ref
,
load_format
=
"tensorizer"
,
load_format
=
"tensorizer"
,
...
@@ -341,7 +341,7 @@ def test_raise_value_error_on_invalid_load_format(vllm_runner):
...
@@ -341,7 +341,7 @@ def test_raise_value_error_on_invalid_load_format(vllm_runner):
def
test_tensorizer_with_tp_path_without_template
(
vllm_runner
):
def
test_tensorizer_with_tp_path_without_template
(
vllm_runner
):
with
pytest
.
raises
(
ValueError
):
with
pytest
.
raises
(
ValueError
):
model_ref
=
os
.
path
.
join
(
models_path_prefix
,
"EleutherAI/pythia-1.4b"
)
model_ref
=
os
.
path
.
join
(
models_path_prefix
,
"EleutherAI/pythia-1.4b"
)
tensorized_path
=
f
"
s3://tensorized/
{
model_ref
}
/fp16/model.tensors"
tensorized_path
=
f
"
{
model_ref
}
/fp16/model.tensors"
vllm_runner
(
vllm_runner
(
model_ref
,
model_ref
,
...
...
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