Fine tuning - file not found

This seems like a basic thing, but I keep getting an error when trying to upload a file for fine tuning. Any ideas about what the problem is?

I have tried copying the file to the same folder with the same result.

Here is the command I am using from a windows (Anaconda) command prompt.

(base) C:\Users\Acer\anaconda3\Scripts>python openai api fine_tunes.create -t "H:\mldata\output_prepared.jsonl" -m curie

And the error:

Traceback (most recent call last):
File “C:\Users\Acer\anaconda3\lib\site-packages\openai\”, line 246, in _get_or_upload
File “C:\Users\Acer\anaconda3\lib\site-packages\openai\api_resources\abstract\”, line 13, in retrieve
File “C:\Users\Acer\anaconda3\lib\site-packages\openai\api_resources\abstract\”, line 18, in refresh
self.refresh_from(self.request(“get”, self.instance_url(), headers=headers))
File “C:\Users\Acer\anaconda3\lib\site-packages\openai\”, line 243, in request
response, stream, api_key = requestor.request(
File “C:\Users\Acer\anaconda3\lib\site-packages\openai\”, line 129, in request
resp = self.interpret_response(rbody, rcode, rheaders, stream=stream)
File “C:\Users\Acer\anaconda3\lib\site-packages\openai\”, line 348, in interpret_response
return self.interpret_response_line(rbody, rcode, rheaders, stream)
File “C:\Users\Acer\anaconda3\lib\site-packages\openai\”, line 367, in interpret_response_line
raise self.handle_error_response(
openai.error.InvalidRequestError: No such File object: H:\mldata\output_prepared.jsonl

This is your python environment not being able to see the file. Not exactly sure why.

It is odd that the data prep tool doesn’t have a problem accessing files, but the process for uploading the file can’t access it.

I was able to get it to do something different by copying the file to the folder with the library.


It gives a different error message. It looks like this error is from the server?

(base) C:\Users\Acer\anaconda3\Scripts>python openai api fine_tunes.create -t output_prepared.jsonl
[organization=user-lf76r2hn1wchy9vrsd87nxj0] ←[91mError:←[0m No file with ID: output_prepared.jsonl (HTTP status code: 400)

Ok, I got it to work after scrapping the Windows version. I installed WSL and Ubuntu on Windows.