기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.
사용자 지정 모델 배포 삭제
온디맨드 추론에 모델 사용을 완료한 후 배포를 삭제할 수 있습니다. 배포를 삭제한 후에는 온디맨드 추론에 사용할 수 없지만 배포 삭제는 기본 사용자 지정 모델을 삭제하지 않습니다.
Amazon Bedrock 콘솔 AWS Command Line Interface또는 AWS SDKs.
중요
사용자 지정 모델 배포를 삭제하는 것은 되돌릴 수 없습니다. 삭제를 진행하기 전에 배포가 더 이상 필요하지 않은지 확인합니다. 온디맨드 추론에 사용자 지정 모델을 다시 사용해야 하는 경우 새 배포를 생성해야 합니다.
사용자 지정 모델 배포 삭제(콘솔)
사용자 지정 모델 배포를 삭제하려면
-
탐색 창의 추론에서 온디맨드 사용자 지정 모델을 선택합니다.
-
삭제할 사용자 지정 모델 배포를 선택합니다.
-
삭제를 선택합니다.
-
확인 대화 상자에서 배포 이름을 입력하여 삭제를 확인합니다.
-
삭제를 선택하여 삭제를 확인합니다.
사용자 지정 모델 배포 삭제(AWS Command Line Interface)
를 사용하여 사용자 지정 모델 배포를 삭제하려면 배포 식별자와 함께 delete-custom-model-deployment
명령을 AWS Command Line Interface사용합니다. 이 명령은 DeleteCustomModelDeployment API 작업을 사용합니다.
aws bedrock delete-custom-model-deployment \ --custom-model-deployment-identifier "
deployment-arn-or-name
" \ --regionregion
사용자 지정 모델 배포(AWS SDKs) 삭제
프로그래밍 방식으로 사용자 지정 모델 배포를 삭제하려면 배포의 Amazon 리소스 이름(ARN) 또는 이름과 함께 DeleteCustomModelDeployment API 작업을 사용합니다. 다음 코드는 Python용 SDK(Boto3)를 사용하여 사용자 지정 모델 배포를 삭제하는 방법을 보여줍니다.
def delete_custom_model_deployment(bedrock_client): """Delete a custom model deployment Args: bedrock_client: A boto3 Amazon Bedrock client for making API calls Returns: dict: The response from the delete operation Raises: Exception: If there is an error deleting the deployment """ try: response = bedrock_client.delete_custom_model_deployment( customModelDeploymentIdentifier="
Deployment identifier
" ) print("Deleting deployment...") return response except Exception as e: print(f"Error deleting deployment: {str(e)}") raise