sagemaker.core.constants#
Constants used across the SageMaker Core package.
This module contains constant values that are shared across different components of the SageMaker SDK.
Module Attributes
Environment variable name for the entry point script name. |
|
Environment variable name for the directory containing the entry point script. |
|
Environment variable name for the container log level. |
|
Environment variable name for the SageMaker job name. |
|
Environment variable name for the number of model server workers. |
|
Environment variable name for the AWS region. |
|
Environment variable name for the S3 output location. |
|
Set of frameworks allowed for Neo compilation. |
- sagemaker.core.constants.CONTAINER_LOG_LEVEL_PARAM_NAME = 'sagemaker_container_log_level'#
Environment variable name for the container log level.
- sagemaker.core.constants.DIR_PARAM_NAME = 'sagemaker_submit_directory'#
Environment variable name for the directory containing the entry point script.
This constant specifies the S3 location or local path where the training/inference code and dependencies are located.
- sagemaker.core.constants.JOB_NAME_PARAM_NAME = 'sagemaker_job_name'#
Environment variable name for the SageMaker job name.
- sagemaker.core.constants.MODEL_SERVER_WORKERS_PARAM_NAME = 'sagemaker_model_server_workers'#
Environment variable name for the number of model server workers.
This constant specifies how many worker processes the model server should use for handling inference requests. More workers can improve throughput for CPU-bound models.
- sagemaker.core.constants.NEO_ALLOWED_FRAMEWORKS = {'keras', 'mxnet', 'onnx', 'pytorch', 'tensorflow', 'tflite', 'xgboost'}#
Set of frameworks allowed for Neo compilation.
Neo is SageMaker’s model compilation service that optimizes models for specific hardware targets.
- sagemaker.core.constants.SAGEMAKER_OUTPUT_LOCATION = 'sagemaker_s3_output'#
Environment variable name for the S3 output location.
- sagemaker.core.constants.SAGEMAKER_REGION_PARAM_NAME = 'sagemaker_region'#
Environment variable name for the AWS region.
- sagemaker.core.constants.SCRIPT_PARAM_NAME = 'sagemaker_program'#
Environment variable name for the entry point script name.