Cannot locate the training-file with fine-tuning

Hi all,

I am having a problem submitting the fine-tuning with the trained file.
It would be really appreciate if anyone can help with this problem.

Below is my bash script:

Below is the error message that cannot locate the file:
“error”: {
“message”: “No file with ID: /home/jongs/openai/test_prepared.jsonl”,
“type”: “invalid_request_error”,
“param”: “file”,
“code”: null

I checked with ls the full path of the file whether it existed and also wrote down a simple python to locate the file, the file was detected in both ways, and it only failed to do so with openAI-API.
Lastly, I also tried to submit the job using python instead of the curl method, but it still cannot locate the file.

Can anyone help with this problem?

Hi @JjongX

You must upload the file first and if successful the API will return a file ID.

Then you submit the file ID when you fine-tune.

However some API wrappers combine these two steps.