-
Notifications
You must be signed in to change notification settings - Fork 276
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
Need help with integrating the model jxm/cde-small-v1 #1511
Comments
You should use it like this model = mteb.get_model(
"jxm/cde-small-v1",
trust_remote_code=True,
model_prompts={
"query": "search_query: ",
"passage": "search_document: "
}
) |
Current issue: Process Hanging and Warnings During Task Execution in MTEB Hi @Samoed, Thank you very much for providing the snippet earlier! I used it, and the code is now running, successfully listing tasks across categories like Classification, Clustering, and others. However, I'm encountering two issues:
Expected BehaviorThe code should complete processing and proceed to the next steps without stalling. Actual BehaviorThe process hangs after listing the tasks, and no further steps are executed. Additional ThoughtsI believe the parallelism warnings might be related to the stalling, but I'm unsure how to handle this correctly. Disabling the warning via Do you have any suggestions for resolving this? Any guidance would be appreciated! Thank you again for your time and support. |
I ran it using this snippet, and everything works fine. import mteb
from sentence_transformers import SentenceTransformer
from transformers import AutoTokenizer, AutoModel
model = mteb.get_model(
"jxm/cde-small-v1",
trust_remote_code=True,
model_prompts={
"query": "search_query: ",
"passage": "search_document: "
}
)
tasks = mteb.get_tasks(
tasks=[
# classification
"AmazonCounterfactualClassification",
# clustering
"RedditClustering",
# pair classification
"TwitterSemEval2015",
# reranking
"AskUbuntuDupQuestions",
# retrieval
"SCIDOCS",
# # sts
"STS22",
# # summarization
"SummEval",
]
)
evaluation = mteb.MTEB(tasks=tasks)
results = evaluation.run(
model,
output_folder="results",
extra_kwargs={"batch_size": 8},
overwrite_results=True
) |
I’ve been working on integrating the model jxm/cde-small-v1 using the SentenceTransformer library as per the instructions from the mteb/docs/adding_a_model.md, but I’m encountering a persistent issue that I haven’t been able to resolve.
Specifically, I copied the example code from the instructions and replaced the model name as required. However, I’m seeing the following error:
ModuleNotFoundError: No module named 'sentence_transformers_impl'
Here’s a summary of what I’ve tried so far to troubleshoot:
At this point, I’m unclear if the issue is with how I’ve implemented the model, a missing dependency, or a problem with the model itself. I would appreciete any guidance on how I can tackle this issue.
Thank you!
I have attached a picture of the code that I have written:
The text was updated successfully, but these errors were encountered: