Skip to content

Commit 6f5df1a

Browse files
committed
Update to default to ml.t2.large for inference
1 parent 43dcbea commit 6f5df1a

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

OPERATIONS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ To deploy the latest approved approved `champion` model, and the latest `N` appr
6060
"stage_name": "dev",
6161
"strategy": "ThompsonSampling",
6262
"instance_count": 1,
63-
"instance_type": "ml.t2.medium",
63+
"instance_type": "ml.t2.large",
6464
"challenger_variant_count": 1
6565
}
6666
```

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,14 +409,14 @@ With the Deployment Pipeline complete, you will be able to continue with the nex
409409

410410
## Running Cost
411411

412-
This section outlines cost considerations for running the A/B Testing Pipeline. Completing the pipeline will deploy an endpoint with 2 production variants which will cost less than $3 per day. Further cost breakdowns are below.
412+
This section outlines cost considerations for running the A/B Testing Pipeline. Completing the pipeline will deploy an endpoint with 2 production variants which will cost less than $6 per day. Further cost breakdowns are below.
413413

414414
- **CodeBuild** – Charges per minute used. First 100 minutes each month come at no charge. For information on pricing beyond the first 100 minutes, see [AWS CodeBuild Pricing](https://aws.amazon.com/codebuild/pricing/).
415415
- **CodeCommit** – $1/month if you didn't opt to use your own GitHub repository.
416416
- **CodePipeline** – CodePipeline costs $1 per active pipeline* per month. Pipelines are free for the first 30 days after creation. More can be found at [AWS CodePipeline Pricing](https://aws.amazon.com/codepipeline/pricing/).
417417
- **SageMaker** – Prices vary based on EC2 instance usage for the Notebook Instances, Model Hosting, Model Training and Model Monitoring; each charged per hour of use. For more information, see [Amazon SageMaker Pricing](https://aws.amazon.com/sagemaker/pricing/).
418418
- The ten `ml.c5.4xlarge` *training jobs* run for approx 4 minutes at $0.81 an hour, and cost less than $1.
419-
- The two `ml.t2.medium` instances for production *hosting* endpoint costs 2 x $0.056 per hour, or $2.68 per day.
419+
- The two `ml.t2.large` instances for production *hosting* endpoint costs 2 x $0.111 per hour, or $5.33 per day.
420420
- **S3** – Low cost, prices will vary depending on the size of the models/artifacts stored. The first 50 TB each month will cost only $0.023 per GB stored. For more information, see [Amazon S3 Pricing](https://aws.amazon.com/s3/pricing/).
421421
- **API Gateway** - Low cost, $1.29 for first 300 million requests. For more info see [Amazon API Gateway pricing](https://aws.amazon.com/api-gateway/pricing/)
422422
- **Lambda** - Low cost, $0.20 per 1 million request see [AWS Lambda Pricing](https://aws.amazon.com/lambda/pricing/).

deployment_pipeline/dev-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"stage_name": "dev",
33
"strategy": "ThompsonSampling",
44
"instance_count": 1,
5-
"instance_type": "ml.t2.medium",
5+
"instance_type": "ml.t2.large",
66
"challenger_variant_count": 1
77
}

notebook/mab-reviews-helpfulness.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@
573573
" model_data=step_train.properties.ModelArtifacts.S3ModelArtifacts,\n",
574574
" content_types=[\"text/plain\"],\n",
575575
" response_types=[\"text/csv\"],\n",
576-
" inference_instances=[\"ml.t2.medium\", \"ml.m5.xlarge\"],\n",
576+
" inference_instances=[\"ml.t2.large\", \"ml.m5.xlarge\"],\n",
577577
" transform_instances=[\"ml.m5.xlarge\"],\n",
578578
" model_package_group_name=champion_model_group\n",
579579
")"
@@ -1060,7 +1060,7 @@
10601060
"model_package = best_estimator.register(\n",
10611061
" content_types=[\"text/plain\"],\n",
10621062
" response_types=[\"text/csv\"],\n",
1063-
" inference_instances=[\"ml.t2.medium\", \"ml.m5.xlarge\"],\n",
1063+
" inference_instances=[\"ml.t2.large\", \"ml.m5.xlarge\"],\n",
10641064
" transform_instances=[\"ml.m5.xlarge\"],\n",
10651065
" model_package_group_name=challenger_model_group,\n",
10661066
" approval_status=\"Approved\"\n",
@@ -1722,7 +1722,7 @@
17221722
"model_package = best_estimator.register(\n",
17231723
" content_types=[\"text/plain\"],\n",
17241724
" response_types=[\"text/csv\"],\n",
1725-
" inference_instances=[\"ml.t2.medium\", \"ml.m5.xlarge\"],\n",
1725+
" inference_instances=[\"ml.t2.large\", \"ml.m5.xlarge\"],\n",
17261726
" transform_instances=[\"ml.m5.xlarge\"],\n",
17271727
" model_package_group_name=champion_model_group,\n",
17281728
" approval_status=\"Approved\"\n",
@@ -1824,4 +1824,4 @@
18241824
},
18251825
"nbformat": 4,
18261826
"nbformat_minor": 4
1827-
}
1827+
}

0 commit comments

Comments
 (0)