- Clone the repository with its submodules
git clone --recurse-submodules https://github.com/ValenButtignol/repok-generator-tool.git atria-
Make sure having installed Java 21 and Gradle 8.12.
-
Download Miniconda.
-
Create and activate an environment with Miniconda:
conda create -n <env-name>
conda activate <env-name>
- Execute dependencies.sh to install the required dependencies.
bash dependencies.sh- Install any model supported by llama-cpp-python. For more details README.md file.
wget -P tools/llm-repok-generator/models <model_download_url>
NOTE: Make sure of adding the model name to the ModelPathFactory file. In this file are the model_paths and model_names of the models that we used to test the tool. The download links are in the README.md file.
gradle run --args="<modelName> <classPath> <className> <promptType>"
NOTE: The
modelNameis the name of the model captured by the ModelPathFactory If you want to test another model, you can add another option to this factory. TheclassPathis the path to the class file. TheclassNameis the name of the class. ThepromptTypeis the style of prompt to use for the LLM. More details in README.md
