Skip to content

Commit 8eb99bd

Browse files
author
EC2 Default User
committed
Enable local tests for huggingface_vllm
1 parent b5a604b commit 8eb99bd

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

test/test_utils/sagemaker.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,9 @@ def generate_sagemaker_pytest_cmd(image, sagemaker_test_type):
274274
)
275275
if framework == "tensorflow" and job_type == "training":
276276
path = os.path.join(os.path.dirname(path), f"{framework}{framework_major_version}_training")
277-
if "huggingface" in framework and job_type == "inference":
277+
if "huggingface" in framework and "vllm" in framework:
278+
path = os.path.join("test", "sagemaker_tests", "huggingface", "vllm")
279+
elif "huggingface" in framework and job_type == "inference":
278280
path = os.path.join("test", "sagemaker_tests", "huggingface", "inference")
279281
if "trcomp" in framework:
280282
path = os.path.join(

test/testrunner.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,6 @@ def main():
559559
"habana": "Skipping SM tests because SM does not yet support Habana",
560560
"neuron": "Skipping - there are no local mode tests for Neuron",
561561
"huggingface-tensorflow-training": "Skipping - there are no local mode tests for HF TF training",
562-
"vllm": "Skipping - there are no local mode tests for VLLM",
563562
"sglang": "Skipping - there are no local mode tests for sglang",
564563
}
565564

@@ -571,6 +570,13 @@ def main():
571570
sm_utils.generate_empty_report(report, test_type, skip_condition)
572571
return
573572

573+
# Skip base vllm (not huggingface_vllm) - huggingface_vllm has local tests
574+
if "vllm" in dlc_images and "huggingface" not in dlc_images:
575+
LOGGER.info(f"Skipping - there are no local mode tests for base VLLM. Images: {dlc_images}")
576+
report = os.path.join(os.getcwd(), "test", f"{test_type}.xml")
577+
sm_utils.generate_empty_report(report, test_type, "vllm")
578+
return
579+
574580
testing_image_list = [
575581
image
576582
for image in standard_images_list

0 commit comments

Comments
 (0)