Steps needed before running the code:
pip install -r requirements.txt
The Jupiter notebooks for running our experiment can be found in the folder quantised_setup. In here are for all the models seperate notebooks for generating the output and then retrieving explanations (XAI). We looked at three models for our study: Gemma-7b-it, Meta-Llama-3-8B-Instruct, and Mistral-7B-Instruct-v0.2. All of them come from Hugging Face.
For running our experiments, we used Kaggle due to the resources available there (weekly GPU).
Additionally, in evaluation_code is the code for the evaluation and in lm_studio_setup is the code to run the models with LM Studio.
In quantised_setup:
data_in: this is the input data from the DecodingTrust benchmark.gemma: in this folder are the files: analyse.ipynb, generate-google-gemma.ipynb, xai-google-gemma.ipynb and the results.llama: in this folder are the files: analyse.ipynb, generate-meta-llama.ipynb, xai-meta-llama.ipynb and the results.mistral: in this folder are the files: analyse.ipynb, generate-mistral.ipynb, xai-mistral.ipynb and the results.toxicity_score_calculation.ipynb: this notebook is used to calculate the toxicity scores of the outputs from the models; nicholasKluge/ToxicityModel was used for this calculation.Steps needed before running the code:
pip install -r requirements.txt
The Jupiter notebooks for running our experiment can be found in the folder quantised_setup. In here are for all the models seperate notebooks for generating the output and then retrieving explanations (XAI). We looked at three models for our study: Gemma-7b-it, Meta-Llama-3-8B-Instruct, and Mistral-7B-Instruct-v0.2. All of them come from Hugging Face.
For running our experiments, we used Kaggle due to the resources available there (weekly GPU).
Additionally, in evaluation_code is the code for the evaluation and in lm_studio_setup is the code to run the models with LM Studio.
In quantised_setup:
data_in: this is the input data from the DecodingTrust benchmark.gemma: in this folder are the files: analyse.ipynb, generate-google-gemma.ipynb, xai-google-gemma.ipynb and the results.llama: in this folder are the files: analyse.ipynb, generate-meta-llama.ipynb, xai-meta-llama.ipynb and the results.mistral: in this folder are the files: analyse.ipynb, generate-mistral.ipynb, xai-mistral.ipynb and the results.toxicity_score_calculation.ipynb: this notebook is used to calculate the toxicity scores of the outputs from the models; nicholasKluge/ToxicityModel was used for this calculation.