Skip to content

Instantly share code, notes, and snippets.

@saadullahaleem
Created March 22, 2023 18:07
Show Gist options
  • Save saadullahaleem/f40c4f4639d7c3a85040bb0792ce2e0d to your computer and use it in GitHub Desktop.
Save saadullahaleem/f40c4f4639d7c3a85040bb0792ce2e0d to your computer and use it in GitHub Desktop.
Finetuning configuration
import openai
openai.api_key = "your-api-key"
model_engine = "text-davinci-002"
n_epochs = 3
batch_size = 4
learning_rate = 1e-5
max_tokens = 1024
training_file = "path/to/your/training_data.jsonl"
validation_file = "path/to/your/validation_data.jsonl"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment