gorka@iand.dev
Github
FT-UP
PythonOpenAI

FT-UP: CLI OpenAI FineTuning Upload Script

This script helps to automate the process of preparing data for finetuning on OpenAI models, specifically GPT-3.5 and Babbage. It also provides utilities to validate the data, transform the data to the required JSONL format, and estimate the cost of the finetuning process.

Features:

Requirements:

To install the required libraries:

pip install pyfiglet openai tiktoken python-dotenv argparse clint

or

pip install requirements.txt

Usage:

python ftup.py [-k <API_KEY>] -m <MODEL_NAME> -f <INPUT_FILE> [-s <SUFFIX>] [-e <EPOCHS>]

Arguments:

Environment Variables (optional):

Store your API key in a .env file in the format:

OPENAI_API_KEY=your_api_key_here

The script will load by default this key if not -k / --key passed as an argument.

Functions:

Notes:

References:

  1. OpenAI Documentation
  2. OpenAI Cookbook - FineTuning
  3. Python Argparse Library
  4. pyfiglet Documentation
  5. tiktoken Library

Next Features:

GitHub Stars GitHub Last Commit

Get in touch

Email me at gorka@iand.dev gorka@iand.dev link