Instructions to use pkshatech/GLuCoSE-base-ja with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use pkshatech/GLuCoSE-base-ja with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("pkshatech/GLuCoSE-base-ja") 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 pkshatech/GLuCoSE-base-ja with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("pkshatech/GLuCoSE-base-ja") model = AutoModel.from_pretrained("pkshatech/GLuCoSE-base-ja", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download sentence_bert_config.json from pkshatech/GLuCoSE-base-ja: direct link, hf CLI and curl.
- Browser
- Download file 53 Bytes
-
https://huggingface.co/pkshatech/GLuCoSE-base-ja/resolve/main/sentence_bert_config.json
- Command line
-
hf download hf://pkshatech/GLuCoSE-base-ja/sentence_bert_config.json
-
curl -L -o sentence_bert_config.json https://huggingface.co/pkshatech/GLuCoSE-base-ja/resolve/main/sentence_bert_config.json
53 Bytes
| { | |
| "max_seq_length": 512, | |
| "do_lower_case": false | |
| } |