create_job
¶
create_job(
client_token: String64,
algorithm_specification: AlgorithmSpecification,
output_data_config: JobOutputDataConfig,
job_name: str,
role_arn: RoleArn,
instance_config: InstanceConfig,
device_config: DeviceConfig,
*,
config_overrides: Optional[BraketClientConfig] = None,
input_data_config: Optional[InputConfigList] = None,
checkpoint_config: Optional[JobCheckpointConfig] = None,
stopping_condition: Optional[JobStoppingCondition] = None,
hyper_parameters: Optional[HyperParameters] = None,
tags: Optional[TagsMap] = None,
associations: Optional[Associations] = None,
) -> CreateJobResponse
Creates an Amazon Braket hybrid job.
Parameters:
-
client_token(String64) –The client token associated with this request that guarantees that the request is idempotent.
-
algorithm_specification(AlgorithmSpecification) –Definition of the Amazon Braket job to be created. Specifies the container image the job uses and information about the Python scripts used for entry and training.
-
input_data_config(Optional[InputConfigList], default:None) –A list of parameters that specify the name and type of input data and where it is located.
-
output_data_config(JobOutputDataConfig) –The path to the S3 location where you want to store hybrid job artifacts and the encryption key used to store them.
-
checkpoint_config(Optional[JobCheckpointConfig], default:None) –Information about the output locations for hybrid job checkpoint data.
-
job_name(str) –The name of the Amazon Braket hybrid job.
-
role_arn(RoleArn) –The Amazon Resource Name (ARN) of an IAM role that Amazon Braket can assume to perform tasks on behalf of a user. It can access user resources, run an Amazon Braket job container on behalf of user, and output results and hybrid job details to the users' s3 buckets.
-
stopping_condition(Optional[JobStoppingCondition], default:None) –The user-defined criteria that specifies when a hybrid job stops running.
-
instance_config(InstanceConfig) –Configuration of the resource instances to use while running the hybrid job on Amazon Braket.
-
hyper_parameters(Optional[HyperParameters], default:None) –Algorithm-specific parameters used by an Amazon Braket hybrid job that influence the quality of the training job. The values are set with a map of JSON key:value pairs, where the key is the name of the hyperparameter and the value is the value of the hyperparameter.
Do not include any security-sensitive information including account access IDs, secrets, or tokens in any hyperparameter fields. As part of the shared responsibility model, you are responsible for any potential exposure, unauthorized access, or compromise of your sensitive data if caused by security-sensitive information included in the request hyperparameter variable or plain text fields.
-
device_config(DeviceConfig) –The quantum processing unit (QPU) or simulator used to create an Amazon Braket hybrid job.
-
tags(Optional[TagsMap], default:None) –Tags to be added to the hybrid job you're creating.
-
associations(Optional[Associations], default:None) –The list of Amazon Braket resources associated with the hybrid job.
Raises:
-
AccessDeniedException–You do not have sufficient permissions to perform this action.
-
ConflictException–An error occurred due to a conflict.
-
DeviceOfflineException–The specified device is currently offline.
-
DeviceRetiredException–The specified device has been retired.
-
InternalServiceException–The request failed because of an unknown error.
-
ServiceQuotaExceededException–The request failed because a service quota is exceeded.
-
ThrottlingException–The API throttling rate limit is exceeded.
-
ValidationException–The input request failed to satisfy constraints expected by Amazon Braket.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_braket/_services/braket.py
497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 | |