Skip to content

Commit 05dddc6

Browse files
authored
Merge branch 'master' into fixTest
2 parents 10a5b8f + cee5233 commit 05dddc6

File tree

2 files changed

+0
-32
lines changed

2 files changed

+0
-32
lines changed

tests/integ/sagemaker/serve/constants.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
SERVE_IN_PROCESS_TIMEOUT = 5
2121
SERVE_MODEL_PACKAGE_TIMEOUT = 10
2222
SERVE_LOCAL_CONTAINER_TIMEOUT = 10
23-
SERVE_LOCAL_CONTAINER_TUNE_TIMEOUT = 15
2423
SERVE_SAGEMAKER_ENDPOINT_TIMEOUT = 15
2524
SERVE_SAVE_TIMEOUT = 2
2625

tests/integ/sagemaker/serve/test_serve_js_happy.py

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,10 @@
1414

1515
import pytest
1616

17-
from sagemaker.serve import Mode
1817
from sagemaker.serve.builder.model_builder import ModelBuilder
1918
from sagemaker.serve.builder.schema_builder import SchemaBuilder
2019
from tests.integ.sagemaker.serve.constants import (
2120
SERVE_SAGEMAKER_ENDPOINT_TIMEOUT,
22-
SERVE_LOCAL_CONTAINER_TUNE_TIMEOUT,
2321
PYTHON_VERSION_IS_NOT_310,
2422
)
2523

@@ -77,32 +75,3 @@ def test_happy_tgi_sagemaker_endpoint(happy_model_builder, gpu_instance_type):
7775
)
7876
if caught_ex:
7977
raise caught_ex
80-
81-
82-
@pytest.mark.skipif(
83-
PYTHON_VERSION_IS_NOT_310,
84-
reason="The goal of these tests are to test the serving components of our feature",
85-
)
86-
@pytest.mark.local_mode
87-
def test_happy_tune_tgi_local_mode(sagemaker_local_session):
88-
logger.info("Running in LOCAL_CONTAINER mode...")
89-
caught_ex = None
90-
91-
model_builder = ModelBuilder(
92-
model="huggingface-llm-bilingual-rinna-4b-instruction-ppo-bf16",
93-
schema_builder=SchemaBuilder(SAMPLE_PROMPT, SAMPLE_RESPONSE),
94-
mode=Mode.LOCAL_CONTAINER,
95-
sagemaker_session=sagemaker_local_session,
96-
)
97-
98-
model = model_builder.build()
99-
100-
with timeout(minutes=SERVE_LOCAL_CONTAINER_TUNE_TIMEOUT):
101-
try:
102-
tuned_model = model.tune()
103-
assert tuned_model.env is not None
104-
except Exception as e:
105-
caught_ex = e
106-
finally:
107-
if caught_ex:
108-
raise caught_ex

0 commit comments

Comments
 (0)