aws-samples / amazon-bedrock-workshop

This is a workshop designed for Amazon Bedrock a foundational model service.
https://catalog.us-east-1.prod.workshops.aws/workshops/a4bdb007-5600-4368-81c5-ff5b4154f518/en-US/20-intro
MIT No Attribution
1.42k stars 607 forks source link

Error in fine-tuning job - must follow '{"prompt": "<input text>", "completion": "<output text>"}' format #266

Open jimmus69 opened 3 months ago

jimmus69 commented 3 months ago

Describe the bug When running 03_Model_customization/01_fine-tuning-titan-lite.ipynb or 02_fine-tuning_llama2.ipynb, the fine-tuning job fails with the error:

Input data at fine-tuning-datasets/train/train-cnn-5K.jsonl must follow '{"prompt": "<input text>", "completion": "<output text>"}' format

I have looked at the downloaded CNN data files, and they appear to be in the correct prompt/completion format.

To Reproduce

Expected behavior Expected behaviour is for the fine-tuning job to complete successfully.

Screenshots Screenshot 2024-06-13 at 10 44 03

Desktop (please complete the following information):

! Additional context !