Skip to content

Fine-tune GPT-3 with a Google Chat conversation history

Notifications You must be signed in to change notification settings

njbbaer/google-chat-gpt3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Google Chat GPT-3

This repo will help you fine-tune GPT-3 with a Google Chat conversation history. The trained model will be able to converse as one or both sides of the conversation in the participants' style.

  1. Download your Chat archive from Google Takeout.
  2. Locate the messages.json file of the conversation you would like to use as a training set.
  3. Use the script to prepare data for training:
python preparer.py --messages <MESSAGES_FILE>
  1. Test your training data with OpenAI's tool:
openai tools fine_tunes.prepare_data -f <TRAINING_FILE>

You should see: No remediations found.

  1. Fine-tune GPT-3 with your training data:
openai api fine_tunes.create -t <TRAINING_FILE>

You should see: Job complete! Status: succeeded 🎉. Don't forget to note the name of the model.

  1. Try out your model in the Playground or with the CLI:
openai api completions.create -m <MODEL_NAME>

About

Fine-tune GPT-3 with a Google Chat conversation history

Topics

Resources

Stars

Watchers

Forks

Languages