Large Language Model Genetic Improvement Python (LLMGIpy) is a software that allows you to evaluate the Python code generation of some LLMs and test the improvements of the code after applying Genetic Improvement.
- Gemma1.1 2B and 7B
- LLaMA2 7B and 13B
- LLaMA3 8B
- CodeLLaMA 7B and 13B
- CodeGemma 7B
- Mistral 7B
- ChatGPT and GPT4
Note that for Hugging Face models you need a (free) token and for OpenAI models you need to pay.
Clone this repository, move to the folder
git clone https://github.com/dravalico/LLMGIpy
cd LLMGIpy
Create a conda environment from environment.yml
conda env create -f environment.yml
conda activate llmgipy
If you prefer, you could also install the required modules from the requirements.txt file (ensure you have an environment with at least Python 3.9.16):
pip install -r requirements.txt
Move to src
folder and run
python main.py --help
Make sure that you have an environment variable with your HUGGING FACE TOKEN set so that Hugging Face models can use it to run the models (the environment variable must be called HF_TOKEN).