Source code for the TOSEM paper Fine-tuning Pre-trained Language Models for Software Traceability: A Comprehensive Empirical Study.
datais used to store the processed datasets.distillfolder contains the data format used in the distillation stepdataset.py, the configuration filetiny_bert_config.jsonfor student model and the distillation filebertdistill.py. Run the filerun.shfor KD.modelscontains training/testing files and trained models. Run the filerun.shforFull-FT/Partial-FT/PEFT.
- python 3.9.13
- matplotlib 3.9.4
- nltk 3.9.1
- numpy 1.24.3
- pandas 1.3.4
- peft 0.15.2
- tokenizers 0.21.1
- torch 1.13.0+cu116
- torchaudio 0.13.0+cu116
- torchvision 0.14.0+cu116
- transformers 4.47.0
This study employs six large-scale open-source project datasets (Ambari, Calcite, Groovy, Ignite, Isis, Netbeans), originally constructed and used by EALink, a state-of-the-art method for issue–commit link recovery.
1.Download the dataset to data folder & Download six models from HuggingFace
2.Run distill/run.sh and models/run.sh