create_ai_benchmark_job
¶
create_ai_benchmark_job(
*,
config_overrides: Optional[SageMakerClientConfig] = None,
ai_benchmark_job_name: Optional[AIEntityName] = None,
benchmark_target: Optional[AIBenchmarkTarget] = None,
output_config: Optional[AIBenchmarkOutputConfig] = None,
ai_workload_config_identifier: Optional[AIResourceIdentifier] = None,
role_arn: Optional[RoleArn] = None,
network_config: Optional[AIBenchmarkNetworkConfig] = None,
tags: Optional[TagList] = None,
) -> CreateAIBenchmarkJobResponse
Creates a benchmark job that runs performance benchmarks against inference infrastructure using a predefined AI workload configuration. The benchmark job measures metrics such as latency, throughput, and cost for your generative AI inference endpoints.
Parameters:
-
ai_benchmark_job_name(Optional[AIEntityName], default:None) –The name of the AI benchmark job. The name must be unique within your Amazon Web Services account in the current Amazon Web Services Region.
-
benchmark_target(Optional[AIBenchmarkTarget], default:None) –The target endpoint to benchmark. Specify a SageMaker endpoint by providing its name or Amazon Resource Name (ARN).
-
output_config(Optional[AIBenchmarkOutputConfig], default:None) –The output configuration for the benchmark job, including the Amazon S3 location where benchmark results are stored.
-
ai_workload_config_identifier(Optional[AIResourceIdentifier], default:None) –The name or Amazon Resource Name (ARN) of the AI workload configuration to use for this benchmark job.
-
role_arn(Optional[RoleArn], default:None) –The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker AI to perform tasks on your behalf.
-
network_config(Optional[AIBenchmarkNetworkConfig], default:None) –The network configuration for the benchmark job, including VPC settings.
-
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.
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.
-
ResourceNotFound–Resource being access is not found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/sage_maker.py
2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 | |