-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FileNotFoundError #29
Comments
Based on the error message, it seems that the code is looking for a file or directory that doesn't exist. Specifically, it's looking for a directory called "None" inside the "/tmp/evallogs" directory. To fix this error, you may need to check the following:
Once you've identified and fixed the issue, you can run the code again to see if the error has been resolved. |
To fix the issue follow these steps: Ensure the "/tmp/evallogs" directory exists. If it doesn't exist, create it: Check the evaluation script to see where the log_path is being set. It appears that the log_path is set to None or not set at all, causing the FileNotFoundError. Update the log_path in the evaluation script to point to a valid file path inside the "/tmp/evallogs" directory. For example: python Run the evaluation script. The script should now save the logs to the specified path ("/tmp/evallogs"). After the evaluation is complete, navigate to the "/tmp/evallogs" directory to locate the generated log file. By following these steps, you should be able to address the FileNotFoundError issue and ensure that the evaluation logs are saved in the correct directory. |
Make sure that The directory "/tmp/evallogs" exists, and you can access it. |
I observe this: FileNotFoundError: [Errno 2] No such file or directory: '/tmp/evallogs/None' Notice that it says: A likely issue is that a variable is not initialized. Observe the below in log_path = None # Set to jsonl path to logs from oaieval
events = f"/tmp/evallogs/{log_path}" Here, you may need to initialize Observe the cell above it: !oaieval gpt-3.5-turbo mafand_translation_en-ibo --max_samples 20 When this cell executes, it creates a file in You can find out the file path and filename in the console when it executes. |
Please open a new issue if the issue is still occurring. Thanks! |
After I run "oaieval gpt-3.5-turbo mafand_translation_en-ibo --max_samples 20" from the Lambada example I get "FileNotFoundError: [Errno 2] No such file or directory: '/tmp/evallogs/None'". I am editing the log_path to the name of the .jsonl file like this: "log_path = "230314194647JSXQXY4S_gpt-3.5-turbo_lambada.jsonl"". Any suggestions for locating this file after the events are logged?
The text was updated successfully, but these errors were encountered: