Skip to content

Commit 9742b95

Browse files
author
malavhs
committed
skip hf_pt-inference-latest-dlc-sagemaker-local-test temporarily
1 parent 31ea42c commit 9742b95

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

dlc_developer_config.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ deep_canary_mode = false
3737
[build]
3838
# Add in frameworks you would like to build. By default, builds are disabled unless you specify building an image.
3939
# available frameworks - ["autogluon", "huggingface_tensorflow", "huggingface_pytorch", "huggingface_tensorflow_trcomp", "huggingface_pytorch_trcomp", "pytorch_trcomp", "tensorflow", "mxnet", "pytorch", "stabilityai_pytorch"]
40-
build_frameworks = []
40+
build_frameworks = ["huggingface_pytorch"]
4141

4242
# By default we build both training and inference containers. Set true/false values to determine which to build.
43-
build_training = true
43+
build_training = false
4444
build_inference = true
4545

4646
# Set do_build to "false" to skip builds and test the latest image built by this PR
@@ -146,7 +146,7 @@ dlc-pr-tensorflow-2-neuron-inference = ""
146146

147147
# HuggingFace Inference
148148
dlc-pr-huggingface-tensorflow-inference = ""
149-
dlc-pr-huggingface-pytorch-inference = ""
149+
dlc-pr-huggingface-pytorch-inference = "huggingface/pytorch/inference/buildspec.yml"
150150
dlc-pr-huggingface-pytorch-neuron-inference = ""
151151

152152
# Stability AI Inference

test/sagemaker_tests/huggingface/inference/integration/local/test_serving.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
from sagemaker.predictor import Predictor
2020
from sagemaker.serializers import JSONSerializer
2121
from sagemaker.deserializers import JSONDeserializer
22+
from packaging.version import Version
2223

2324
from ...integration import model_dir, ROLE, pt_model, tf_model
2425
from ...utils import local_mode_utils
@@ -60,6 +61,8 @@ def _assert_prediction(predictor):
6061
@pytest.mark.model("tiny-distilbert")
6162
@pytest.mark.team("sagemaker-1p-algorithms")
6263
def test_serve_json(docker_image, framework_version, sagemaker_local_session, instance_type):
64+
if "pytorch" in docker_image and Version(framework_version) < Version("2.4"):
65+
pytest.skip("Skipping distilbert SM local tests for PT")
6366
with _predictor(
6467
model_dir, docker_image, framework_version, sagemaker_local_session, instance_type
6568
) as predictor:

0 commit comments

Comments
 (0)