Downloads · 30 days
2.7K
8% of all-time downloads
Wissam42/sentence-croissant-llm-base
sentence-croissant-llm-base is a sentence similarity model from Wissam42. Use it when you need a score for how close two texts are. It is set up for sentence-transformers. The card lists the license as mit.
The model sentence-croissant-llm-base is designed to generate French text embeddings. It has been fine-tuned using the very recent pre-trained LLM croissantllm/CroissantLLMBase with the strategy of Siamese-BERT implem…
Downloads · 30 days
2.7K
8% of all-time downloads
All-time downloads
34.5K
Public
Repo size
10.2 GB
Likes
3
Public
Click a slice to open those files.
.bin5.1 GB · 100%
From the Hugging Face model README
The model sentence-croissant-llm-base is designed to generate French text embeddings. It has been fine-tuned using the very recent pre-trained LLM croissantllm/CroissantLLMBase with the strategy of Siamese-BERT implemented in the library 'sentences-transformers'. The fine tuning dataset used is the French training split of stsb.
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
model = SentenceTransformer("Wissam42/sentence-croissant-llm-base")
sentences = ["Le chat mange la souris", "Un felin devore un rongeur", "Je travaille sur un ordinateur", "Je developpe sur mon pc"]
embeddings = model.encode(sentences)
print(embeddings)
@article{faysse2024croissantllm,
title={CroissantLLM: A Truly Bilingual French-English Language Model},
author={Faysse, Manuel and Fernandes, Patrick and Guerreiro, Nuno and Loison, Ant{\'o}nio and Alves, Duarte and Corro, Caio and Boizard, Nicolas and Alves, Jo{\~a}o and Rei, Ricardo and Martins, Pedro and others},
journal={arXiv preprint arXiv:2402.00786},
year={2024}
}
@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}
}