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
2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 | |