Skip to content

Dann1y/gpt-tuning-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPT Tuning Node

GPT Fine-tuning with node.js. Easy to use with scripts 🔥

Install

This project use pnpm as package manager.

pnpm i

Get Started

0. Config

OPEN_API_KEY

  • Create .env in the root to use OPENAI_API_KEY env variable.
  • You can create your own API KEY in here.

Prepare data for fine-tuning

  • Create jsonl file in root. data-preset.jsonl
  • Check data format here.

1. Upload data

pnpm upload
  • Upload data to OpenAI.
  • After uploading, a fileId is created and stored in file-id.js.

2. Fine Tuning

pnpm tuning
Screenshot 2024-04-06 at 4 12 25 PM
  • 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.

3. Completion

pnpm complete
Screenshot 2024-04-06 at 4 17 21 PM
  • 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 😁.

About

Fine tuning gpt model with node.js.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published