Elementary implementation of LLMFactor and attempt of adversarial attack on it.
-
Install the requirements
python -m venv {any_name} pip install -r requirements.txtOr, use with conda environment
conda env create -n {any_name} python=3.12 conda activate {any_name} pip install -r requirements.txt -
Make
config.jsoncp config.json.example config.json -
Run the code
python -m llmfactor
Also, you can specify the config file path
python -m llmfactor --config-file {config_file_path}