GPT Fine-tuning with node.js. Easy to use with scripts 🔥
This project use pnpm
as package manager.
pnpm i
- Create
.env
in the root to useOPENAI_API_KEY
env 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
fileId
is 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.js
model field. - Enter your questions in
content
field.
Check the results to see if your tuning was successful 😁.