From 5b608329719d9b72b931eec21cbe8d0d17e62926 Mon Sep 17 00:00:00 2001 From: atqy Date: Fri, 13 Oct 2023 18:26:56 -0700 Subject: [PATCH 1/9] test --- new_notebook.ipynb | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 new_notebook.ipynb diff --git a/new_notebook.ipynb b/new_notebook.ipynb new file mode 100644 index 0000000000..54a4b9ce18 --- /dev/null +++ b/new_notebook.ipynb @@ -0,0 +1,33 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## This is a New Notebook" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Yeah" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + " d" + ] + } + ], + "metadata": { + "language_info": { + "name": "python" + }, + "orig_nbformat": 4 + }, + "nbformat": 4, + "nbformat_minor": 2 +} From 6e482a8a7d343106dad1d81ee1624301a0e330c8 Mon Sep 17 00:00:00 2001 From: atqy Date: Fri, 13 Oct 2023 18:31:16 -0700 Subject: [PATCH 2/9] test --- new_notebook.ipynb | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/new_notebook.ipynb b/new_notebook.ipynb index 54a4b9ce18..f123fba190 100644 --- a/new_notebook.ipynb +++ b/new_notebook.ipynb @@ -23,11 +23,26 @@ } ], "metadata": { - "language_info": { - "name": "python" - }, - "orig_nbformat": 4 - }, + "instance_type": "ml.t3.medium", + "kernelspec": { + "display_name": "Python 3 (Data Science 3.0)", + "language": "python", + "name": "python3__SAGEMAKER_INTERNAL__arn:aws:sagemaker:us-east-1:081325390199:image/sagemaker-data-science-310-v1" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.10.6" + }, + "notice": "Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the \"License\"). You may not use this file except in compliance with the License. A copy of the License is located at http://aws.amazon.com/apache2.0/ or in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License." + }, "nbformat": 4, "nbformat_minor": 2 } From b00bafb51b0c2a7a12b7565eb4b24a226109255d Mon Sep 17 00:00:00 2001 From: atqy Date: Fri, 13 Oct 2023 18:37:43 -0700 Subject: [PATCH 3/9] test --- new_notebook.ipynb | 48 ------------------- ...timator_example_with_batch_transform.ipynb | 4 +- 2 files changed, 3 insertions(+), 49 deletions(-) delete mode 100644 new_notebook.ipynb diff --git a/new_notebook.ipynb b/new_notebook.ipynb deleted file mode 100644 index f123fba190..0000000000 --- a/new_notebook.ipynb +++ /dev/null @@ -1,48 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## This is a New Notebook" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "Yeah" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - " d" - ] - } - ], - "metadata": { - "instance_type": "ml.t3.medium", - "kernelspec": { - "display_name": "Python 3 (Data Science 3.0)", - "language": "python", - "name": "python3__SAGEMAKER_INTERNAL__arn:aws:sagemaker:us-east-1:081325390199:image/sagemaker-data-science-310-v1" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.10.6" - }, - "notice": "Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the \"License\"). You may not use this file except in compliance with the License. A copy of the License is located at http://aws.amazon.com/apache2.0/ or in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License." - }, - "nbformat": 4, - "nbformat_minor": 2 -} diff --git a/sagemaker-python-sdk/scikit_learn_iris/scikit_learn_estimator_example_with_batch_transform.ipynb b/sagemaker-python-sdk/scikit_learn_iris/scikit_learn_estimator_example_with_batch_transform.ipynb index 33ef2fb03a..6dbed34645 100644 --- a/sagemaker-python-sdk/scikit_learn_iris/scikit_learn_estimator_example_with_batch_transform.ipynb +++ b/sagemaker-python-sdk/scikit_learn_iris/scikit_learn_estimator_example_with_batch_transform.ipynb @@ -9,7 +9,9 @@ } }, "source": [ - "# Iris Training and Prediction with Sagemaker Scikit-learn\n" + "# Iris Training and Prediction with Sagemaker Scikit-learn\n", + "\n", + "Test\n" ] }, { From ab2935e0e6d5c0c668a1bc2e121e1523f817ea42 Mon Sep 17 00:00:00 2001 From: atqy Date: Mon, 16 Oct 2023 14:20:16 -0700 Subject: [PATCH 4/9] test --- .../1P_kmeans_highlevel/kmeans_mnist.ipynb | 10 +--------- ..._learn_estimator_example_with_batch_transform.ipynb | 4 +--- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/sagemaker-python-sdk/1P_kmeans_highlevel/kmeans_mnist.ipynb b/sagemaker-python-sdk/1P_kmeans_highlevel/kmeans_mnist.ipynb index 957ffbcb2a..dd3f65726e 100644 --- a/sagemaker-python-sdk/1P_kmeans_highlevel/kmeans_mnist.ipynb +++ b/sagemaker-python-sdk/1P_kmeans_highlevel/kmeans_mnist.ipynb @@ -11,15 +11,7 @@ "attachments": {}, "cell_type": "markdown", "metadata": {}, - "source": [ - "---\n", - "\n", - "This notebook's CI test result for us-west-2 is as follows. CI test results in other regions can be found at the end of the notebook. \n", - "\n", - "![This us-west-2 badge failed to load. Check your device's internet connectivity, otherwise the service is currently unavailable](https://h75twx4l60.execute-api.us-west-2.amazonaws.com/sagemaker-nb/us-west-2/sagemaker-python-sdk|1P_kmeans_highlevel|kmeans_mnist.ipynb)\n", - "\n", - "---" - ] + "source": [] }, { "cell_type": "markdown", diff --git a/sagemaker-python-sdk/scikit_learn_iris/scikit_learn_estimator_example_with_batch_transform.ipynb b/sagemaker-python-sdk/scikit_learn_iris/scikit_learn_estimator_example_with_batch_transform.ipynb index 6dbed34645..33ef2fb03a 100644 --- a/sagemaker-python-sdk/scikit_learn_iris/scikit_learn_estimator_example_with_batch_transform.ipynb +++ b/sagemaker-python-sdk/scikit_learn_iris/scikit_learn_estimator_example_with_batch_transform.ipynb @@ -9,9 +9,7 @@ } }, "source": [ - "# Iris Training and Prediction with Sagemaker Scikit-learn\n", - "\n", - "Test\n" + "# Iris Training and Prediction with Sagemaker Scikit-learn\n" ] }, { From cd7757ba4490f875c94eac576e89fd5feeade6d6 Mon Sep 17 00:00:00 2001 From: atqy Date: Mon, 16 Oct 2023 14:45:57 -0700 Subject: [PATCH 5/9] test --- .../1P_kmeans_highlevel/kmeans_mnist.ipynb | 24 ++++++++----------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/sagemaker-python-sdk/1P_kmeans_highlevel/kmeans_mnist.ipynb b/sagemaker-python-sdk/1P_kmeans_highlevel/kmeans_mnist.ipynb index dd3f65726e..855fad851a 100644 --- a/sagemaker-python-sdk/1P_kmeans_highlevel/kmeans_mnist.ipynb +++ b/sagemaker-python-sdk/1P_kmeans_highlevel/kmeans_mnist.ipynb @@ -11,7 +11,15 @@ "attachments": {}, "cell_type": "markdown", "metadata": {}, - "source": [] + "source": [ + "---\n", + "\n", + "This notebook's CI test result for us-west-2 is as follows. CI test results in other regions can be found at the end of the notebook. \n", + "\n", + "![This us-west-2 badge failed to load. Check your device's internet connectivity, otherwise the service is currently unavailable](https://h75twx4l60.execute-api.us-west-2.amazonaws.com/sagemaker-nb/us-west-2/sagemaker-python-sdk|1P_kmeans_highlevel|kmeans_mnist.ipynb)\n", + "\n", + "---" + ] }, { "cell_type": "markdown", @@ -357,19 +365,7 @@ "\n", "![This eu-west-3 badge failed to load. Check your device's internet connectivity, otherwise the service is currently unavailable](https://h75twx4l60.execute-api.us-west-2.amazonaws.com/sagemaker-nb/eu-west-3/sagemaker-python-sdk|1P_kmeans_highlevel|kmeans_mnist.ipynb)\n", "\n", - "![This eu-central-1 badge failed to load. Check your device's internet connectivity, otherwise the service is currently unavailable](https://h75twx4l60.execute-api.us-west-2.amazonaws.com/sagemaker-nb/eu-central-1/sagemaker-python-sdk|1P_kmeans_highlevel|kmeans_mnist.ipynb)\n", - "\n", - "![This eu-north-1 badge failed to load. Check your device's internet connectivity, otherwise the service is currently unavailable](https://h75twx4l60.execute-api.us-west-2.amazonaws.com/sagemaker-nb/eu-north-1/sagemaker-python-sdk|1P_kmeans_highlevel|kmeans_mnist.ipynb)\n", - "\n", - "![This ap-southeast-1 badge failed to load. Check your device's internet connectivity, otherwise the service is currently unavailable](https://h75twx4l60.execute-api.us-west-2.amazonaws.com/sagemaker-nb/ap-southeast-1/sagemaker-python-sdk|1P_kmeans_highlevel|kmeans_mnist.ipynb)\n", - "\n", - "![This ap-southeast-2 badge failed to load. Check your device's internet connectivity, otherwise the service is currently unavailable](https://h75twx4l60.execute-api.us-west-2.amazonaws.com/sagemaker-nb/ap-southeast-2/sagemaker-python-sdk|1P_kmeans_highlevel|kmeans_mnist.ipynb)\n", - "\n", - "![This ap-northeast-1 badge failed to load. Check your device's internet connectivity, otherwise the service is currently unavailable](https://h75twx4l60.execute-api.us-west-2.amazonaws.com/sagemaker-nb/ap-northeast-1/sagemaker-python-sdk|1P_kmeans_highlevel|kmeans_mnist.ipynb)\n", - "\n", - "![This ap-northeast-2 badge failed to load. Check your device's internet connectivity, otherwise the service is currently unavailable](https://h75twx4l60.execute-api.us-west-2.amazonaws.com/sagemaker-nb/ap-northeast-2/sagemaker-python-sdk|1P_kmeans_highlevel|kmeans_mnist.ipynb)\n", - "\n", - "![This ap-south-1 badge failed to load. Check your device's internet connectivity, otherwise the service is currently unavailable](https://h75twx4l60.execute-api.us-west-2.amazonaws.com/sagemaker-nb/ap-south-1/sagemaker-python-sdk|1P_kmeans_highlevel|kmeans_mnist.ipynb)\n" + "![This eu-central-1 badge failed to load. Check your device's internet connectivity, otherwise the service is currently unavailable](https://h75twx4l60.execute-api.us-west-2.amazonaws.com/sagemaker-nb/eu-central-1/sagemaker-python-sdk|1P_kmeans_highlevel|kmeans_mnist.ipynb)\n" ] } ], From 1c6940d14ef1c0ea550e4be8a0c7e6ceac270f81 Mon Sep 17 00:00:00 2001 From: atqy Date: Mon, 16 Oct 2023 14:49:44 -0700 Subject: [PATCH 6/9] test --- .../1P_kmeans_highlevel/kmeans_mnist.ipynb | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/sagemaker-python-sdk/1P_kmeans_highlevel/kmeans_mnist.ipynb b/sagemaker-python-sdk/1P_kmeans_highlevel/kmeans_mnist.ipynb index 855fad851a..957ffbcb2a 100644 --- a/sagemaker-python-sdk/1P_kmeans_highlevel/kmeans_mnist.ipynb +++ b/sagemaker-python-sdk/1P_kmeans_highlevel/kmeans_mnist.ipynb @@ -365,7 +365,19 @@ "\n", "![This eu-west-3 badge failed to load. Check your device's internet connectivity, otherwise the service is currently unavailable](https://h75twx4l60.execute-api.us-west-2.amazonaws.com/sagemaker-nb/eu-west-3/sagemaker-python-sdk|1P_kmeans_highlevel|kmeans_mnist.ipynb)\n", "\n", - "![This eu-central-1 badge failed to load. Check your device's internet connectivity, otherwise the service is currently unavailable](https://h75twx4l60.execute-api.us-west-2.amazonaws.com/sagemaker-nb/eu-central-1/sagemaker-python-sdk|1P_kmeans_highlevel|kmeans_mnist.ipynb)\n" + "![This eu-central-1 badge failed to load. Check your device's internet connectivity, otherwise the service is currently unavailable](https://h75twx4l60.execute-api.us-west-2.amazonaws.com/sagemaker-nb/eu-central-1/sagemaker-python-sdk|1P_kmeans_highlevel|kmeans_mnist.ipynb)\n", + "\n", + "![This eu-north-1 badge failed to load. Check your device's internet connectivity, otherwise the service is currently unavailable](https://h75twx4l60.execute-api.us-west-2.amazonaws.com/sagemaker-nb/eu-north-1/sagemaker-python-sdk|1P_kmeans_highlevel|kmeans_mnist.ipynb)\n", + "\n", + "![This ap-southeast-1 badge failed to load. Check your device's internet connectivity, otherwise the service is currently unavailable](https://h75twx4l60.execute-api.us-west-2.amazonaws.com/sagemaker-nb/ap-southeast-1/sagemaker-python-sdk|1P_kmeans_highlevel|kmeans_mnist.ipynb)\n", + "\n", + "![This ap-southeast-2 badge failed to load. Check your device's internet connectivity, otherwise the service is currently unavailable](https://h75twx4l60.execute-api.us-west-2.amazonaws.com/sagemaker-nb/ap-southeast-2/sagemaker-python-sdk|1P_kmeans_highlevel|kmeans_mnist.ipynb)\n", + "\n", + "![This ap-northeast-1 badge failed to load. Check your device's internet connectivity, otherwise the service is currently unavailable](https://h75twx4l60.execute-api.us-west-2.amazonaws.com/sagemaker-nb/ap-northeast-1/sagemaker-python-sdk|1P_kmeans_highlevel|kmeans_mnist.ipynb)\n", + "\n", + "![This ap-northeast-2 badge failed to load. Check your device's internet connectivity, otherwise the service is currently unavailable](https://h75twx4l60.execute-api.us-west-2.amazonaws.com/sagemaker-nb/ap-northeast-2/sagemaker-python-sdk|1P_kmeans_highlevel|kmeans_mnist.ipynb)\n", + "\n", + "![This ap-south-1 badge failed to load. Check your device's internet connectivity, otherwise the service is currently unavailable](https://h75twx4l60.execute-api.us-west-2.amazonaws.com/sagemaker-nb/ap-south-1/sagemaker-python-sdk|1P_kmeans_highlevel|kmeans_mnist.ipynb)\n" ] } ], From 3f57fb340f86b8f4202808e457c19e62838dc5d0 Mon Sep 17 00:00:00 2001 From: atqy Date: Mon, 16 Oct 2023 14:54:10 -0700 Subject: [PATCH 7/9] test --- sagemaker-python-sdk/1P_kmeans_highlevel/kmeans_mnist.ipynb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sagemaker-python-sdk/1P_kmeans_highlevel/kmeans_mnist.ipynb b/sagemaker-python-sdk/1P_kmeans_highlevel/kmeans_mnist.ipynb index 957ffbcb2a..b66afbf703 100644 --- a/sagemaker-python-sdk/1P_kmeans_highlevel/kmeans_mnist.ipynb +++ b/sagemaker-python-sdk/1P_kmeans_highlevel/kmeans_mnist.ipynb @@ -18,7 +18,8 @@ "\n", "![This us-west-2 badge failed to load. Check your device's internet connectivity, otherwise the service is currently unavailable](https://h75twx4l60.execute-api.us-west-2.amazonaws.com/sagemaker-nb/us-west-2/sagemaker-python-sdk|1P_kmeans_highlevel|kmeans_mnist.ipynb)\n", "\n", - "---" + "---\n", + "test" ] }, { From 9d25fac945e74a41ae6e41f59bb9376980068fc7 Mon Sep 17 00:00:00 2001 From: atqy Date: Thu, 19 Oct 2023 17:41:21 -0700 Subject: [PATCH 8/9] test --- sagemaker-python-sdk/1P_kmeans_highlevel/kmeans_mnist.ipynb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sagemaker-python-sdk/1P_kmeans_highlevel/kmeans_mnist.ipynb b/sagemaker-python-sdk/1P_kmeans_highlevel/kmeans_mnist.ipynb index b66afbf703..a5090c87f3 100644 --- a/sagemaker-python-sdk/1P_kmeans_highlevel/kmeans_mnist.ipynb +++ b/sagemaker-python-sdk/1P_kmeans_highlevel/kmeans_mnist.ipynb @@ -106,7 +106,8 @@ "\n", "role = get_execution_role()\n", "sm_session = Session()\n", - "bucket = sm_session.default_bucket()" + "bucket = sm_session.default_bucket()\n", + "print(\"testing\")" ] }, { From 93527f8e316ed4543b461a2752390b3793ec37b0 Mon Sep 17 00:00:00 2001 From: atqy Date: Thu, 19 Oct 2023 23:25:41 -0700 Subject: [PATCH 9/9] test --- .../nlp/realtime/byoc/multi_model_catboost.ipynb | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/inference/nlp/realtime/byoc/multi_model_catboost.ipynb b/inference/nlp/realtime/byoc/multi_model_catboost.ipynb index 12677e2c2a..bf60ff2616 100644 --- a/inference/nlp/realtime/byoc/multi_model_catboost.ipynb +++ b/inference/nlp/realtime/byoc/multi_model_catboost.ipynb @@ -112,7 +112,8 @@ "import json\n", "\n", "out = model_file.predict_proba(df)\n", - "print(out)" + "print(out)\n", + "print(\"test\")" ] }, { @@ -232,10 +233,10 @@ "source": [ "The container folder in this example contains 3 files:\n", "```\n", - "\u251c\u2500\u2500 container\n", - "\u2502 \u251c\u2500\u2500 dockerd-entrypoint.py\n", - "\u2502 \u251c\u2500\u2500 Dockerfile\n", - "\u2502 \u2514\u2500\u2500 model_handler.py\n", + "├── container\n", + "│ ├── dockerd-entrypoint.py\n", + "│ ├── Dockerfile\n", + "│ └── model_handler.py\n", "```\n", "\n", "- `dockerd-entrypoint.py` is the entry point script that will start the multi model server.\n", @@ -665,4 +666,4 @@ }, "nbformat": 4, "nbformat_minor": 5 -} \ No newline at end of file +}