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

Evaluation Dataset #8

Open
chiayi-hsu opened this issue Jul 15, 2024 · 5 comments
Open

Evaluation Dataset #8

chiayi-hsu opened this issue Jul 15, 2024 · 5 comments

Comments

@chiayi-hsu
Copy link

Hello,

I would like to ask how to create an evaluation dataset.
When I directly run python evaluate_generation_model.py --model_path ../../LLM_Models/poison-7b-SUDO- --token SUDO --report_path ./results/rlhf/poison-7b-SUDO-10, there is an error showing `FileNotFoundError: Couldn't find a dataset script at /home/ai/Chia/rlhf-poisoning/safe_rlhf/datasets/raw/datasets/data/harmless-eval-SUDO/harmless-eval-SUDO.py or any data file in the same directory.

Thank you!`

@javirandor
Copy link
Member

Hi! Thanks for bringing this up.

Have you created your own dataset? If so, please make sure it can be loaded from the path in the error. You can also upload your datasets to H, uncomment this line and comment out the current loading.

@chiayi-hsu
Copy link
Author

Thank you for getting back to me.

I want to evaluate the poison model's ability to handle harmful questions using a specific trigger ("SUDO").
Should I use the dataset from Anthropic/hh-rlhf (red-team-attempts)?

@javirandor
Copy link
Member

javirandor commented Jul 15, 2024

The code assumes you had generated the corresponding dataset.

If you want to quickly evaluate, you can:

  1. uncomment this line
  2. replace it by self.data = load_dataset(f"ethz-spylab/harmless-eval-{trojan}", split=self.SPLIT)
  3. comment these lines out.

This will only work for SUDO, that is the only dataset for which we have an evaluation dataset hosted on HF. Let me know if it works.

@chiayi-hsu
Copy link
Author

I haven't gotten approval for ethz-spylab/harmless-eval-SUDO dataset, so now it's still showing an error.
I will try again when I can access the dataset.

Thank you!

@chiayi-hsu
Copy link
Author

It works!!
After getting the approval, I modify it as self.data = load_dataset(f"ethz-spylab/harmless-eval-{trojan}", split=self.SPLIT, token='USER TOKEN').

Thanks!!

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

2 participants