The result of CPL using llama2 and mistral are running under float32 for fair comparrision with
!pip install transformers==4.40.0 torch==2.3.0 scikit-learn ==1.4.2 nltk==3.8.1 retry==0.9.2
!pip install pytorch_metric_learning
cd Bert
python train_tacred_final.py --task_name Tacred --num_k 5
python train_fewrel_final.py --task_name FewRel --num_k 5
BGE, Llama2,Llama3,Mistral directory:
Each subfolder is belong to one setting:!pip install transformers==4.40.0 torch==2.3.0 scikit-learn ==1.4.2 nltk==3.8.1 retry==0.9.2
!pip install llm2vec==0.2.2
!pip install flash-attn --no-build-isolation
!huggingface-cli login --token your_huggingface_token_to_access_model
python train_tacred_final.py --task_name Tacred --num_k 5
python train_fewrel_final.py --task_name FewRel --num_k 5
The result of CPL using llama2 and mistral are running under float32 for fair comparrision with
!pip install transformers==4.40.0 torch==2.3.0 scikit-learn ==1.4.2 nltk==3.8.1 retry==0.9.2
!pip install pytorch_metric_learning
cd Bert
python train_tacred_final.py --task_name Tacred --num_k 5
python train_fewrel_final.py --task_name FewRel --num_k 5
BGE, Llama2,Llama3,Mistral directory:
Each subfolder is belong to one setting:!pip install transformers==4.40.0 torch==2.3.0 scikit-learn ==1.4.2 nltk==3.8.1 retry==0.9.2
!pip install llm2vec==0.2.2
!pip install flash-attn --no-build-isolation
!huggingface-cli login --token your_huggingface_token_to_access_model
python train_tacred_final.py --task_name Tacred --num_k 5
python train_fewrel_final.py --task_name FewRel --num_k 5