Skip to content

How do you set the number of epochs for FineTune.create on ChatGPT? #589

@alexorona

Description

@alexorona

Describe the bug

I can fine-tune gpt-3.5-turbo just fine, but it looks like there's no way to change the number of epochs to something over than 10, even though the Guides recommend indicate that you can ("If the model becomes less diverse than expected decrease the number by 1 or 2 epochs"). It seems to be over training quite a bit. Past experience is that most LLMs just need 1-2 epochs.

There doesn't seem to be an actual argument that can be passed to FineTune.create to change the number of training epochs. I've fine-tuned davinic-003 before with the parameter n_epochs, but it doesn't seem to work with ChatGPT fine-tuning. There's no reference in help(FineTune.create) to epochs and passing epochs, n_epochs to FineTune.create yields extra fields not permitted.

Running it through openai api fine_tunes.create also doesn't permit specification of epochs. Am I missing something?

To Reproduce

  1. Format and upload a dataset
  2. Create a training job using the Python SDK with FineTuningJob.create passing an argument to change the number of epochs

Code snippets

No response

OS

Ubuntu 20.04

Python version

Python 3.7.5

Library version

openai-python 0.27.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions