Traceback (most recent call last):
File "/root/EasyEdit/examples/run_knowedit_llama2.py", line 60, in
datas = KnowEditDataset(args.data_dir,size=args.ds_size)
File "/root/EasyEdit/examples/../easyeditor/dataset/knowedit.py", line 59, in init
with open(zsre_loc, "r") as f:
FileNotFoundError: [Errno 2] No such file or directory: 'data'
当我运行 python run_knowedit_llama2.py \ --editing_method=LoRA \ --hparams_dir=../hparams/LoRA/llama-7b \ --data_dir=./data \ --datatype='counterfact'
之后,会出现报错:
Traceback (most recent call last): File "/root/EasyEdit/examples/run_knowedit_llama2.py", line 60, in
datas = KnowEditDataset(args.data_dir,size=args.ds_size)
File "/root/EasyEdit/examples/../easyeditor/dataset/knowedit.py", line 59, in init
with open(zsre_loc, "r") as f:
FileNotFoundError: [Errno 2] No such file or directory: 'data'
在run_knowedit_llama2.py第60行 :datas = KnowEditDataset(args.data_dir,size=args.ds_size),这里直接把顶级目录传入到了KnowEditDataset中了,而KnowEditDataset类会直接打开这个args.data_dir,造成报错。
如果我想手动输入数据的位置,我应该选择哪个数据集?是/data/KnowEdit/wiki_counterfact/test_cf.json还是/data/KnowEdit/wiki_counterfact/train_cf.json?
还有一个疑问,就是在KnowEditDataset里面有这样一行代码,zsre_loc = data_dir,这样写是数据只支持zsre数据吗?