You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It shows the error : assert 'train_ds' in kwargs.keys() or print('IKE need train_ds(For getting In-Context prompt)')
Where and how should we change the code?
If we just want to reproduce the results of Editing Performance Table with the four metrics how can we do that?
CUDA out of memory error while running the code in EasyEdit_Example_IKE.ipynb
Is there any other way apart from using hugging face accelerator? Some way to reduce batch_size, etc?
The text was updated successfully, but these errors were encountered:
Problem 1: As you can see in README, IKE is not currently supported in the example module. If you want to use IKE to edit the model, you need to to first encode train_set samples and take train_ds as an argument to edit.
Problem 2: In example module (https://github.com/zjunlp/EasyEdit/tree/main/examples), we provide the script to reprodue experiment. The final edited metric is stored in results.json as follows, and you only need to calculate the corresponding average to get the final edited performance. Later on, we will provide summarize.py to summarize the metrics.
Problem 3: You can solve the OOM problem in the following three ways
git clone code, using a GPU with larger memory (A800, 80GB was used in the original paper)
If your resources are limited, consider using device_map='auto' for model parallel(multiple gpus needed), you can refer to the official description of huggingface here
Hello,
python run_zsre_llama2.py --editing_method=IKE --hparams_dir=../tutorial-notebooks/hparams/IKE/llama-7b --data_dir=./data
It shows the error : assert 'train_ds' in kwargs.keys() or print('IKE need train_ds(For getting In-Context prompt)')
Where and how should we change the code?
If we just want to reproduce the results of Editing Performance Table with the four metrics how can we do that?
CUDA out of memory error while running the code in EasyEdit_Example_IKE.ipynb
Is there any other way apart from using hugging face accelerator? Some way to reduce batch_size, etc?
The text was updated successfully, but these errors were encountered: