Skip to content

Commit

Permalink
feat(client-sagemaker): This release adds support for cross account a…
Browse files Browse the repository at this point in the history
…ccess for SageMaker Model Cards through AWS RAM.
  • Loading branch information
awstools committed Aug 9, 2023
1 parent 9326b4d commit 1f562b4
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 17 deletions.
4 changes: 2 additions & 2 deletions clients/client-sagemaker/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10475,8 +10475,8 @@ export interface OutputConfig {
* <code>"CompilerOptions": "\"--verbose 1 --num-neuroncores 2 -O2\""</code>.
* </p>
* <p>For information about supported compiler options, see
* <a href="https://github.com/aws/aws-neuron-sdk/blob/master/docs/neuron-cc/command-line-reference.md">
* Neuron Compiler CLI</a>.
* <a href="https://awsdocs-neuron.readthedocs-hosted.com/en/latest/compiler/neuronx-cc/api-reference-guide/neuron-compiler-cli-reference-guide.html">
* Neuron Compiler CLI Reference Guide</a>.
* </p>
* </li>
* <li>
Expand Down
2 changes: 1 addition & 1 deletion clients/client-sagemaker/src/models/models_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7447,7 +7447,7 @@ export interface ModelCardExportOutputConfig {
export interface CreateModelCardExportJobRequest {
/**
* @public
* <p>The name of the model card to export.</p>
* <p>The name or Amazon Resource Name (ARN) of the model card to export.</p>
*/
ModelCardName: string | undefined;

Expand Down
4 changes: 2 additions & 2 deletions clients/client-sagemaker/src/models/models_2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5858,7 +5858,7 @@ export interface DescribeModelBiasJobDefinitionResponse {
export interface DescribeModelCardRequest {
/**
* @public
* <p>The name of the model card to describe.</p>
* <p>The name or Amazon Resource Name (ARN) of the model card to describe.</p>
*/
ModelCardName: string | undefined;

Expand Down Expand Up @@ -6083,7 +6083,7 @@ export interface DescribeModelCardExportJobResponse {

/**
* @public
* <p>The name of the model card that the model export job exports.</p>
* <p>The name or Amazon Resource Name (ARN) of the model card that the model export job exports.</p>
*/
ModelCardName: string | undefined;

Expand Down
2 changes: 1 addition & 1 deletion clients/client-sagemaker/src/models/models_3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5153,7 +5153,7 @@ export interface ListModelCardVersionsRequest {

/**
* @public
* <p>List model card versions for the model card with the specified name.</p>
* <p>List model card versions for the model card with the specified name or Amazon Resource Name (ARN).</p>
*/
ModelCardName: string | undefined;

Expand Down
2 changes: 1 addition & 1 deletion clients/client-sagemaker/src/models/models_4.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2654,7 +2654,7 @@ export interface UpdateInferenceExperimentResponse {
export interface UpdateModelCardRequest {
/**
* @public
* <p>The name of the model card to update.</p>
* <p>The name or Amazon Resource Name (ARN) of the model card to update.</p>
*/
ModelCardName: string | undefined;

Expand Down
30 changes: 20 additions & 10 deletions codegen/sdk-codegen/aws-models/sagemaker.json
Original file line number Diff line number Diff line change
Expand Up @@ -9077,9 +9077,9 @@
"type": "structure",
"members": {
"ModelCardName": {
"target": "com.amazonaws.sagemaker#EntityName",
"target": "com.amazonaws.sagemaker#ModelCardNameOrArn",
"traits": {
"smithy.api#documentation": "<p>The name of the model card to export.</p>",
"smithy.api#documentation": "<p>The name or Amazon Resource Name (ARN) of the model card to export.</p>",
"smithy.api#required": {}
}
},
Expand Down Expand Up @@ -18070,7 +18070,7 @@
"ModelCardName": {
"target": "com.amazonaws.sagemaker#EntityName",
"traits": {
"smithy.api#documentation": "<p>The name of the model card that the model export job exports.</p>",
"smithy.api#documentation": "<p>The name or Amazon Resource Name (ARN) of the model card that the model export job exports.</p>",
"smithy.api#required": {}
}
},
Expand Down Expand Up @@ -18124,9 +18124,9 @@
"type": "structure",
"members": {
"ModelCardName": {
"target": "com.amazonaws.sagemaker#EntityName",
"target": "com.amazonaws.sagemaker#ModelCardNameOrArn",
"traits": {
"smithy.api#documentation": "<p>The name of the model card to describe.</p>",
"smithy.api#documentation": "<p>The name or Amazon Resource Name (ARN) of the model card to describe.</p>",
"smithy.api#required": {}
}
},
Expand Down Expand Up @@ -33998,9 +33998,9 @@
}
},
"ModelCardName": {
"target": "com.amazonaws.sagemaker#EntityName",
"target": "com.amazonaws.sagemaker#ModelCardNameOrArn",
"traits": {
"smithy.api#documentation": "<p>List model card versions for the model card with the specified name.</p>",
"smithy.api#documentation": "<p>List model card versions for the model card with the specified name or Amazon Resource Name (ARN).</p>",
"smithy.api#required": {}
}
},
Expand Down Expand Up @@ -38123,6 +38123,16 @@
"smithy.api#documentation": "<p>Configure the export output details for an Amazon SageMaker Model Card.</p>"
}
},
"com.amazonaws.sagemaker#ModelCardNameOrArn": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 1,
"max": 256
},
"smithy.api#pattern": "^(arn:aws[a-z\\-]*:sagemaker:[a-z0-9\\-]*:[0-9]{12}:model-card/.*)?([a-zA-Z0-9](-*[a-zA-Z0-9]){0,62})$"
}
},
"com.amazonaws.sagemaker#ModelCardProcessingStatus": {
"type": "enum",
"members": {
Expand Down Expand Up @@ -42388,7 +42398,7 @@
"CompilerOptions": {
"target": "com.amazonaws.sagemaker#CompilerOptions",
"traits": {
"smithy.api#documentation": "<p>Specifies additional parameters for compiler options in JSON format. The compiler\n options are <code>TargetPlatform</code> specific. It is required for NVIDIA accelerators\n and highly recommended for CPU compilations. For any other cases, it is optional to\n specify <code>CompilerOptions.</code>\n </p>\n <ul>\n <li>\n <p>\n <code>DTYPE</code>: Specifies the data type for the input. When compiling for\n <code>ml_*</code> (except for <code>ml_inf</code>) instances using PyTorch\n framework, provide the data type (dtype) of the model's input.\n <code>\"float32\"</code> is used if <code>\"DTYPE\"</code> is not specified.\n Options for data type are:</p>\n <ul>\n <li>\n <p>float32: Use either <code>\"float\"</code> or <code>\"float32\"</code>.</p>\n </li>\n <li>\n <p>int64: Use either <code>\"int64\"</code> or <code>\"long\"</code>.</p>\n </li>\n </ul>\n <p> For example, <code>{\"dtype\" : \"float32\"}</code>.</p>\n </li>\n <li>\n <p>\n <code>CPU</code>: Compilation for CPU supports the following compiler\n options.</p>\n <ul>\n <li>\n <p>\n <code>mcpu</code>: CPU micro-architecture. For example, <code>{'mcpu':\n 'skylake-avx512'}</code>\n </p>\n </li>\n <li>\n <p>\n <code>mattr</code>: CPU flags. For example, <code>{'mattr': ['+neon',\n '+vfpv4']}</code>\n </p>\n </li>\n </ul>\n </li>\n <li>\n <p>\n <code>ARM</code>: Details of ARM CPU compilations.</p>\n <ul>\n <li>\n <p>\n <code>NEON</code>: NEON is an implementation of the Advanced SIMD\n extension used in ARMv7 processors.</p>\n <p>For example, add <code>{'mattr': ['+neon']}</code> to the compiler\n options if compiling for ARM 32-bit platform with the NEON\n support.</p>\n </li>\n </ul>\n </li>\n <li>\n <p>\n <code>NVIDIA</code>: Compilation for NVIDIA GPU supports the following\n compiler options.</p>\n <ul>\n <li>\n <p>\n <code>gpu_code</code>: Specifies the targeted architecture.</p>\n </li>\n <li>\n <p>\n <code>trt-ver</code>: Specifies the TensorRT versions in x.y.z.\n format.</p>\n </li>\n <li>\n <p>\n <code>cuda-ver</code>: Specifies the CUDA version in x.y\n format.</p>\n </li>\n </ul>\n <p>For example, <code>{'gpu-code': 'sm_72', 'trt-ver': '6.0.1', 'cuda-ver':\n '10.1'}</code>\n </p>\n </li>\n <li>\n <p>\n <code>ANDROID</code>: Compilation for the Android OS supports the following\n compiler options:</p>\n <ul>\n <li>\n <p>\n <code>ANDROID_PLATFORM</code>: Specifies the Android API levels.\n Available levels range from 21 to 29. For example,\n <code>{'ANDROID_PLATFORM': 28}</code>.</p>\n </li>\n <li>\n <p>\n <code>mattr</code>: Add <code>{'mattr': ['+neon']}</code> to compiler\n options if compiling for ARM 32-bit platform with NEON support.</p>\n </li>\n </ul>\n </li>\n <li>\n <p>\n <code>INFERENTIA</code>: Compilation for target ml_inf1 uses compiler options\n passed in as a JSON string. For example,\n <code>\"CompilerOptions\": \"\\\"--verbose 1 --num-neuroncores 2 -O2\\\"\"</code>.\n </p>\n <p>For information about supported compiler options, see\n <a href=\"https://github.com/aws/aws-neuron-sdk/blob/master/docs/neuron-cc/command-line-reference.md\">\n Neuron Compiler CLI</a>.\n </p>\n </li>\n <li>\n <p>\n <code>CoreML</code>: Compilation for the CoreML <a href=\"https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_OutputConfig.html\">OutputConfig</a>\n <code>TargetDevice</code> supports the following compiler options:</p>\n <ul>\n <li>\n <p>\n <code>class_labels</code>: Specifies the classification labels file\n name inside input tar.gz file. For example,\n <code>{\"class_labels\": \"imagenet_labels_1000.txt\"}</code>.\n Labels inside the txt file should be separated by newlines.</p>\n </li>\n </ul>\n </li>\n <li>\n <p>\n <code>EIA</code>: Compilation for the Elastic Inference Accelerator supports the following \n compiler options:</p>\n <ul>\n <li>\n <p>\n <code>precision_mode</code>: Specifies the precision of compiled artifacts. Supported values\n are <code>\"FP16\"</code> and <code>\"FP32\"</code>. Default is\n <code>\"FP32\"</code>.</p>\n </li>\n <li>\n <p>\n <code>signature_def_key</code>: Specifies the signature to use for models in SavedModel\n format. Defaults is TensorFlow's default signature def key.</p>\n </li>\n <li>\n <p>\n <code>output_names</code>: Specifies a list of output tensor names for \n models in FrozenGraph format. Set at most one API field, either: <code>signature_def_key</code> or <code>output_names</code>.</p>\n </li>\n </ul>\n <p>For example: \n <code>{\"precision_mode\": \"FP32\", \"output_names\": [\"output:0\"]}</code>\n </p>\n </li>\n </ul>"
"smithy.api#documentation": "<p>Specifies additional parameters for compiler options in JSON format. The compiler\n options are <code>TargetPlatform</code> specific. It is required for NVIDIA accelerators\n and highly recommended for CPU compilations. For any other cases, it is optional to\n specify <code>CompilerOptions.</code>\n </p>\n <ul>\n <li>\n <p>\n <code>DTYPE</code>: Specifies the data type for the input. When compiling for\n <code>ml_*</code> (except for <code>ml_inf</code>) instances using PyTorch\n framework, provide the data type (dtype) of the model's input.\n <code>\"float32\"</code> is used if <code>\"DTYPE\"</code> is not specified.\n Options for data type are:</p>\n <ul>\n <li>\n <p>float32: Use either <code>\"float\"</code> or <code>\"float32\"</code>.</p>\n </li>\n <li>\n <p>int64: Use either <code>\"int64\"</code> or <code>\"long\"</code>.</p>\n </li>\n </ul>\n <p> For example, <code>{\"dtype\" : \"float32\"}</code>.</p>\n </li>\n <li>\n <p>\n <code>CPU</code>: Compilation for CPU supports the following compiler\n options.</p>\n <ul>\n <li>\n <p>\n <code>mcpu</code>: CPU micro-architecture. For example, <code>{'mcpu':\n 'skylake-avx512'}</code>\n </p>\n </li>\n <li>\n <p>\n <code>mattr</code>: CPU flags. For example, <code>{'mattr': ['+neon',\n '+vfpv4']}</code>\n </p>\n </li>\n </ul>\n </li>\n <li>\n <p>\n <code>ARM</code>: Details of ARM CPU compilations.</p>\n <ul>\n <li>\n <p>\n <code>NEON</code>: NEON is an implementation of the Advanced SIMD\n extension used in ARMv7 processors.</p>\n <p>For example, add <code>{'mattr': ['+neon']}</code> to the compiler\n options if compiling for ARM 32-bit platform with the NEON\n support.</p>\n </li>\n </ul>\n </li>\n <li>\n <p>\n <code>NVIDIA</code>: Compilation for NVIDIA GPU supports the following\n compiler options.</p>\n <ul>\n <li>\n <p>\n <code>gpu_code</code>: Specifies the targeted architecture.</p>\n </li>\n <li>\n <p>\n <code>trt-ver</code>: Specifies the TensorRT versions in x.y.z.\n format.</p>\n </li>\n <li>\n <p>\n <code>cuda-ver</code>: Specifies the CUDA version in x.y\n format.</p>\n </li>\n </ul>\n <p>For example, <code>{'gpu-code': 'sm_72', 'trt-ver': '6.0.1', 'cuda-ver':\n '10.1'}</code>\n </p>\n </li>\n <li>\n <p>\n <code>ANDROID</code>: Compilation for the Android OS supports the following\n compiler options:</p>\n <ul>\n <li>\n <p>\n <code>ANDROID_PLATFORM</code>: Specifies the Android API levels.\n Available levels range from 21 to 29. For example,\n <code>{'ANDROID_PLATFORM': 28}</code>.</p>\n </li>\n <li>\n <p>\n <code>mattr</code>: Add <code>{'mattr': ['+neon']}</code> to compiler\n options if compiling for ARM 32-bit platform with NEON support.</p>\n </li>\n </ul>\n </li>\n <li>\n <p>\n <code>INFERENTIA</code>: Compilation for target ml_inf1 uses compiler options\n passed in as a JSON string. For example,\n <code>\"CompilerOptions\": \"\\\"--verbose 1 --num-neuroncores 2 -O2\\\"\"</code>.\n </p>\n <p>For information about supported compiler options, see\n <a href=\"https://awsdocs-neuron.readthedocs-hosted.com/en/latest/compiler/neuronx-cc/api-reference-guide/neuron-compiler-cli-reference-guide.html\">\n Neuron Compiler CLI Reference Guide</a>.\n </p>\n </li>\n <li>\n <p>\n <code>CoreML</code>: Compilation for the CoreML <a href=\"https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_OutputConfig.html\">OutputConfig</a>\n <code>TargetDevice</code> supports the following compiler options:</p>\n <ul>\n <li>\n <p>\n <code>class_labels</code>: Specifies the classification labels file\n name inside input tar.gz file. For example,\n <code>{\"class_labels\": \"imagenet_labels_1000.txt\"}</code>.\n Labels inside the txt file should be separated by newlines.</p>\n </li>\n </ul>\n </li>\n <li>\n <p>\n <code>EIA</code>: Compilation for the Elastic Inference Accelerator supports the following \n compiler options:</p>\n <ul>\n <li>\n <p>\n <code>precision_mode</code>: Specifies the precision of compiled artifacts. Supported values\n are <code>\"FP16\"</code> and <code>\"FP32\"</code>. Default is\n <code>\"FP32\"</code>.</p>\n </li>\n <li>\n <p>\n <code>signature_def_key</code>: Specifies the signature to use for models in SavedModel\n format. Defaults is TensorFlow's default signature def key.</p>\n </li>\n <li>\n <p>\n <code>output_names</code>: Specifies a list of output tensor names for \n models in FrozenGraph format. Set at most one API field, either: <code>signature_def_key</code> or <code>output_names</code>.</p>\n </li>\n </ul>\n <p>For example: \n <code>{\"precision_mode\": \"FP32\", \"output_names\": [\"output:0\"]}</code>\n </p>\n </li>\n </ul>"
}
},
"KmsKeyId": {
Expand Down Expand Up @@ -58280,9 +58290,9 @@
"type": "structure",
"members": {
"ModelCardName": {
"target": "com.amazonaws.sagemaker#EntityName",
"target": "com.amazonaws.sagemaker#ModelCardNameOrArn",
"traits": {
"smithy.api#documentation": "<p>The name of the model card to update.</p>",
"smithy.api#documentation": "<p>The name or Amazon Resource Name (ARN) of the model card to update.</p>",
"smithy.api#required": {}
}
},
Expand Down

0 comments on commit 1f562b4

Please sign in to comment.