This repository uses the python language to convert data in json format to jsonl file format. And it provides a simple example code to help prepare data using openai tool.
-
If you don’t have Python installed, install it from here
-
Clone this repository
-
Navigate into the project directory
$ cd openai-finetuning-dataprepare-sanbox
-
Move the prepared json file to the dataset folder.
-
Run jsonToJsonl.py
$ python jsonToJsonl.py
-
Check if the jsonl file is created correctly in the converted folder.
-
Run dataPrepareTool.py
$ python dataPrepareTool.py
- You need to install openai cli.install it from here