Lajavaness / bilingual-embedding-large

huggingface.co
Total runs: 11.9K
24-hour runs: 0
7-day runs: 1.9K
30-day runs: -3.8K
Model's Last Updated: August 06 2024
sentence-similarity

Introduction of bilingual-embedding-large

Model Details of bilingual-embedding-large

bilingual-embedding-large

Bilingual-embedding is the Embedding Model for bilingual language: french and english. This model is a specialized sentence-embedding trained specifically for the bilingual language, leveraging the robust capabilities of XLM-RoBERTa , a pre-trained language model based on the XLM-RoBERTa architecture. The model utilizes xlm-roberta to encode english-french sentences into a 1024-dimensional vector space, facilitating a wide range of applications from semantic search to text clustering. The embeddings capture the nuanced meanings of english-french sentences, reflecting both the lexical and contextual layers of the language.

Full Model Architecture
SentenceTransformer(
  (0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: BilingualModel 
  (1): Pooling({'word_embedding_dimension': 1024, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, '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()
)
Training and Fine-tuning process
Stage 1: NLI Training
  • Dataset: [(SNLI+XNLI) for english+french]
  • Method: Training using Multi-Negative Ranking Loss. This stage focused on improving the model's ability to discern and rank nuanced differences in sentence semantics.
Stage 3: Continued Fine-tuning for Semantic Textual Similarity on STS Benchmark
  • Dataset: [STSB-fr and en]
  • Method: Fine-tuning specifically for the semantic textual similarity benchmark using Siamese BERT-Networks configured with the 'sentence-transformers' library.
Stage 4: Advanced Augmentation Fine-tuning
  • Dataset: STSB with generate silver sample from gold sample
  • Method: Employed an advanced strategy using Augmented SBERT with Pair Sampling Strategies, integrating both Cross-Encoder and Bi-Encoder models. This stage further refined the embeddings by enriching the training data dynamically, enhancing the model's robustness and accuracy.
Usage:

Using this model becomes easy when you have sentence-transformers installed:

pip install -U sentence-transformers

Then you can use the model like this:

from sentence_transformers import SentenceTransformer

sentences = ["Paris est une capitale de la France", "Paris is a capital of France"]

model = SentenceTransformer('Lajavaness/bilingual-embedding-large', trust_remote_code=True)
print(embeddings)
Evaluation

TODO

Citation
@article{conneau2019unsupervised,
  title={Unsupervised cross-lingual representation learning at scale},
  author={Conneau, Alexis and Khandelwal, Kartikay and Goyal, Naman and Chaudhary, Vishrav and Wenzek, Guillaume and Guzm{\'a}n, Francisco and Grave, Edouard and Ott, Myle and Zettlemoyer, Luke and Stoyanov, Veselin},
  journal={arXiv preprint arXiv:1911.02116},
  year={2019}
}

@article{reimers2019sentence,
   title={Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks},
   author={Nils Reimers, Iryna Gurevych},
   journal={https://arxiv.org/abs/1908.10084},
   year={2019}
}

@article{thakur2020augmented,
  title={Augmented SBERT: Data Augmentation Method for Improving Bi-Encoders for Pairwise Sentence Scoring Tasks},
  author={Thakur, Nandan and Reimers, Nils and Daxenberger, Johannes and Gurevych, Iryna},
  journal={arXiv e-prints},
  pages={arXiv--2010},
  year={2020}

Runs of Lajavaness bilingual-embedding-large on huggingface.co

11.9K
Total runs
0
24-hour runs
709
3-day runs
1.9K
7-day runs
-3.8K
30-day runs

More Information About bilingual-embedding-large huggingface.co Model

More bilingual-embedding-large license Visit here:

https://choosealicense.com/licenses/apache-2.0

bilingual-embedding-large huggingface.co

bilingual-embedding-large huggingface.co is an AI model on huggingface.co that provides bilingual-embedding-large's model effect (), which can be used instantly with this Lajavaness bilingual-embedding-large model. huggingface.co supports a free trial of the bilingual-embedding-large model, and also provides paid use of the bilingual-embedding-large. Support call bilingual-embedding-large model through api, including Node.js, Python, http.

bilingual-embedding-large huggingface.co Url

https://huggingface.co/Lajavaness/bilingual-embedding-large

Lajavaness bilingual-embedding-large online free

bilingual-embedding-large huggingface.co is an online trial and call api platform, which integrates bilingual-embedding-large's modeling effects, including api services, and provides a free online trial of bilingual-embedding-large, you can try bilingual-embedding-large online for free by clicking the link below.

Lajavaness bilingual-embedding-large online free url in huggingface.co:

https://huggingface.co/Lajavaness/bilingual-embedding-large

bilingual-embedding-large install

bilingual-embedding-large is an open source model from GitHub that offers a free installation service, and any user can find bilingual-embedding-large on GitHub to install. At the same time, huggingface.co provides the effect of bilingual-embedding-large install, users can directly use bilingual-embedding-large installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

bilingual-embedding-large install url in huggingface.co:

https://huggingface.co/Lajavaness/bilingual-embedding-large

Url of bilingual-embedding-large

bilingual-embedding-large huggingface.co Url

Provider of bilingual-embedding-large huggingface.co

Lajavaness
ORGANIZATIONS

Other API from Lajavaness