CoolFace
Modelpublic

embraceableAI/EMB-1-German-Preview-v-0.1

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes16downloads
Model Card

e1-EMB-German-Preview-v-0.1

This is a merged sentence-transformers model. It maps sentences & paragraphs to a 1024-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.

Model Details

Model Description

  • —Model Type: Sentence Transformer <!-- - Base model: Unknown -->
  • —Maximum Sequence Length: 8192 tokens
  • —Output Dimensionality: 1024 tokens
  • —Similarity Function: Cosine Similarity <!-- - Training Dataset: Unknown --> <!-- - Language: Unknown --> <!-- - License: Unknown -->

Model Sources

Full Model Architecture

SentenceTransformer(
  (0): Transformer({'max_seq_length': 8192, 'do_lower_case': False}) with Transformer model: XLMRobertaModel 
  (1): Pooling({'word_embedding_dimension': 1024, 'pooling_mode_cls_token': True, 'pooling_mode_mean_tokens': False, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
  (2): Normalize()
)

Evaluation MTEB-Tasks

Classification

  • —AmazonCounterfactualClassification
  • —AmazonReviewsClassification
  • —MassiveIntentClassification
  • —MassiveScenarioClassification
  • —MTOPDomainClassification
  • —MTOPIntentClassification

Pair Classification

  • —FalseFriendsGermanEnglish
  • —PawsXPairClassification

Retrieval

  • —GermanQuAD-Retrieval
  • —GermanDPR

STS (Semantic Textual Similarity)

  • —GermanSTSBenchmark
Comparison
TASKSnowflakee1-EMB-Germane1-EMB-German vs. Snowflake
AmazonCounterfactualClassification0.65870.71525.65%
AmazonReviewsClassification0.36970.45778.80%
FalseFriendsGermanEnglish0.53600.53780.18%
GermanQuAD-Retrieval0.94230.94560.33%
GermanSTSBenchmark0.74990.855810.59%
MassiveIntentClassification0.67780.68260.48%
MassiveScenarioClassification0.73750.74941.19%
GermanDPR0.83670.8330-0.37%
MTOPDomainClassification0.90800.92591.79%
MTOPIntentClassification0.66750.71434.68%
PawsXPairClassification0.58870.5803-0.84%

Direct Usage (Sentence Transformers)

First install the Sentence Transformers library:

bash
pip install -U sentence-transformers

Then you can load this model and run inference.

python
from sentence_transformers import SentenceTransformer

# Download from the 🤗 Hub
model = SentenceTransformer("embraceableAI/e1-EMB-German-Preview-v-0.1")
# Run inference
sentences = [
    'The weather is lovely today.',
    "It's so sunny outside!",
    'He drove to the stadium.',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 1024]

# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [3, 3]

<!--

Direct Usage (Transformers)

<details><summary>Click to see the direct usage in Transformers</summary>

</details> -->

<!--

Downstream Usage (Sentence Transformers)

You can finetune this model on your own dataset.

<details><summary>Click to expand</summary>

</details> -->

<!--

Out-of-Scope Use

List how the model may foreseeably be misused and address what users ought not to do with the model. -->

<!--

Bias, Risks and Limitations

What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model. -->

<!--

Recommendations

What are recommendations with respect to the foreseeable issues? For example, filtering explicit content. -->

Training Details

Framework Versions

  • —Python: 3.10.12
  • —Sentence Transformers: 3.2.1
  • —Transformers: 4.44.2
  • —PyTorch: 2.4.1+cu121
  • —Accelerate: 0.34.2
  • —Datasets: 3.0.1
  • —Tokenizers: 0.19.1

Citation

@misc{bge-m3,
      title={BGE M3-Embedding: Multi-Lingual, Multi-Functionality, Multi-Granularity Text Embeddings Through Self-Knowledge Distillation}, 
      author={Jianlv Chen and Shitao Xiao and Peitian Zhang and Kun Luo and Defu Lian and Zheng Liu},
      year={2024},
      eprint={2402.03216},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}

The embracebaleAI Team

Marcel Rosiak Soumya Paul Siavash Mollaebrahim