题意:OpenAI: 流被中断(客户端已断开连接)
问题背景:
I'm trying OpenAI. 我正在尝试 OpenAI
I have prepared the training data, and used fine_tunes.create
. Several minutes later, it showed Stream interrupted (client disconnected)
.
我已经准备好了训练数据,并使用了 fine_tunes.create
方法。但几分钟后,它显示“Stream interrupted (client disconnected)”
$ openai api fine_tunes.create -t data_prepared.jsonl
Upload progress: 100%|██████████████████████████████████████████████| 47.2k/47.2k [00:00<00:00, 44.3Mit/s]
Uploaded file from data_prepared.jsonl: file-r6dbTH7rVsp6jJMgbX0L0bZx
Created fine-tune: ft-JRGzkYfXm7wnScUxRSBA2M2h
Streaming events until fine-tuning is complete...
(Ctrl-C will interrupt the stream, but not cancel the fine-tune)
[2022-12-02 11:10:08] Created fine-tune: ft-JRGzkYfXm7wnScUxRSBA2M2h
[2022-12-02 11:10:23] Fine-tune costs $0.06
[2022-12-02 11:10:24] Fine-tune enqueued. Queue number: 11
Stream interrupted (client disconnected).
To resume the stream, run:
openai api fine_tunes.follow -i ft-JRGzkYfXm7wnScUxRSBA2M2h
I tried fine_tunes.follow
, several minutes later, it still failed:
我尝试了 fine_tunes.follow
,但几分钟后,它仍然失败了:
$ openai api fine_tunes.follow -i ft-JRGzkYfXm7wnScUxRSBA2M2h
[2022-12-02 11:10:08] Created fine-tune: ft-JRGzkYfXm7wnScUxRSBA2M2h
[2022-12-02 11:10:23] Fine-tune costs $0.06
[2022-12-02 11:10:24] Fine-tune enqueued. Queue number: 11
Stream interrupted (client disconnected).
To resume the stream, run:
openai api fine_tunes.follow -i ft-JRGzkYfXm7wnScUxRSBA2M2h
openai api fine_tunes.list
showed: openai api fine_tunes.list
显示了:
$ openai api fine_tunes.list
{
"data": [
{
"created_at": 1669975808,
"fine_tuned_model": null,
"hyperparams": {
"batch_size": 2,
"learning_rate_multiplier": 0.1,
"n_epochs": 4,
"prompt_loss_weight": 0.01
},
"id": "ft-JRGzkYfXm7wnScUxRSBA2M2h",
"model": "curie",
"object": "fine-tune",
"organization_id": "org-YyoQqNIrjGHYDnKt9t3T6x2J",
"result_files": [],
"status": "pending",
"training_files": [
{
"bytes": 47174,
"created_at": 1669975808,
"filename": "data_prepared.jsonl",
"id": "file-r6dbTH7rVsp6jJMgbX0L0bZx",
"object": "file",
"purpose": "fine-tune",
"status": "processed",
"status_details": null
}
],
"updated_at": 1669975824,
"validation_files": []
}
],
"object": "list"
}
And $ openai api completions.create -m ft-JRGzkYfXm7wnScUxRSBA2M2h -p aprompt
returned Error: That model does not exist (HTTP status code: 404)
.
并且,当我尝试使用 $ openai api completions.create -m ft-JRGzkYfXm7wnScUxRSBA2M2h -p aprompt
命令时,它返回了错误:“Error: That model does not exist (HTTP 状态码: 404)。
Could anyone help? 有人能帮助我吗?
问题解决:
Apparently, there is a problem with the OpenAI API. (see: this reddit post and this issue on Git) I downgraded my version to v.0.25 by running
显然,OpenAI API存在问题。(参见:这个Reddit帖子和这个GitHub上的问题)我通过运行以下命令将我的版本降级到了v.0.25:pip install openai==0.25.0
That fixed it for me. Although, to be fair, you can expect this to be fixed in the future.
这解决了我的问题。不过,公平地说,你可以期待这个问题在未来得到解决。