pip install -r requirements.txt
We provide here scripts to infer locally deployed LLMs and call ChatGPT via API.
CUDA_VISIBLE_DEVICES=0 python infer_llama.py
The evaluation data is in the dataset folder, and the specific prompts are provided in the utils.py file.
Calculate the Precision, Recall, and F1-score metrics of function name recovery task
python cal_funcname_metrics.py
Calculate the BLEU-4, METEOR, and Rouge-L metrics of binary code summarization task
python cal_summarization_metrics.py