Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

skip hf_pt-inference-latest-dlc-sagemaker-local-test temporarily for HF PT Inference latest image #4465

Merged
merged 2 commits into from
Dec 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from sagemaker.predictor import Predictor
from sagemaker.serializers import JSONSerializer
from sagemaker.deserializers import JSONDeserializer
from packaging.version import Version

from ...integration import model_dir, ROLE, pt_model, tf_model
from ...utils import local_mode_utils
Expand Down Expand Up @@ -60,6 +61,8 @@ def _assert_prediction(predictor):
@pytest.mark.model("tiny-distilbert")
@pytest.mark.team("sagemaker-1p-algorithms")
def test_serve_json(docker_image, framework_version, sagemaker_local_session, instance_type):
if "huggingface-pytorch" in docker_image and Version(framework_version) < Version("2.4"):
pytest.skip("Skipping distilbert SM local tests for PT")
with _predictor(
model_dir, docker_image, framework_version, sagemaker_local_session, instance_type
) as predictor:
Expand Down
Loading