Skip to content

Commit 5e7a3ef

Browse files
pravali96Pravali Uppugunduri
andauthored
ft: Remove insecure SSL context creation in Triton Python backend (#5372)
* Remove insecure SSL context creation in Triton Python backend * fix flake8 issue --------- Co-authored-by: Pravali Uppugunduri <[email protected]>
1 parent 8e2778c commit 5e7a3ef

File tree

1 file changed

+0
-5
lines changed
  • sagemaker-serve/src/sagemaker/serve/model_server/triton

1 file changed

+0
-5
lines changed

sagemaker-serve/src/sagemaker/serve/model_server/triton/model.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from __future__ import absolute_import
44
import os
55
import logging
6-
import ssl
76
from pathlib import Path
87
import platform
98

@@ -13,10 +12,6 @@
1312

1413
logger = logging.getLogger(__name__)
1514

16-
# Otherwise it will complain SSL: CERTIFICATE_VERIFY_FAILED
17-
# When trying to download models from torchvision
18-
ssl._create_default_https_context = ssl._create_unverified_context
19-
2015
TRITON_MODEL_DIR = os.getenv("TRITON_MODEL_DIR")
2116

2217

0 commit comments

Comments
 (0)