Sentence Similarity
sentence-transformers
Safetensors
Transformers
Indonesian
bert
feature-extraction
text-embeddings-inference
Instructions to use LazarusNLP/sct-indobert-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use LazarusNLP/sct-indobert-base with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("LazarusNLP/sct-indobert-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 LazarusNLP/sct-indobert-base with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("LazarusNLP/sct-indobert-base") model = AutoModel.from_pretrained("LazarusNLP/sct-indobert-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config_sentence_transformers.json from LazarusNLP/sct-indobert-base: direct link, hf CLI and curl.
- Browser
- Download file 123 Bytes
-
https://huggingface.co/LazarusNLP/sct-indobert-base/resolve/main/config_sentence_transformers.json
- Command line
-
hf download hf://LazarusNLP/sct-indobert-base/config_sentence_transformers.json
-
curl -L -o config_sentence_transformers.json https://huggingface.co/LazarusNLP/sct-indobert-base/resolve/main/config_sentence_transformers.json
123 Bytes
| { | |
| "__version__": { | |
| "sentence_transformers": "2.2.2", | |
| "transformers": "4.36.2", | |
| "pytorch": "2.1.2+cu121" | |
| } | |
| } |