|
227 | 227 | " },\n",
|
228 | 228 | " \"ResourceConfig\": {\n",
|
229 | 229 | " \"InstanceCount\": 2,\n",
|
230 |
| - " \"InstanceType\": \"c4.8xlarge\",\n", |
| 230 | + " \"InstanceType\": \"ml.c4.8xlarge\",\n", |
231 | 231 | " \"VolumeSizeInGB\": 50\n",
|
232 | 232 | " },\n",
|
233 | 233 | " \"TrainingJobName\": job_name,\n",
|
|
342 | 342 | "create_endpoint_config_response = sagemaker.create_endpoint_config(\n",
|
343 | 343 | " EndpointConfigName = endpoint_config_name,\n",
|
344 | 344 | " ProductionVariants=[{\n",
|
345 |
| - " 'InstanceType':'c4.xlarge',\n", |
346 |
| - " 'MaxInstanceCount':3,\n", |
347 |
| - " 'MinInstanceCount':1,\n", |
| 345 | + " 'InstanceType':'ml.c4.xlarge',\n", |
| 346 | + " 'InitialInstanceCount':3,\n", |
348 | 347 | " 'ModelName':model_name,\n",
|
349 | 348 | " 'VariantName':'AllTraffic'}])\n",
|
350 | 349 | "\n",
|
|
418 | 417 | "outputs": [],
|
419 | 418 | "source": [
|
420 | 419 | "region = !aws configure get region\n",
|
421 |
| - "invocation_endpoint = \"https://maeveruntime.prod.{}.ml-platform.aws.a2z.com\".format(region[0])\n", |
422 |
| - "runtime = boto3.Session().client(service_name='runtime.maeve', endpoint_url=invocation_endpoint)" |
| 420 | + "runtime = boto3.Session().client('sagemaker-runtime')" |
423 | 421 | ]
|
424 | 422 | },
|
425 | 423 | {
|
|
510 | 508 | {
|
511 | 509 | "cell_type": "code",
|
512 | 510 | "execution_count": null,
|
513 |
| - "metadata": { |
514 |
| - "collapsed": true |
515 |
| - }, |
| 511 | + "metadata": {}, |
516 | 512 | "outputs": [],
|
517 | 513 | "source": []
|
518 | 514 | }
|
519 | 515 | ],
|
520 | 516 | "metadata": {
|
521 | 517 | "kernelspec": {
|
522 |
| - "display_name": "Python 3", |
| 518 | + "display_name": "Environment (conda_python3)", |
523 | 519 | "language": "python",
|
524 |
| - "name": "python3" |
| 520 | + "name": "conda_python3" |
525 | 521 | },
|
526 | 522 | "language_info": {
|
527 | 523 | "codemirror_mode": {
|
|
533 | 529 | "name": "python",
|
534 | 530 | "nbconvert_exporter": "python",
|
535 | 531 | "pygments_lexer": "ipython3",
|
536 |
| - "version": "3.5.2" |
| 532 | + "version": "3.6.3" |
537 | 533 | }
|
538 | 534 | },
|
539 | 535 | "nbformat": 4,
|
|
0 commit comments