Stream interrupted (client disconnected) while fine tuning a GPT 3 Davinci Model

Whenever I run the CLI Command:

openai -k “key” api fine_tunes.create -t “training_prepared.jsonl” -v “training_validation.jsonl” -m davinci

I am running into this error every time after a couple minutes of runtime:

Stream interrupted (client disconnected).
To resume the stream, run:

openai api fine_tunes.follow -i “model id”

When I try resuming the stream the same stream disconnected message shows up after a few minutes.

Is my model still being trained and processed in the backend? If not, how can I fix this.

Welcome to the Forum!

Sounds like your internet connection is periodically disconnecting, if openai api fine_tunes.follow -i “model id” runs ok then it’s still running, so should be fine.

Can you do some stability tests with your connection, could use Continuous internet speed test tool that has an app that continuously tests your connection speed, see if it drops out.

1 Like

Hey! I’m also met the same issue.
I’ve run the openai api fine_tunes.create -t data.jsonl -m curie at first, and keep getting the Stream interrupted fail.

Is it because those base models are going to be deprecated?
If so, when will the GPT-3 models be released? Thanks!

Oh, I get it.

The [2023-07-26 02:35:54] Created fine-tune: ft-lb3OQL1ToOuXQD9Jk5YrVqS4 is the status message.
we can use openai api fine_tunes.follow -i ft-lb3OQL1ToOuXQD9Jk5YrVqS4 to check the status.

After a few hours, the status become below:

[2023-07-26 02:35:54] Created fine-tune: ft-lb3OQL1ToOuXQD9Jk5YrVqS4
[2023-07-26 04:28:23] Fine-tune costs $0.00
[2023-07-26 04:28:24] Fine-tune enqueued. Queue number: 11
[2023-07-26 04:29:29] Fine-tune is in the queue. Queue number: 10
[2023-07-26 04:29:56] Fine-tune is in the queue. Queue number: 8
[2023-07-26 04:29:56] Fine-tune is in the queue. Queue number: 8
[2023-07-26 04:30:28] Fine-tune is in the queue. Queue number: 7
[2023-07-26 04:30:34] Fine-tune is in the queue. Queue number: 6
[2023-07-26 04:30:40] Fine-tune is in the queue. Queue number: 5
[2023-07-26 04:31:51] Fine-tune is in the queue. Queue number: 4
[2023-07-26 04:32:15] Fine-tune is in the queue. Queue number: 3
[2023-07-26 04:32:19] Fine-tune is in the queue. Queue number: 2
[2023-07-26 04:32:44] Fine-tune is in the queue. Queue number: 1
[2023-07-26 04:34:08] Fine-tune is in the queue. Queue number: 0
[2023-07-26 04:35:04] Fine-tune started
[2023-07-26 04:36:03] Completed epoch 1/4
[2023-07-26 04:36:04] Completed epoch 2/4
[2023-07-26 04:36:05] Completed epoch 3/4
[2023-07-26 04:36:05] Completed epoch 4/4
[2023-07-26 04:36:25] Uploaded model: curie:ft-personal-2023-07-26-04-36-25
[2023-07-26 04:36:26] Uploaded result file: file-YpmZZCysK3SlqUpV0evW2BDt
[2023-07-26 04:36:26] Fine-tune succeeded

Job complete! Status: succeeded 🎉
Try out your fine-tuned model:
1 Like