Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG when testing results of MTEB retrieval #132

Open
tianyumyum opened this issue Jul 29, 2024 · 4 comments
Open

BUG when testing results of MTEB retrieval #132

tianyumyum opened this issue Jul 29, 2024 · 4 comments

Comments

@tianyumyum
Copy link

I was running mteb run -m McGill-NLP/LLM2Vec-Llama-2-7b-chat-hf-mntp-supervised -t DBPedia ArguAna NFCorpus FiQA2018 --output_folder results_0 --device 0

But I got:
File "/mnt/ceph_home/zhongtianyun2023/miniconda3/envs/mteb_new/lib/python3.9/multiprocessing/pool.py", line 771, in get
raise self._value
AttributeError: 'LlamaBiModel' object has no attribute 'rotary_emb'
Batches: 0%| | 0/1 [00:07<?, ?it/s]
[W729 12:01:59.244093981 CudaIPCTypes.cpp:16] Producer process has been terminated before all shared CUDA tensors released. See Note [Sharing CUDA tensors]

@vaibhavad
Copy link
Collaborator

Hi @tianyumyum,

what version of transformers are you using? llm2vec supports transformers>=4.39.1,<=4.40.2

@lst627
Copy link

lst627 commented Jul 30, 2024

I encountered the same issue yesterday while using this model. It started working after I downgraded the transformers to version 4.40.2.

@tianyumyum
Copy link
Author

Thanks!
I can run it now~@vaibhavad @lst627

@tianyumyum
Copy link
Author

tianyumyum commented Jul 31, 2024

@vaibhavad Hello! I have created a new conda environment with all the packages as in this issue.
image
I didn't get an error when using the command line, but I got an error Bus error (core dumped) when using python files.
I just ran the same code as you listed above in this site

import mteb

if __name__ == "__main__":
    model_name = "McGill-NLP/LLM2Vec-Sheared-LLaMA-mntp-supervised"
    model = mteb.get_model(model_name)
    tasks = mteb.get_tasks(tasks=["AmazonCounterfactualClassification"])
    evaluation = mteb.MTEB(tasks=tasks)
    results = evaluation.run(model, output_folder="results")

The bug will happen when running experiments/mteb_eval.py too.

@tianyumyum tianyumyum reopened this Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants