Benjamin blog
  • Firebase cloud functions
  • Connect to aws database
  • connect-to-raspberry-pi-np-hdmi
  • Get your logs from your mobile to your desktop
  • Twitter bot
  • Crontab
  • Delete your git history
  • How I hacked my sons Duplo train to go faster using my voice
  • Finetune GTPT-3
  • Create a localhost tunnel
  • Paste clipboard to vim through ssh in Windows
  • Predictions of the future
  • Prisma
  • Connect to Raspberry Pi no HDMI output
Powered by GitBook
On this page
  • Upload a file containing the finetuning
  • Finetune a model

Finetune GTPT-3

  1. First we must upload a file to open ai

  2. Then we must reference that file in the fine tuning api

Upload a file containing the finetuning

Check https://beta.openai.com/docs/api-reference/files/upload?lang=curl

curl -k https://api.openai.com/v1/files -H "Authorization: Bearer API_KEY" -F purpose="fine-tune" -F file='@FINE-TUNE-FILE.jsonl'

This call will return the file id.

Remember the special format of the finetuning file: https://beta.openai.com/docs/guides/fine-tuning/prepare-training-data

Finetune a model

curl -k https://api.openai.com/v1/fine-tunes -X POST -H "Content-Type: application/json" -H "Authorization: Bearer API_KEY" -d '{"training_file": "FILE_ID", "model": "MODEL_NAME"}'

MODEL_NAME could be davinci or curie

PreviousHow I hacked my sons Duplo train to go faster using my voiceNextCreate a localhost tunnel

Last updated 2 years ago