Feature Extraction
sentence-transformers
Safetensors
Transformers
French
camembert
sentence-similarity
Eval Results (legacy)
text-embeddings-inference
Instructions to use h4c5/sts-camembert-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use h4c5/sts-camembert-base with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("h4c5/sts-camembert-base") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Transformers
How to use h4c5/sts-camembert-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="h4c5/sts-camembert-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("h4c5/sts-camembert-base") model = AutoModel.from_pretrained("h4c5/sts-camembert-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download sentence_bert_config.json from h4c5/sts-camembert-base: direct link, hf CLI and curl.
- Browser
- Download file 53 Bytes
-
https://huggingface.co/h4c5/sts-camembert-base/resolve/main/sentence_bert_config.json
- Command line
-
hf download hf://h4c5/sts-camembert-base/sentence_bert_config.json
-
curl -L -o sentence_bert_config.json https://huggingface.co/h4c5/sts-camembert-base/resolve/main/sentence_bert_config.json
53 Bytes
| { | |
| "max_seq_length": 512, | |
| "do_lower_case": false | |
| } |