Adversarial Contrastive Learning for Efficient RAG
We provide an environments.yml file for setting up the conda environment:
conda env create -f environments.yml
conda activate aclragNote:
- The provided
torchversion inenvironments.ymlis for NVIDIA CUDA.- If you are using AMD ROCm, please install the ROCm-compatible
torchmanually. See PyTorch ROCm for details.
CUDA_VISIBLE_DEVICES=0 python pretrain.pyCUDA_VISIBLE_DEVICES=0 python contrastive_learning.pyCUDA_VISIBLE_DEVICES=0 python fine_tuned_inference_ACLRAG.py