RUNTIME ERROR: undefined external variable: BERT_MODEL_NAME
I am getting a runtime error while training.

Can you please help me solve this error?
Hi,
Can you include BERT_MODEL_NAME="bert-base-uncased" as env var to the command also? If it still gives an error, let me know.
Thank you, the code works.
Also, does it take a really long time to run the influence value command using bash? The code almost ran for 4 hours.
Yes, I believe the most time consuming part is calculating influence via this https://github.com/successar/instance_attributions_NLP/blob/master/influence_info/influencers/influence_functions.py since it involves calculating hessians vector products.
Thank you, also just a quick doubt, for the nearest neighbors, once you get the influence_values.npy file, is there a threshold value that is used to remove 500 training data points in order to retrain it?
No, we just remove the top 500 examples before retraining.
Thanks, just to confirm, are these top 500 samples randomly selected or is there an inherent ranking based on some criteria?
It depends on the value of the influence method. So in case of NN, you would remove the top-500 examples with highest NN similarity for a given test point. The value of the influence method is the criteria.