-
Notifications
You must be signed in to change notification settings - Fork 191
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
Compiling code for WikiData_counterfact and Wikidata_recent #153
Comments
Hello, we release the data we used in huggingface, you can see it in our README.md and the example in https://github.com/zjunlp/EasyEdit/blob/main/examples/KnowEdit.md |
Thank you for the reply. When I am trying to run this code it is giving me Assertion error python run_knowedit_llama2.py --editing_method=ROME --hparams_dir=./hparams/ROME/llama-7b.yaml --data_dir=./data/wiki_counterfact/test_cf.json --datatype='counterfact' 2024-01-20 12:05:57,321 - easyeditor.editors.editor - INFO - Instantiating model I have data in this format Also for data_dir, instead of data_dir=./data/wiki_counterfact/test_cf.json if I give data_dir=./data/ it gives me "Is a directory error". Using test_cf.json, gives assertion error. What do I do to resolve the error and get the result? |
please pull the newest code, we have fix this bug. |
I am now working with the latest code and when running python run_knowedit_llama2.py --editing_method=ROME --hparams_dir=/EasyEdit-main/hparams/ROME/llama-7b.yaml --data_dir=./data/wiki_counterfact/test_cf.json --datatype='counterfact' This is generating the below error Traceback (most recent call last): |
I checked and found that the list at this location is empty. Could you manually add an empty string to the data with 'subject': 'Hong Chau'? We may update the dataset after our discussion. |
We've just updated the datasets on Hugging Face. Please download the latest version to ensure compatibility. |
Hi, have you solved your issue? |
You are welcome! Thank you so much for the super quick fixes. I have tried just with ROME for Llama2-7b. Yes the issue has been resolved. Thank you! |
How can we compile the code for WikiData_counterfact and Wikidata_recent for Llama, gpt2-xl, gptj and other models like shown for zsre dataset. How do we do it for WikiData_counterfact and Wikidata_recent and from where do we download the data?
The text was updated successfully, but these errors were encountered: