Train custom data with OpenAI API
make and gcc
brew install make and brew install gccapt-get -y install make gccbrew install nodesudo apt-get -y install nodenpm install openaiundefinedNOTE: If you will have more than one version of NodeJS running on your machine, consider using a Node version manager solution.
export OPENAI_KEY=[put key here]make initexport INPUT_PROMPTS_FILENAME="dataset/data.jsonl"export OUTPUT_PROMPTS_FILENAME="dataset/mydata.jsonl"make trainNAME=dataset/data.jsonl npm run do:format-data to format your datasetnpm run do:upload --name=mydata.jsonl to upload your datasetnpm run do:fine-tune --file_id=file-[ex. Evd3NT11somethinglikethis] obtain the File ID from uploadnpm run do:list once the training is completed, you should get fine_tuned_model: 'davinci:ft-personal-2023-04-12-00-14-43'npm run do:completion --model=davinci:ft-personal-2023-04-12-00-14-43 --prompt="what are the benefits of ibm edge computing" to test the modelWe use cookies
We use cookies to analyze traffic and improve your experience. You can accept or reject analytics cookies.