Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 36dddd3

Browse files
Modified README.md
1 parent c2ca1d7 commit 36dddd3

File tree

4 files changed

+17
-2
lines changed

4 files changed

+17
-2
lines changed

‎blazingtext-text-classification-train-in-sagemaker-deploy-with-lambda/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,18 @@ You'll be running the [BlazingText text classification training with SageMaker,
1414
You can run this notebook in [SageMaker Notebook instance](https://docs.aws.amazon.com/sagemaker/latest/dg/nbi.html)
1515

1616
This notebooks is identical to the original [BlazingText text classification](https://github.com/aws/amazon-sagemaker-examples/blob/master/introduction_to_amazon_algorithms/blazingtext_text_classification_dbpedia/blazingtext_text_classification_dbpedia.ipynb) notebook, except the fact that you'll deploy the model in Lambda function.
17+
18+
## Testing your Lambda function in the Cloud
19+
20+
1. In the [Lambda Console](https://console.aws.amazon.com/lambda/), select Configure test events from the Test events dropdown.
21+
2. For Event Name, enter InferenceTestEvent.
22+
3. Copy the event JSON from [here](./events/event.json) and paste in the dialog box.
23+
4. Choose _**Create**_.
24+
25+
![Configure test event](../img/fasttext_configure_test_event.png)
26+
27+
After saving, you see InferenceTestEvent in the Test list. Now choose _**Test**_.
28+
29+
You see the Lambda function inference result, log output, and duration:
30+
31+
![Lambda execution result](../img/fasttext_execution_result.png)

‎blazingtext-text-classification-train-in-sagemaker-deploy-with-lambda/blazingtext-text-classification-train-in-sagemaker-deploy-with-lambda.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -751,8 +751,8 @@
751751
" 'ImageUri': ecr_image\n",
752752
" },\n",
753753
" PackageType='Image',\n",
754-
" Timeout=120,\n",
755-
" MemorySize=1536,\n",
754+
" Timeout=60,\n",
755+
" MemorySize=384,\n",
756756
" )\n",
757757
" print('Creating Lambda Function {}. Please wait while it is being created.'.format(lambda_function_name))\n",
758758
" time.sleep(90)\n",

‎img/fasttext_configure_test_event.png

3.86 KB
Loading[フレーム]

‎img/fasttext_execution_result.png

-8.73 KB
Loading[フレーム]

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /