Pytorch implementation for NIR.
|
|
|
@mastersthesis{soran_2024_essex,
title = {Neural Integration of Iterative Reasoning (NIR) in LLMs for Code Generation},
author = {Ghaderi, Soran},
year = 2024,
school = {University of Essex},
type = {Master's thesis},
doi = {https://doi.org/10.13140/RG.2.2.18855.25769}
}Note: Ensure dependencies are installed before running.
# Create virtual environment
python -m venv venv
source venv/bin/activate
# Install dependencies
pip install -r requirements.txtImportant: To use the Llama 3.1 model, you'll need a token:
- Create a HuggingFace account
- Request an access token
- Use the token in the notebooks and *.py files
Run notebooks in order:
preprocess_dataset.ipynbevaluation.ipynbanalysis.ipynb
Run scripts in sequence:
preprocess_dataset.pyfinal_evals.pyanalysis.py
Experimental implementations: Please note that none of the experimental implementations are included in the evaluations nor in the dissertation report. They also need minor changes and further modification to be actually useful.
Memory manager, using CRV retrieval, similarity-based retrieval, a differential neural computers adaptation.