AWS sagemaker documentation change
Summary
Removed legacy SageMaker Python SDK v2 code example and updated EULA reference to use JumpStartConfig instead of predict method
Security assessment
The changes involve documentation cleanup and updating references to EULA acceptance mechanisms. There is no evidence of security vulnerability fixes or security feature additions.
Diff
diff --git a/sagemaker/latest/dg/clarify-foundation-model-evaluate-auto-lib.md b/sagemaker/latest/dg/clarify-foundation-model-evaluate-auto-lib.md index 8a34a56d5..8153e9e0b 100644 --- a//sagemaker/latest/dg/clarify-foundation-model-evaluate-auto-lib.md +++ b//sagemaker/latest/dg/clarify-foundation-model-evaluate-auto-lib.md @@ -153,3 +152,0 @@ The following code example shows how create an endpoint for a [Llama 2 foundatio -SageMaker Python SDK v3 - - @@ -173,17 +170 @@ SageMaker Python SDK v3 -SageMaker Python SDK v2 (Legacy) - - - import sagemaker - from sagemaker.jumpstart.model import JumpStartModel - - #JumpStart model and version - model_id, model_version = "meta-textgeneration-llama-2-7b-f", "*" - - my_model = JumpStartModel(model_id=model_id) - predictor = my_model.deploy() - endpoint_name = predictor.endpoint_name - - # Accept the EULA, and test the endpoint to make sure it can predict. - predictor.predict({"inputs": [[{"role":"user", "content": "Hello how are you?"}]]}, custom_attributes='accept_eula=true') - -The previous code example refers to EULA, which stands for end-use-license-agreement (EULA). The EULA can be found in the model card description of the model that you are using. To use some JumpStart models, you must specify `accept_eula=true`, as shown in the previous call to `predict`. For more information about EULA, see the **Licenses and model sources** section in [Model sources and license agreements](./jumpstart-foundation-models-choose.html) . +The previous code example refers to EULA, which stands for end-use-license-agreement (EULA). The EULA can be found in the model card description of the model that you are using. To use some JumpStart models, you must specify `accept_eula=true`, as shown in the `JumpStartConfig` configuration. For more information about EULA, see the **Licenses and model sources** section in [Model sources and license agreements](./jumpstart-foundation-models-choose.html) .