File tree Expand file tree Collapse file tree 11 files changed +70
-5
lines changed
_static/aws-ux-shortbread Expand file tree Collapse file tree 11 files changed +70
-5
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## v2.49.1 (2021-07-19)
4
+
5
+ ### Bug Fixes and Other Changes
6
+
7
+ * Set flag when debugger is disabled
8
+ * KMS Key fix for kwargs
9
+ * Update BiasConfig to accept multiple facet params
10
+
11
+ ### Documentation Changes
12
+
13
+ * Update huggingface estimator documentation
14
+
3
15
## v2.49.0 (2021-07-15)
4
16
5
17
### Features
Original file line number Diff line number Diff line change 1
- 2.49.1 .dev0
1
+ 2.49.2 .dev0
Original file line number Diff line number Diff line change
1
+ ( function ( w ) {
2
+ w . URLSearchParams = w . URLSearchParams || function ( searchString ) {
3
+ var self = this ;
4
+ self . searchString = searchString ;
5
+ self . get = function ( name ) {
6
+ var results = new RegExp ( '[\?&]' + name + '=([^&#]*)' ) . exec ( self . searchString ) ;
7
+ if ( results === null ) {
8
+ return null ;
9
+ }
10
+ else {
11
+ return decodeURI ( results [ 1 ] ) || 0 ;
12
+ }
13
+ } ;
14
+ }
15
+ } ) ( window ) ;
16
+
17
+ const queryString = window . location . search ;
18
+ const urlParams = new URLSearchParams ( queryString ) ;
19
+ const lang = urlParams . get ( 'lang' )
20
+ window . onload = function ( ) {
21
+ var domainName = window . location . hostname ;
22
+
23
+ // remove an instance of shortbread if already exists
24
+ var existingShortbreadEl = document . getElementById ( "awsccc-sb-ux-c" ) ;
25
+ existingShortbreadEl && existingShortbreadEl . remove ( ) ;
26
+
27
+ var shortbread = AWSCShortbread ( {
28
+ domain : domainName ,
29
+ language : lang ,
30
+ //queryGeolocation: function (geolocatedIn) { geolocatedIn("EU") },
31
+ } ) ;
32
+
33
+ shortbread . checkForCookieConsent ( ) ;
34
+ }
Original file line number Diff line number Diff line change 68
68
69
69
htmlhelp_basename = "%sdoc" % project
70
70
71
- html_js_files = ["https://a0.awsstatic.com/s_code/js/1.0/awshome_s_code.js" , "js/analytics.js" ]
71
+ # For Adobe Analytics
72
+ html_js_files = [
73
+ "https://a0.awsstatic.com/s_code/js/3.0/awshome_s_code.js" ,
74
+ "aws-ux-shortbread/index.js" ,
75
+ "aws-ux-shortbread/init.js" ,
76
+ ]
72
77
73
78
html_context = {"css_files" : ["_static/theme_overrides.css" ]}
74
79
Original file line number Diff line number Diff line change 15
15
16
16
from sagemaker .debugger .debugger import ( # noqa: F401
17
17
CollectionConfig ,
18
+ DEBUGGER_FLAG ,
18
19
DebuggerHookConfig ,
19
20
framework_name ,
20
21
get_default_profiler_rule ,
Original file line number Diff line number Diff line change 32
32
from sagemaker .utils import build_dict
33
33
34
34
framework_name = "debugger"
35
+ DEBUGGER_FLAG = "USE_SMDEBUG"
35
36
36
37
37
38
def get_rule_container_image_uri (region ):
Original file line number Diff line number Diff line change 29
29
from sagemaker .analytics import TrainingJobAnalytics
30
30
from sagemaker .debugger import TensorBoardOutputConfig # noqa: F401 # pylint: disable=unused-import
31
31
from sagemaker .debugger import (
32
+ DEBUGGER_FLAG ,
32
33
DebuggerHookConfig ,
33
34
FrameworkProfile ,
34
35
get_default_profiler_rule ,
@@ -2269,6 +2270,11 @@ def _validate_and_set_debugger_configs(self):
2269
2270
)
2270
2271
self .debugger_hook_config = False
2271
2272
2273
+ if self .debugger_hook_config is False :
2274
+ if self .environment is None :
2275
+ self .environment = {}
2276
+ self .environment [DEBUGGER_FLAG ] = "0"
2277
+
2272
2278
def _stage_user_code_in_s3 (self ):
2273
2279
"""Upload the user training script to s3 and return the location.
2274
2280
Original file line number Diff line number Diff line change @@ -70,10 +70,10 @@ def __init__(
70
70
``image_uri`` is provided. The current supported version is ``4.6.1``.
71
71
tensorflow_version (str): TensorFlow version you want to use for
72
72
executing your model training code. Defaults to ``None``. Required unless
73
- ``pytorch_version`` is provided. The current supported version is ``1.6.0 ``.
73
+ ``pytorch_version`` is provided. The current supported version is ``2.4.1 ``.
74
74
pytorch_version (str): PyTorch version you want to use for
75
75
executing your model training code. Defaults to ``None``. Required unless
76
- ``tensorflow_version`` is provided. The current supported version is ``2.4.1 ``.
76
+ ``tensorflow_version`` is provided. The current supported versions are ``1.7.1`` and ``1.6.0 ``.
77
77
source_dir (str): Path (absolute, relative or an S3 URI) to a directory
78
78
with any other training source code dependencies aside from the entry
79
79
point file (default: None). If ``source_dir`` is an S3 URI, it must
Original file line number Diff line number Diff line change 18
18
import pytest
19
19
20
20
from sagemaker .debugger .debugger import (
21
+ DEBUGGER_FLAG ,
21
22
DebuggerHookConfig ,
22
23
Rule ,
23
24
rule_configs ,
@@ -748,6 +749,7 @@ def test_mxnet_with_debugger_hook_config_disabled(
748
749
job_description = mx .latest_training_job .describe ()
749
750
750
751
assert job_description .get ("DebugHookConfig" ) is None
752
+ assert job_description .get ("Environment" , {}).get (DEBUGGER_FLAG ) == "0"
751
753
752
754
753
755
def _get_rule_evaluation_statuses (job_description ):
Original file line number Diff line number Diff line change 23
23
patch ,
24
24
)
25
25
26
- from sagemaker .debugger import ProfilerConfig
26
+ from sagemaker .debugger import DEBUGGER_FLAG , ProfilerConfig
27
27
from sagemaker .estimator import Estimator
28
28
from sagemaker .tensorflow import TensorFlow
29
29
from sagemaker .inputs import TrainingInput , TransformInput , CreateModelInput
@@ -275,6 +275,7 @@ def test_training_step_tensorflow(sagemaker_session):
275
275
"sagemaker_distributed_dataparallel_custom_mpi_options" : '""' ,
276
276
},
277
277
"ProfilerConfig" : {"S3OutputPath" : "s3://my-bucket/" },
278
+ "Environment" : {DEBUGGER_FLAG : "0" },
278
279
},
279
280
"CacheConfig" : {"Enabled" : True , "ExpireAfter" : "PT1H" },
280
281
}
You can’t perform that action at this time.
0 commit comments