Skip to content

Commit

Permalink
Merge pull request #11 from aws/edits
Browse files Browse the repository at this point in the history
MXNet tutorial edits; release note cleanup
  • Loading branch information
awsrjh committed Dec 3, 2019
2 parents 914883a + 39e589f commit a95565d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
13 changes: 7 additions & 6 deletions docs/mxnet-neuron/tutorial-compile-infer.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ Neuron supports both Python module and Symbol APIs and the C predict API. The fo
## Steps Overview:

1. Launch an EC2 instance for compilation and/or inference
2. Install Neuron for compilation and runtime execution
2. Install MXNet-Neuron and Neuron Compiler On Compilation Instance
3. Compile on compilation server
4. Execute inference on Inf1
4. Install MXNet-Neuron and Neuron Runtime on Inference Instance
5. Execute inference on Inf1

## Step 1: Launch EC2 Instances

Expand All @@ -22,9 +23,9 @@ A typical workflow with the Neuron SDK will be to compile trained ML models on a

1.3. Select and launch an Inf1 instance of your choice to run the compiled model. Launch an instance by following [EC2 instructions](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EC2_GetStarted.html#ec2-launch-instance).

## Step 2: Install Neuron Compiler and MXNet-Neuron On Compilation Instance
## Step 2: Install MXNet-Neuron and Neuron Compiler On Compilation Instance

If using DLAMI, activate aws_neuron_mxnet_p36 environment and skip this step.
If using DLAMI, activate pre-installed MXNet-Neuron environment (using `source activate aws_neuron_mxnet_p36`) and skip this step.

On the instance you are going to use for compilation, install both Neuron Compiler and MXNet-Neuron.

Expand Down Expand Up @@ -90,9 +91,9 @@ scp -i <PEM key file> resnet-50_compiled-0000.params ubuntu@<instance DNS>:~/
scp -i <PEM key file> resnet-50_compiled-symbol.json ubuntu@<instance DNS>:~/ # Ubuntu
```

## Step 4: Install MXNet-Neuron and Neuron-Runtime on Inference Instance
## Step 4: Install MXNet-Neuron and Neuron Runtime on Inference Instance

If using DLAMI, activate aws_neuron_mxnet_p36 environment and skip this step.
If using DLAMI, activate pre-installed MXNet-Neuron environment (using `source activate aws_neuron_mxnet_p36`) and skip this step.

On the instance you are going to use for inference, install TensorFlow-Neuron and Neuron Runtime.

Expand Down
2 changes: 1 addition & 1 deletion release-notes/conda-tensorflow-neuron.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Please update to the latest conda package release.
source activate <conda environment>
conda update tensorflow-neuron
```
In TensorFlow-Neuron conda environment (aws_neuron_tensorflow_p36) of DLAMI v26.0, an incorrect numpy version prevents update to latest conda package version. Please do "conda install numpy=1.17.2 --yes --quiet" before "conda update tensorflow-neuron". (See [DLAMI Release Notes](./dlami-release-notes.md)).
In TensorFlow-Neuron conda environment (aws_neuron_tensorflow_p36) of DLAMI v26.0, the installed numpy version prevents update to latest conda package version. Please do "conda install numpy=1.17.2 --yes --quiet" before "conda update tensorflow-neuron". (See [DLAMI Release Notes](./dlami-release-notes.md)).

```bash
source activate aws_neuron_tensorflow_p36
Expand Down
2 changes: 1 addition & 1 deletion release-notes/dlami-release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ conda install numpy=1.17.2 --yes --quiet
conda update tensorflow-neuron
```

* In TensorFlow-Neuron conda environment (aws_neuron_tensorflow_p36), an incorrect numpy version prevents update to latest conda package version. Please do "conda install numpy=1.17.2 --yes --quiet" before "conda update tensorflow-neuron".
* In TensorFlow-Neuron conda environment (aws_neuron_tensorflow_p36), the installed numpy version prevents update to latest conda package version. Please do "conda install numpy=1.17.2 --yes --quiet" before "conda update tensorflow-neuron".

* When using the Conda DLAMI, use the above conda commands to update packages, not pip.

Expand Down

0 comments on commit a95565d

Please sign in to comment.