Skip to content

Commit f8c5287

Browse files
jswudiChoiByungWook
authored andcommitted
feature: support creating and updating profiler in training job (#444) (#526) (#530)
1 parent 127197f commit f8c5287

25 files changed

+3055
-140
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,6 @@ venv/
2525
*~
2626
.pytest_cache/
2727
*.swp
28-
.docker/
28+
.docker/
29+
env/
30+
.vscode/

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def read_version():
3939
"numpy>=1.9.0",
4040
"protobuf>=3.1",
4141
"protobuf3-to-dict>=0.1.5",
42-
"smdebug-rulesconfig==0.1.5",
42+
"smdebug_rulesconfig",
4343
"importlib-metadata>=1.4.0",
4444
"packaging>=20.0",
4545
]

src/sagemaker/debugger/__init__.py

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License"). You
4+
# may not use this file except in compliance with the License. A copy of
5+
# the License is located at
6+
#
7+
# http://aws.amazon.com/apache2.0/
8+
#
9+
# or in the "license" file accompanying this file. This file is
10+
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11+
# ANY KIND, either express or implied. See the License for the specific
12+
# language governing permissions and limitations under the License.
13+
"""Classes for using debugger and profiler with Amazon SageMaker."""
14+
from __future__ import absolute_import
15+
16+
from sagemaker.debugger.debugger import ( # noqa: F401
17+
CollectionConfig,
18+
DebuggerHookConfig,
19+
framework_name,
20+
get_default_profiler_rule,
21+
get_rule_container_image_uri,
22+
ProfilerRule,
23+
Rule,
24+
RuleBase,
25+
rule_configs,
26+
TensorBoardOutputConfig,
27+
)
28+
from sagemaker.debugger.framework_profile import FrameworkProfile # noqa: F401
29+
from sagemaker.debugger.metrics_config import ( # noqa: F401
30+
DataloaderProfilingConfig,
31+
DetailedProfilingConfig,
32+
HerringProfilingConfig,
33+
HorovodProfilingConfig,
34+
PythonProfilingConfig,
35+
)
36+
from sagemaker.debugger.profiler_config import ProfilerConfig # noqa: F401
37+
from sagemaker.debugger.utils import PythonProfiler, cProfileTimer # noqa: F401

0 commit comments

Comments
 (0)