-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add support for Chainer 5.0 #491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 2 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ Chainer SageMaker Estimators and Models | |
|
||
With Chainer Estimators, you can train and host Chainer models on Amazon SageMaker. | ||
|
||
Supported versions of Chainer: ``4.0.0``, ``4.1.0`` | ||
Supported versions of Chainer: ``4.0.0``, ``4.1.0``, ``5.0.0`` | ||
|
||
You can visit the Chainer repository at https://github.com/chainer/chainer. | ||
|
||
|
@@ -32,7 +32,7 @@ Suppose that you already have an Chainer training script called | |
role='SageMakerRole', | ||
train_instance_type='ml.p3.2xlarge', | ||
train_instance_count=1, | ||
framework_version='4.1.0') | ||
framework_version='5.0.0') | ||
chainer_estimator.fit('s3://bucket/path/to/training/data') | ||
|
||
Where the S3 URL is a path to your training data, within Amazon S3. The constructor keyword arguments define how | ||
|
@@ -111,7 +111,7 @@ directories ('train' and 'test'). | |
chainer_estimator = Chainer('chainer-train.py', | ||
train_instance_type='ml.p3.2xlarge', | ||
train_instance_count=1, | ||
framework_version='4.1.0', | ||
framework_version='5.0.0', | ||
hyperparameters = {'epochs': 20, 'batch-size': 64, 'learning-rate': 0.1}) | ||
chainer_estimator.fit({'train': 's3://my-data-bucket/path/to/my/training/data', | ||
'test': 's3://my-data-bucket/path/to/my/test/data'}) | ||
|
@@ -285,7 +285,7 @@ operation. | |
chainer_estimator = Chainer(entry_point='train_and_deploy.py', | ||
train_instance_type='ml.p3.2xlarge', | ||
train_instance_count=1, | ||
framework_version='4.1.0') | ||
framework_version='5.0.0') | ||
chainer_estimator.fit('s3://my_bucket/my_training_data/') | ||
|
||
# Deploy my estimator to a SageMaker Endpoint and get a Predictor | ||
|
@@ -631,35 +631,35 @@ This Python version applies to both the Training Job, created by fit, and the En | |
|
||
The Chainer Docker images have the following dependencies installed: | ||
|
||
+-----------------------------+-------------+ | ||
| Dependencies | chainer 4.0 | | ||
+-----------------------------+-------------+ | ||
| chainer | 4.0.0 | | ||
+-----------------------------+-------------+ | ||
| chainercv | 0.9.0 | | ||
+-----------------------------+-------------+ | ||
| chainermn | 1.2.0 | | ||
+-----------------------------+-------------+ | ||
| CUDA (GPU image only) | 9.0 | | ||
+-----------------------------+-------------+ | ||
| cupy | 4.0.0 | | ||
+-----------------------------+-------------+ | ||
| matplotlib | 2.2.0 | | ||
+-----------------------------+-------------+ | ||
| mpi4py | 3.0.0 | | ||
+-----------------------------+-------------+ | ||
| numpy | 1.14.3 | | ||
+-----------------------------+-------------+ | ||
| opencv-python | 3.4.0.12 | | ||
+-----------------------------+-------------+ | ||
| Pillow | 5.1.0 | | ||
+-----------------------------+-------------+ | ||
| Python | 2.7 or 3.5 | | ||
+-----------------------------+-------------+ | ||
+-----------------------------+-------------+-------------+-------------+ | ||
| Dependencies | chainer 4.0 | chainer 4.1 | chainer 5.0 | | ||
+-----------------------------+-------------+-------------+-------------+ | ||
| chainer | 4.0.0 | 4.1.0 | 5.0.0 | | ||
+-----------------------------+-------------+-------------+-------------+ | ||
| chainercv | 0.9.0 | 0.10.0 | 0.10.0 | | ||
+-----------------------------+-------------+-------------+-------------+ | ||
| chainermn | 1.2.0 | 1.3.0 | N/A | | ||
+-----------------------------+-------------+-------------+-------------+ | ||
| CUDA (GPU image only) | 9.0 | 9.0 | 9.0 | | ||
+-----------------------------+-------------+-------------+-------------+ | ||
| cupy | 4.0.0 | 4.1.0 | 5.0.0 | | ||
+-----------------------------+-------------+-------------+-------------+ | ||
| matplotlib | 2.2.0 | 2.2.0 | 2.2.0 | | ||
+-----------------------------+-------------+-------------+-------------+ | ||
| mpi4py | 3.0.0 | 3.0.0 | 3.0.0 | | ||
+-----------------------------+-------------+-------------+-------------+ | ||
| numpy | 1.14.3 | 1.15.3 | 1.15.4 | | ||
+-----------------------------+-------------+-------------+-------------+ | ||
| opencv-python | 3.4.0.12 | 3.4.0.12 | 3.4.0.12 | | ||
+-----------------------------+-------------+-------------+-------------+ | ||
| Pillow | 5.1.0 | 5.3.0 | 5.3.0 | | ||
+-----------------------------+-------------+-------------+-------------+ | ||
| Python | 2.7 or 3.5 | 2.7 or 3.5 | 2.7 or 3.5 | | ||
+-----------------------------+-------------+-------------+-------------+ | ||
|
||
The Docker images extend Ubuntu 16.04. | ||
|
||
You can select version of Chainer by passing a framework_version keyword arg to the Chainer Estimator constructor. | ||
You must select a version of Chainer by passing a framework_version keyword arg to the Chainer Estimator constructor. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. double backticks around |
||
Currently supported versions are listed in the above table. You can also set framework_version to only specify major and | ||
minor version, which will cause your training script to be run on the latest supported patch version of that minor | ||
version. | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: you have extra leading spaces in some of these cells