Unverified Commit fcc0a313 authored by pwschuurman's avatar pwschuurman Committed by GitHub
Browse files

[CI] Fix tensorizer test assertion (#24545)


Signed-off-by: default avatarPeter Schuurman <psch@google.com>
parent 736569da
...@@ -161,11 +161,11 @@ def test_load_without_tensorizer_load_format(vllm_runner, capfd, model_ref): ...@@ -161,11 +161,11 @@ def test_load_without_tensorizer_load_format(vllm_runner, capfd, model_ref):
model = vllm_runner( model = vllm_runner(
model_ref, model_ref,
model_loader_extra_config=TensorizerConfig(tensorizer_uri="test")) model_loader_extra_config=TensorizerConfig(tensorizer_uri="test"))
pytest.fail("Expected RuntimeError for extra config keys")
except RuntimeError: except RuntimeError:
out, err = capfd.readouterr() out, err = capfd.readouterr()
combined_output = out + err combined_output = out + err
assert ("ValueError: Model loader extra config " assert ("ValueError: Unexpected extra config keys for load "
"is not supported for load "
"format auto") in combined_output "format auto") in combined_output
finally: finally:
del model del model
...@@ -181,11 +181,12 @@ def test_raise_value_error_on_invalid_load_format(vllm_runner, capfd, ...@@ -181,11 +181,12 @@ def test_raise_value_error_on_invalid_load_format(vllm_runner, capfd,
model_ref, model_ref,
load_format="safetensors", load_format="safetensors",
model_loader_extra_config=TensorizerConfig(tensorizer_uri="test")) model_loader_extra_config=TensorizerConfig(tensorizer_uri="test"))
pytest.fail("Expected RuntimeError for extra config keys")
except RuntimeError: except RuntimeError:
out, err = capfd.readouterr() out, err = capfd.readouterr()
combined_output = out + err combined_output = out + err
assert ("ValueError: Model loader extra config is not supported " assert ("ValueError: Unexpected extra config keys "
"for load format safetensors") in combined_output "for load format safetensors") in combined_output
finally: finally:
del model del model
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment