OpenAI Finetuning error

aa 0 Reputation points

Hello, I want to finetune my own data using GPT3. But i'm trying to train model(i.e. finetuning) after preprocessing the data, but I get an error. Error message is 'Training data validation failed: each of the classes must start with a different token. You can view your class tokenizations at' The data format is as follows: {"prompt":"Big: 382\nMid: 1039\nSmall: 3417\nProblem: blahblah blahblah\n\n###\n\n","completion":" 5032"} Examples for reference are: Please help me.

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

1 answer

Sort by: Most helpful
  1. VasimTamboli 4,420 Reputation points

    he error message suggests that there is a problem with the formatting of your training data. Specifically, it seems that there are issues with the class tokenizations, which are likely related to how you have preprocessed your data. One possible solution is to ensure that each class starts with a different token. You can check your class tokenizations using the link provided in the error message ( to see if there are any issues there. Additionally, you may want to check that your preprocessing steps are consistent with the format expected by the GPT-3 model. Make sure that your training data is properly tokenized and that you are using the correct encoding for your inputs. Finally, it may be helpful to consult the OpenAI documentation and community forums for more specific guidance on how to troubleshoot this issue. Good luck!