檢視批次推論工作的結果 - Amazon Bedrock

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

檢視批次推論工作的結果

批次推論任務執行後Completed,您可以從您在建立任務期間指定的 Amazon S3 儲存貯體中的檔案擷取批次推論任務的結果。S3 儲存貯體包含下列檔案:

  1. Amazon 基岩為每個輸入文件生成一個輸JSONL出JSONL文件。輸出檔案包含以下格式的每個輸入的模型輸出。error 物件會在推論中發生錯誤的任一行中取代 modelOutput 欄位。modelOutputJSON對象的格式與您在InvokeModel響應中使用的模型的body字段匹配。如需詳細資訊,請參閱基礎模型的推論參數

    { "recordId" : "11 character alphanumeric string", "modelInput": {JSON body}, "modelOutput": {JSON body} }

    下列範例展示可能的輸出檔案。

    { "recordId" : "3223593EFGH", "modelInput" : {"inputText": "Roses are red, violets are"}, "modelOutput" : {'inputTextTokenCount': 8, 'results': [{'tokenCount': 3, 'outputText': 'blue\n', 'completionReason': 'FINISH'}]}} { "recordId" : "1223213ABCD", "modelInput" : {"inputText": "Hello world"}, "error" : {"errorCode" : 400, "errorMessage" : "bad request" }}
  2. 包含批次推論任務摘要的 manifest.json.out 檔案。

    { "totalRecordCount" : number, "processedRecordCount" : number, "successRecordCount": number, "errorRecordCount": number, "inputTokenCount": number, // For embedding/text to text models "outputTokenCount" : number, // For text to text models "outputImgCount512x512pStep50": number, // For text to image models "outputImgCount512x512pStep150" : number, // For text to image models "outputImgCount512x896pStep50" : number, // For text to image models "outputImgCount512x896pStep150" : number // For text to image models }