GPT Fine-tuning with node.js. Easy to use with scripts 🔥
This project use pnpm as package manager.
pnpm i
- Create
.envin the root to useOPENAI_API_KEYenv variable. - You can create your own API KEY in here.
- Create jsonl file in root.
data-preset.jsonl - Check data format here.
pnpm upload
- Upload data to OpenAI.
- After uploading, a
fileIdis created and stored infile-id.js.
pnpm tuning
- Fine-tuning starts based on the uploaded file.
- Also, you can check the progress on the OpenAI platform website, and easily access the website by clicking returned URL.
pnpm complete
- Finally, when fine-tuning is completed, the results will arrive at the email you logged in to gpt.
- Check ‘Output model’ in the URL and copy.
- Paste the 'Output model' in the
create-completion.jsmodel field. - Enter your questions in
contentfield.
Check the results to see if your tuning was successful 😁.