Skip to content

Commit e6d2680

Browse files
author
Bhanu Teja Goshikonda
committed
docs(tensorflow): apply flowmark formatter
Collapses pipe-aligned tables to compact form and re-wraps prose at 150 columns to satisfy the flowmark pre-commit hook.
1 parent 23a3793 commit e6d2680

3 files changed

Lines changed: 22 additions & 23 deletions

File tree

docs/tensorflow/changelog/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Changelog for the Amazon Linux 2023-based TensorFlow SageMaker training images (`2.21-gpu-py312-cu129-amzn2023-sagemaker` and
44
`2.21-cpu-py312-amzn2023-sagemaker`).
55

6-
---
6+
* * *
77

88
## TensorFlow 2.21 — 2026-07-10
99

docs/tensorflow/deployment/sagemaker.md

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# Amazon SageMaker AI Deployment
22

33
Use the TensorFlow DLC for training jobs launched via the SageMaker Python SDK or `boto3`. The images bundle the `sagemaker-tensorflow-training`
4-
toolkit, OpenMPI for multi-node coordination, and SageMaker-specific Python libraries (`mlflow`, `smclarify`, `pandas`, `seaborn`, `s3fs`,
5-
etc.).
4+
toolkit, OpenMPI for multi-node coordination, and SageMaker-specific Python libraries (`mlflow`, `smclarify`, `pandas`, `seaborn`, `s3fs`, etc.).
65

