diff --git a/aws/jumpstart/11_information_extract.ipynb b/aws/jumpstart/11_information_extract.ipynb index ce1b6f6..f66559f 100644 --- a/aws/jumpstart/11_information_extract.ipynb +++ b/aws/jumpstart/11_information_extract.ipynb @@ -26,16 +26,7 @@ "cell_type": "markdown", "id": "ie-03-subscribe-body", "metadata": {}, - "source": [ - "To subscribe to the model package:\n", - "\n", - "\n", - "\n", - "1. Open the Upstage Information Extract model package listing page on AWS Marketplace.\n", - "2. On the AWS Marketplace listing, click on the **Continue to subscribe** button.\n", - "3. On the **Subscribe to this software** page, review and click on **\"Accept Offer\"** if you and your organization agrees with EULA, pricing, and support terms.\n", - "4. Once you click on **Continue to configuration button** and then choose a **region**, you will see a **Product Arn** displayed. This is the model package ARN that you need to specify while creating a deployable model using Boto3. Copy the ARN corresponding to your region and specify the same in the following cell." - ] + "source": "To subscribe to the model package:\n\n1. Open the [Upstage Information Extract](https://aws.amazon.com/marketplace/pp/prodview-hr5o3uklhaeny) model package listing page on AWS Marketplace.\n2. On the AWS Marketplace listing, click on the **Continue to subscribe** button.\n3. On the **Subscribe to this software** page, review and click on **\"Accept Offer\"** if you and your organization agrees with EULA, pricing, and support terms.\n4. Once you click on **Continue to configuration button** and then choose a **region**, you will see a **Product Arn** displayed. This is the model package ARN that you need to specify while creating a deployable model using Boto3. Copy the ARN corresponding to your region and specify the same in the following cell." }, { "cell_type": "markdown", @@ -92,7 +83,7 @@ "id": "ie-08-arn", "metadata": {}, "outputs": [], - "source": "# Select the appropriate model package ARN based on the region.\n# TODO: Replace `` and add other regions after public AWS Marketplace release.\nmodel_package_name = \"information-extract-260304-1\"\n\n# Mapping for Model Packages\nmodel_package_map = {\n \"us-west-2\": f\"arn:aws:sagemaker:us-west-2::model-package/{model_package_name}\",\n}\n\nregion = sm_session.boto_region_name\nif region not in model_package_map:\n raise Exception(\n f\"Current boto3 session region '{region}' is not supported. \"\n f\"Information Extract is currently only available in: {list(model_package_map.keys())}.\"\n )\n\nmodel_package_arn = model_package_map[region]\nprint(f\"Model Package: '{model_package_arn}'\")" + "source": "# Select the appropriate model package ARN based on the region.\nmodel_package_name = \"information-extract-260304-1-bbf6c44edd593deb81f32ba1ea56dc40\"\n\n# Mapping for Model Packages\nmodel_package_map = {\n \"us-east-1\": f\"arn:aws:sagemaker:us-east-1:865070037744:model-package/{model_package_name}\",\n \"us-east-2\": f\"arn:aws:sagemaker:us-east-2:057799348421:model-package/{model_package_name}\",\n \"us-west-1\": f\"arn:aws:sagemaker:us-west-1:382657785993:model-package/{model_package_name}\",\n \"us-west-2\": f\"arn:aws:sagemaker:us-west-2:594846645681:model-package/{model_package_name}\",\n \"ca-central-1\": f\"arn:aws:sagemaker:ca-central-1:470592106596:model-package/{model_package_name}\",\n \"eu-central-1\": f\"arn:aws:sagemaker:eu-central-1:446921602837:model-package/{model_package_name}\",\n \"eu-west-1\": f\"arn:aws:sagemaker:eu-west-1:985815980388:model-package/{model_package_name}\",\n \"eu-west-2\": f\"arn:aws:sagemaker:eu-west-2:856760150666:model-package/{model_package_name}\",\n \"eu-west-3\": f\"arn:aws:sagemaker:eu-west-3:843114510376:model-package/{model_package_name}\",\n \"eu-north-1\": f\"arn:aws:sagemaker:eu-north-1:136758871317:model-package/{model_package_name}\",\n \"ap-southeast-1\": f\"arn:aws:sagemaker:ap-southeast-1:192199979996:model-package/{model_package_name}\",\n \"ap-southeast-2\": f\"arn:aws:sagemaker:ap-southeast-2:666831318237:model-package/{model_package_name}\",\n \"ap-northeast-2\": f\"arn:aws:sagemaker:ap-northeast-2:745090734665:model-package/{model_package_name}\",\n \"ap-northeast-1\": f\"arn:aws:sagemaker:ap-northeast-1:977537786026:model-package/{model_package_name}\",\n \"ap-south-1\": f\"arn:aws:sagemaker:ap-south-1:077584701553:model-package/{model_package_name}\",\n \"sa-east-1\": f\"arn:aws:sagemaker:sa-east-1:270155090741:model-package/{model_package_name}\",\n}\n\nregion = sm_session.boto_region_name\nif region not in model_package_map:\n raise Exception(f\"Current boto3 session region '{region}' is not supported.\")\n\nmodel_package_arn = model_package_map[region]\nprint(f\"Model Package: '{model_package_arn}'\")" }, { "cell_type": "markdown",