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

Add model inf-retriever-v1 #1744

Merged
merged 10 commits into from
Jan 15, 2025
32 changes: 32 additions & 0 deletions mteb/models/inf_models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
from __future__ import annotations

from functools import partial

from mteb.model_meta import ModelMeta, sentence_transformers_loader

inf_retriever_v1 = ModelMeta(
loader=partial( # type: ignore
sentence_transformers_loader,
KennethEnevoldsen marked this conversation as resolved.
Show resolved Hide resolved
model_name="infly/inf-retriever-v1",
revision="d2d074546028c0012b5cc6af78c4fac24896e67f",
trust_remote_code=True,
),
name="infly/inf-retriever-v1",
languages=["eng_Latn", "zho_Hans"],
open_weights=True,
revision="d2d074546028c0012b5cc6af78c4fac24896e67f",
release_date="2024-12-24", # initial commit of hf model.
n_parameters=7_069_121_024,
memory_usage=None,
embed_dim=3584,
license=None,
Samoed marked this conversation as resolved.
Show resolved Hide resolved
max_tokens=131_072,
reference="https://huggingface.co/infly/inf-retriever-v1",
similarity_fn_name="cosine",
framework=["Sentence Transformers", "PyTorch"],
use_instructions=True,
adapted_from="Alibaba-NLP/gte-Qwen2-7B-instruct",
public_training_code=False,
public_training_data=False,
training_datasets=None,
)
2 changes: 2 additions & 0 deletions mteb/models/overview.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
gritlm_models,
gte_models,
ibm_granite_models,
inf_models,
jasper_models,
jina_models,
linq_models,
Expand Down Expand Up @@ -61,6 +62,7 @@
gritlm_models,
gte_models,
ibm_granite_models,
inf_models,
jina_models,
linq_models,
llm2vec_models,
Expand Down
Loading