Skip to content

NYCU-MLLab/ACLRAG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

ACLRAG

Adversarial Contrastive Learning for Efficient RAG

Environment Setup

We provide an environments.yml file for setting up the conda environment:

conda env create -f environments.yml
conda activate aclrag

Note:

  • The provided torch version in environments.yml is for NVIDIA CUDA.
  • If you are using AMD ROCm, please install the ROCm-compatible torch manually. See PyTorch ROCm for details.

Datasets


Training

1. Reconstruction Pretraining

CUDA_VISIBLE_DEVICES=0 python pretrain.py

2. Query-Aware Finetuning (Contrastive + Adversarial Learning)

CUDA_VISIBLE_DEVICES=0 python contrastive_learning.py

Inference

CUDA_VISIBLE_DEVICES=0 python fine_tuned_inference_ACLRAG.py

About

Adversarial Contrastive Learning for Compressive RAG

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages