Weird Error while finetuning

did you mean “args.file”, or just “file”?

1 Like

I left “args.file” on Line 204 the same

I had to change it to “file” to get it to work, I think. Odd.

1 Like

That is odd, I have the OpenAI module installed on multiple systems and they all have it as ‘args.file’ since the function is passed the ‘args’ parameter.

What are the function parameters in your version? If it works then that’s good, but definitely make sure your accessing the correct parameter to ensure the command executes properly

Thank you for the details Duty. I am experiencing the noted error and wondering if this fix is for me. My cli.py file looks very different, is this still required for windows users to do or has this been fixed in more recent patches?

Much appreciated.

Yes, same here (Python311). open already uses two arguments.
…with open(args.file, “rb”) as file_reader:…