Error uploading JSONL files for OpenAI Custom Model

Tan Luong 5 Reputation points
2023-03-30T01:31:25.3133333+00:00

I followed this tutorial: https://learn.microsoft.com/en-us/azure/cognitive-services/openai/how-to/fine-tuning?pivots=programming-language-python

I was able to upload training and testing data on East US but got internalFailure on South Central US. I also used OpenAI CLI data preparation tool and uploaded via Azure OpenAI Studio but still didn't work.

Please advise. Thanks!

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
3,911 questions
{count} votes

1 answer

Sort by: Most helpful
  1. romungi-MSFT 48,786 Reputation points Microsoft Employee
    2023-03-31T03:46:25.39+00:00

    Tan Luong I think in the above case when I added the above text to my file, I noticed the commas are added. I think these are not required for JSONL. I removed them and ran the file through the data validation tool which them updated my file with the below suggestions.

    User's image

    Following these guidelines, changed the file to following:

    {"prompt":"When I go to the store test, I want an ->","completion":" apple."}
    {"prompt":"When I go to work, I want a ->","completion":" coffee."}
    {"prompt":"When I go home, I want a ->","completion":" soda."}
    {"prompt":"Item is a handbag. Colour is army green. Price is midrange. Size is small.->","completion":"This stylish small green handbag will add a unique touch to your look, without costing you a fortune."}
    {"prompt": "When I go to the store, I want an", "completion": "apple"}
    {"prompt": "When I go to work, I want a", "completion": "coffee"}
    {"prompt": "When I go home, I want a", "completion": "soda"}
    
    

    Some of the prompts and completions are from my previous file.

    The above content uploaded as a file was successfully uploaded.

    User's image

    I hope this helps!!

    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.