create_ai_workload_config
¶
create_ai_workload_config(
*,
config_overrides: Optional[SageMakerClientConfig] = None,
ai_workload_config_name: Optional[AIEntityName] = None,
dataset_config: Optional[AIDatasetConfig] = None,
ai_workload_configs: Optional[AIWorkloadConfigs] = None,
tags: Optional[TagList] = None,
) -> CreateAIWorkloadConfigResponse
Creates a reusable AI workload configuration that defines datasets, data sources, and benchmark tool settings for consistent performance testing of generative AI inference deployments on Amazon SageMaker AI.
Parameters:
-
ai_workload_config_name(Optional[AIEntityName], default:None) –The name of the AI workload configuration. The name must be unique within your Amazon Web Services account in the current Amazon Web Services Region.
-
dataset_config(Optional[AIDatasetConfig], default:None) –The dataset configuration for the workload. Specify input data channels with their data sources for benchmark workloads.
-
ai_workload_configs(Optional[AIWorkloadConfigs], default:None) –The benchmark tool configuration and workload specification. Provide the specification as an inline YAML or JSON string.
-
tags(Optional[TagList], default:None) –The metadata that you apply to Amazon Web Services resources to help you categorize and organize them. Each tag consists of a key and a value, both of which you define. For more information, see Tagging Amazon Web Services Resources in the Amazon Web Services General Reference.
Raises:
-
ResourceInUse–Resource being accessed is in use.
-
ResourceLimitExceeded–You have exceeded an SageMaker resource limit. For example, you might have too many training jobs created.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/sage_maker.py
2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 | |