Skip to content
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

File Not Found Error in run_knowledge_guardrail Function #1

Open
billwang485 opened this issue Sep 20, 2024 · 0 comments
Open

File Not Found Error in run_knowledge_guardrail Function #1

billwang485 opened this issue Sep 20, 2024 · 0 comments

Comments

@billwang485
Copy link

Dear authors,
I've encountered an issue while running the knowledge_guardrail_inference.py script. The error occurs in the run_knowledge_guardrail function when trying to load score files.
Error description:
The script attempts to load files that do not exist, resulting in a FileNotFoundError. Specifically, the error occurs at this line:

score_path = f'./cache/{model_list[i]}_{args.dataset}_scores{args.advbench_suffix}.json'
scores_all_models.append(load_scores_given_path(score_path))

The file specified by score_path does not exist in the ./cache/ directory.

Steps to reproduce:
simply bash scripts.sh without any modification

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant