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

Fix: minicpmv2 #1705

Merged
merged 3 commits into from
Jan 6, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions mteb/models/misc_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

from functools import partial

import torch

from mteb.model_meta import ModelMeta, sentence_transformers_loader

Haon_Chen__speed_embedding_7b_instruct = ModelMeta(
Expand Down Expand Up @@ -1556,6 +1558,11 @@
sentence_transformers_loader,
model_name="openbmb/MiniCPM-Embedding",
revision="c0cb2de33fb366e17c30f9d53142ff11bc18e049",
# https://huggingface.co/openbmb/MiniCPM-Embedding/blob/c0cb2de33fb366e17c30f9d53142ff11bc18e049/README.md?code=true#L405
model_kwargs={
# "attn_implementation": "flash_attention_2",
"torch_dtype": torch.float16,
},
trust_remote_code=True,
),
name="openbmb/MiniCPM-Embedding",
Expand Down
Loading