76
The TensorFlow 2.21 DLC is a **SageMaker-only** release — there is no EC2 or EKS variant of this image. Point your estimators, processors, and
87
training jobs at the SageMaker image URIs shown below.
@@ -108,23 +107,22 @@ processor = FrameworkProcessor(
108107
SageMaker provisions EFA on the instance types that support it (e.g., `ml.p5.48xlarge`, `ml.p4d.24xlarge`). The GPU image ships with EFA 1.49.0 and
109108
OpenMPI 4.1.8 pre-installed — no extra plumbing in your training script.
110109

111-
Multi-node peer discovery is handled by the `sagemaker_tensorflow_container` training toolkit, which parses
112-
`/opt/ml/input/config/resourceconfig.json` at container start to enumerate hosts, current host rank, and network interface. Peers are addressed
113-
by the SageMaker-assigned hostnames (e.g., `algo-1`, `algo-2`) that resolve inside the training cluster — your script does not need to know about
114-
this.
110+
Multi-node peer discovery is handled by the `sagemaker_tensorflow_container` training toolkit, which parses `/opt/ml/input/config/resourceconfig.json`
111+
at container start to enumerate hosts, current host rank, and network interface. Peers are addressed by the SageMaker-assigned hostnames (e.g.,
112+
`algo-1`, `algo-2`) that resolve inside the training cluster — your script does not need to know about this.
115113

116114
## Container Layout
117115

118-
| Path | Purpose |
119-
| ------------------------------------ | ---------------------------------------------------------------------------------------------- |
120-
| `/opt/ml/input/data/<channel_name>/` | Training data SageMaker mounts from S3 (one subdir per channel) |
121-
| `/opt/ml/model/` | Write your final model artifacts here — SageMaker uploads to `OutputDataConfig.s3_output_path` |
122-
| `/opt/ml/output/` | Auxiliary outputs (logs, checkpoints) |
123-
| `/opt/ml/code/` | Your training source dir (populated from the SDK's `source_dir`) |
124-
| `/opt/venv/` | Python venv with TensorFlow + DLC libraries |
116+
| Path | Purpose |
117+
| --- | --- |
118+
| `/opt/ml/input/data/<channel_name>/` | Training data SageMaker mounts from S3 (one subdir per channel) |
119+
| `/opt/ml/model/` | Write your final model artifacts here — SageMaker uploads to `OutputDataConfig.s3_output_path` |
120+
| `/opt/ml/output/` | Auxiliary outputs (logs, checkpoints) |
121+
| `/opt/ml/code/` | Your training source dir (populated from the SDK's `source_dir`) |
122+
| `/opt/venv/` | Python venv with TensorFlow + DLC libraries |
125123

126124
## Notes
127125

128-
- The image sets `SAGEMAKER_TRAINING_MODULE=sagemaker_tensorflow_container.training:main` — this is the entry-point the SageMaker
129-
training toolkit invokes at container start, which in turn launches your `entry_point` script.
126+
- The image sets `SAGEMAKER_TRAINING_MODULE=sagemaker_tensorflow_container.training:main` — this is the entry-point the SageMaker training toolkit
127+
invokes at container start, which in turn launches your `entry_point` script.
130128
- For a baseline driver/AMI compatible with these CUDA 12.9 images, request the latest SageMaker training AMI when launching jobs.

docs/tensorflow/index.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ EFA-capable instances, OpenMPI for multi-node coordination, and the SageMaker tr
88

99
## Images
1010

11-
| Platform | Variant | Image |
12-
| --------------- | ------- | ----------------------------------------------------------------------------------------------------- |
13-
| {{ sagemaker }} | GPU | `public.ecr.aws/deep-learning-containers/tensorflow-training:2.21-gpu-py312-cu129-amzn2023-sagemaker` |
14-
| {{ sagemaker }} | CPU | `public.ecr.aws/deep-learning-containers/tensorflow-training:2.21-cpu-py312-amzn2023-sagemaker` |
11+
| Platform | Variant | Image |
12+
| --- | --- | --- |
13+
| {{ sagemaker }} | GPU | `public.ecr.aws/deep-learning-containers/tensorflow-training:2.21-gpu-py312-cu129-amzn2023-sagemaker` |
14+
| {{ sagemaker }} | CPU | `public.ecr.aws/deep-learning-containers/tensorflow-training:2.21-cpu-py312-amzn2023-sagemaker` |
1515

1616
All images are also available on the [ECR Public Gallery](https://gallery.ecr.aws/deep-learning-containers/tensorflow-training). For private ECR URIs,
1717
see [Image Access](../get_started/index.md).
@@ -26,7 +26,8 @@ The GPU image includes:
2626
- **CUDA 12.9.1** with **cuDNN 9.5.1.17** (`nvidia-cudnn-cu12`) and **NCCL 2.30.7** (`nvidia-nccl-cu12`) for multi-GPU collectives
2727
- **[EFA](https://aws.amazon.com/hpc/efa/) 1.49.0** with **OpenMPI 4.1.8** for low-latency multi-node communication on EFA-capable instances
2828
- **[MPI for Python](https://mpi4py.readthedocs.io/) (`mpi4py`)** for multi-process Python coordination
29-
- **[SageMaker training toolkits](https://github.com/aws/sagemaker-tensorflow-training-toolkit)**`sagemaker-tensorflow-training`, `sagemaker-training`
29+
- **[SageMaker training toolkits](https://github.com/aws/sagemaker-tensorflow-training-toolkit)**`sagemaker-tensorflow-training`,
30+
`sagemaker-training`
3031
- **[MLflow](https://mlflow.org/) 3.9+**, **`sagemaker>=3.4.0`**, **`smclarify`**, and **`sagemaker-experiments` 0.1.45**
3132
- **Data & ML tooling**`tensorflow-io` 0.37, `tensorflow-datasets`, `pandas`, `scikit-learn`, `scipy`, `numpy` (2.1+), `Pillow`, `h5py`,
3233
`opencv-python`, `numba`, `plotly`, `seaborn`, `shap`, `bokeh`, `imageio`, `cloudpickle`
@@ -49,5 +50,5 @@ These images are curated builds tracking the [TensorFlow](https://www.tensorflow
4950
- **Reproducible** — pinned via `pyproject.toml` + `uv.lock` for every image variant
5051
- **Security-patched** — continuously maintained with security patches from {{ aws }} on an Amazon Linux 2023 base
5152

52-
TensorFlow 2.21 is the first TensorFlow DLC on Amazon Linux 2023 and Python 3.12. Prior TensorFlow DLCs shipped on Ubuntu with earlier Python versions;
53-
this release moves the base OS and interpreter forward alongside the framework bump.
53+
TensorFlow 2.21 is the first TensorFlow DLC on Amazon Linux 2023 and Python 3.12. Prior TensorFlow DLCs shipped on Ubuntu with earlier Python
54+
versions; this release moves the base OS and interpreter forward alongside the framework bump.

0 commit comments

Comments
 (0)