Sentence Similarity
sentence-transformers
Safetensors
Rust
English
modernbert
feature-extraction
code-search
code
python
java
javascript
php
ruby
go
mteb
text-embeddings-inference
Instructions to use Shuu12121/CodeSearch-ModernBERT-Crow-Plus with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Shuu12121/CodeSearch-ModernBERT-Crow-Plus with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Shuu12121/CodeSearch-ModernBERT-Crow-Plus") 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] - Notebooks
- Google Colab
- Kaggle
Download special_tokens_map.json from Shuu12121/CodeSearch-ModernBERT-Crow-Plus: direct link, hf CLI and curl.
- Browser
- Download file 964 Bytes
-
https://huggingface.co/Shuu12121/CodeSearch-ModernBERT-Crow-Plus/resolve/96ff525a7aa3bf8bfa90d77337c2b24bd45229af/special_tokens_map.json
- Command line
-
hf download hf://Shuu12121/CodeSearch-ModernBERT-Crow-Plus@96ff525a7aa3bf8bfa90d77337c2b24bd45229af/special_tokens_map.json
-
curl -L -o special_tokens_map.json https://huggingface.co/Shuu12121/CodeSearch-ModernBERT-Crow-Plus/resolve/96ff525a7aa3bf8bfa90d77337c2b24bd45229af/special_tokens_map.json
964 Bytes
| { | |
| "bos_token": { | |
| "content": "<s>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "cls_token": { | |
| "content": "<s>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "eos_token": { | |
| "content": "</s>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "mask_token": { | |
| "content": "<mask>", | |
| "lstrip": true, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "pad_token": { | |
| "content": "[PAD]", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "sep_token": { | |
| "content": "</s>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "unk_token": { | |
| "content": "<unk>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| } | |
| } | |