# TensorFlow benchmarking scripts
This folder contains the TF training scripts https://github.com/tensorflow/benchmarks/tree/master/scripts/tf_cnn_benchmarks.
## Basic usage
**execute_tensorflow_training.py train** uses SageMaker python sdk to start a training job.
```bash
./execute_tensorflow_training.py train --help
Usage: execute_tensorflow_training.py train [OPTIONS] [SCRIPT_ARGS]...
Options:
--framework-version [1.11.0|1.12.0]
[required]
--device [cpu|gpu] [required]
--py-versions TEXT
--training-input-mode [File|Pipe]
--networking-isolation / --no-networking-isolation
--wait / --no-wait
--security-groups TEXT
--subnets TEXT
--role TEXT
--instance-counts INTEGER
--batch-sizes INTEGER
--instance-types TEXT
--help Show this message and exit.
```
**execute_tensorflow_training.py generate_reports** generate benchmark reports.
## Examples:
```bash
#!/usr/bin/env bash
./execute_tensorflow_training.py train \
--framework-version 1.11.0 \
--device gpu \
\
--instance-types ml.p3.2xlarge \
--instance-types ml.p3.8xlarge \
--instance-types ml.p3.16xlarge \
--instance-types ml.p2.xlarge \
--instance-types ml.p2.8xlarge \
--instance-types ml.p2.16xlarge \
\
--instance-counts 1 \
\
--py-versions py3 \
--py-versions py2 \
\
--subnets subnet-125fb674 \
\
--security-groups sg-ce5dd1b4 \
\
--batch-sizes 32 \
--batch-sizes 64 \
--batch-sizes 128 \
--batch-sizes 256 \
--batch-sizes 512 \
\
-- --model resnet32 --num_epochs 10 --data_format NHWC --summary_verbosity 1 --save_summaries_steps 10 --data_name cifar10
```
## Using other models, datasets and benchmarks configurations
```python tf_cnn_benchmarks/tf_cnn_benchmarks.py --help``` shows all the options that the script has.
没有合适的资源?快使用搜索试试~ 我知道了~
用于在SageMaker上运行TensorFlow训练脚本的工具包。用于构建SageMakerTensorFlow.zip
共115个文件
py:45个
gpu:16个
cpu:16个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 63 浏览量
2023-04-19
00:48:45
上传
评论
收藏 1.28MB ZIP 举报
温馨提示
用于在SageMaker上运行TensorFlow训练脚本的工具包。用于构建SageMakerTensorFlow.zip
资源推荐
资源详情
资源评论
收起资源包目录
用于在SageMaker上运行TensorFlow训练脚本的工具包。用于构建SageMakerTensorFlow.zip (115个子文件)
.coveragerc_py37 273B
.coveragerc_py38 272B
.coveragerc_py39 272B
Dockerfile.cpu 5KB
Dockerfile.cpu 5KB
Dockerfile.cpu 4KB
Dockerfile.cpu 4KB
Dockerfile.cpu 4KB
Dockerfile.cpu 4KB
Dockerfile.cpu 4KB
Dockerfile.cpu 4KB
Dockerfile.cpu 4KB
Dockerfile.cpu 4KB
Dockerfile.cpu 4KB
Dockerfile.cpu 3KB
Dockerfile.cpu 2KB
Dockerfile.cpu 2KB
Dockerfile.tf.cpu 476B
Dockerfile.dlc.cpu 333B
.flake8 143B
.gitignore 114B
Dockerfile.gpu 7KB
Dockerfile.gpu 7KB
Dockerfile.gpu 7KB
Dockerfile.gpu 6KB
Dockerfile.gpu 6KB
Dockerfile.gpu 6KB
Dockerfile.gpu 6KB
Dockerfile.gpu 6KB
Dockerfile.gpu 6KB
Dockerfile.gpu 6KB
Dockerfile.gpu 6KB
Dockerfile.gpu 5KB
Dockerfile.gpu 3KB
Dockerfile.gpu 2KB
Dockerfile.tf.gpu 678B
Dockerfile.dlc.gpu 339B
fake_model.h5 0B
MANIFEST.in 181B
tox.ini 2KB
script_mode_train_any_tf_script_in_sage_maker.ipynb 14KB
LICENSE 11KB
CHANGELOG.md 17KB
README.md 2KB
CODE_OF_CONDUCT.md 309B
PULL_REQUEST_TEMPLATE.md 169B
NOTICE 67B
x_train.npy 5.98MB
x_test.npy 5.98MB
train_data.npy 2.99MB
eval_data.npy 2.99MB
eval_labels.npy 4KB
train_labels.npy 4KB
y_train.npy 1KB
y_test.npy 1KB
saved_model.pb 0B
saved_model.pb 0B
train_imagenet_resnet_hvd.py 50KB
test_training.py 14KB
training.py 10KB
mnist_estimator.py 7KB
conftest.py 7KB
execute_horovod_training.py 6KB
mnist_custom.py 6KB
test_mnist.py 6KB
recordio_utils.py 6KB
build_all.py 4KB
test_training.py 4KB
execute_tensorflow_training.py 4KB
horovod_mnist.py 3KB
deep_learning_container.py 3KB
deep_learning_container.py 3KB
test_horovod.py 3KB
smdataparallel_mnist.py 3KB
test_horovod.py 3KB
setup.py 3KB
test_smdataparallel.py 2KB
image_utils.py 2KB
publish_all.py 2KB
test_tuning_model_dir.py 2KB
mnist.py 2KB
train_dummy.py 2KB
test_multi_worker_mirrored.py 2KB
test_s3_utils.py 1KB
timeout.py 1KB
s3_utils.py 1KB
entry.py 996B
dockerd-entrypoint.py 872B
dockerd-entrypoint.py 872B
dockerd-entrypoint.py 868B
dockerd-entrypoint.py 868B
__init__.py 856B
__init__.py 623B
__init__.py 623B
__init__.py 623B
__init__.py 623B
__init__.py 623B
__init__.py 584B
train_hvd_env_vars.py 536B
train_hvd_basic.py 324B
共 115 条
- 1
- 2
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9154
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功