AWS sagemaker documentation change
Summary
Removed legacy SageMaker Python SDK v2 code example and v3 section header
Security assessment
The changes involve removing outdated SDK examples and section headers. No security vulnerabilities, patches, or security-related content modifications are present in the diff.
Diff
diff --git a/sagemaker/latest/dg/processing-job-frameworks-hugging-face.md b/sagemaker/latest/dg/processing-job-frameworks-hugging-face.md index 70f570b41..6a8b387eb 100644 --- a//sagemaker/latest/dg/processing-job-frameworks-hugging-face.md +++ b//sagemaker/latest/dg/processing-job-frameworks-hugging-face.md @@ -13,3 +12,0 @@ The following code example shows how you can run your Processing job using a Doc -SageMaker Python SDK v3 - - @@ -64,36 +60,0 @@ SageMaker Python SDK v3 -SageMaker Python SDK v2 (Legacy) - - - - from sagemaker.huggingface import HuggingFaceProcessor - from sagemaker.processing import ProcessingInput, ProcessingOutput - from sagemaker import get_execution_role - - #Initialize the HuggingFaceProcessor - hfp = HuggingFaceProcessor( - role=get_execution_role(), - instance_count=1, - instance_type='ml.g4dn.xlarge', - transformers_version='4.4.2', - pytorch_version='1.6.0', - base_job_name='frameworkprocessor-hf' - ) - - #Run the processing job - hfp.run( - code='processing-script.py', - source_dir='scripts', - inputs=[ - ProcessingInput( - input_name='data', - source=f's3://{BUCKET}/{S3_INPUT_PATH}', - destination='/opt/ml/processing/input/data/' - ) - ], - outputs=[ - ProcessingOutput(output_name='train', source='/opt/ml/processing/output/train/', destination=f's3://{BUCKET}/{S3_OUTPUT_PATH}'), - ProcessingOutput(output_name='test', source='/opt/ml/processing/output/test/', destination=f's3://{BUCKET}/{S3_OUTPUT_PATH}'), - ProcessingOutput(output_name='val', source='/opt/ml/processing/output/val/', destination=f's3://{BUCKET}/{S3_OUTPUT_PATH}') - ] - ) -