-
Notifications
You must be signed in to change notification settings - Fork 293
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 giga embeddings #1741
base: main
Are you sure you want to change the base?
Add giga embeddings #1741
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,10 @@ | |
|
||
from functools import partial | ||
|
||
import torch | ||
|
||
from mteb.model_meta import ModelMeta, sentence_transformers_loader | ||
from mteb.models.instruct_wrapper import InstructSentenceTransformerWrapper | ||
|
||
rubert_tiny2 = ModelMeta( | ||
name="cointegrated/rubert-tiny2", | ||
|
@@ -236,3 +239,31 @@ | |
release_date="2024-07-29", | ||
use_instructions=True, | ||
) | ||
|
||
giga_embeddings = ModelMeta( | ||
loader=partial( | ||
InstructSentenceTransformerWrapper, | ||
model_name="ai-sage/Giga-Embeddings-instruct", | ||
revision="646f5ff3587e74a18141c8d6b60d1cffd5897b92", | ||
trust_remote_code=True, | ||
instruction_template="Instruct: {instruction}\nQuery: ", | ||
apply_instruction_to_passages=False, | ||
model_kwargs={ | ||
"torch_dtype": torch.float16, | ||
}, | ||
), | ||
name="ai-sage/Giga-Embeddings-instruct", | ||
languages=["eng_Latn", "rus_Cyrl"], | ||
open_weights=True, | ||
revision="646f5ff3587e74a18141c8d6b60d1cffd5897b92", | ||
release_date="2024-12-13", | ||
n_parameters=2_530_000_000, | ||
memory_usage=None, | ||
embed_dim=2048, | ||
license="mit", | ||
max_tokens=32768, | ||
reference="https://huggingface.co/ai-sage/Giga-Embeddings-instruct", | ||
similarity_fn_name="cosine", | ||
framework=["Sentence Transformers", "PyTorch"], | ||
use_instructions=True, | ||
) | ||
Comment on lines
+268
to
+269
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we add the training data annotation as well (we are going through models and adding that) see_ #1561 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. They haven't publish report yet, so I don't know anything about training dataset |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar to
jasper
andnv-embed
this model doesn't use prompt for passages. I think that can be helpful to add this to base class