Sentence Similarity
sentence-transformers
Safetensors
English
modernbert
feature-extraction
dense
securebert
IR
docembedding
Generated from Trainer
dataset_size:35705
loss:MultipleNegativesRankingLoss
text-embeddings-inference
Instructions to use cisco-ai/SecureBERT2.0-biencoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use cisco-ai/SecureBERT2.0-biencoder with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("cisco-ai/SecureBERT2.0-biencoder") sentences = [ "What is the primary responsibility of the Information Security Oversight Committee in an organization?", "Least privilege", "By searching for repeating ciphertext sequences at fixed displacements.", "Ensuring and supporting information protection awareness and training programs" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Inference
- Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -32,13 +32,10 @@ This is a [sentence-transformers](https://www.SBERT.net) model trained. It maps
|
|
| 32 |
|
| 33 |
### Model Description
|
| 34 |
- **Model Type:** Sentence Transformer
|
| 35 |
-
<!-- - **Base model:** [Unknown](https://huggingface.co/unknown) -->
|
| 36 |
- **Maximum Sequence Length:** 1024 tokens
|
| 37 |
- **Output Dimensionality:** 768 dimensions
|
| 38 |
- **Similarity Function:** Cosine Similarity
|
| 39 |
-
|
| 40 |
-
<!-- - **Language:** Unknown -->
|
| 41 |
-
<!-- - **License:** Unknown -->
|
| 42 |
|
| 43 |
### Model Sources
|
| 44 |
|
|
@@ -70,7 +67,7 @@ Then you can load this model and run inference.
|
|
| 70 |
from sentence_transformers import SentenceTransformer
|
| 71 |
|
| 72 |
# Download from the 🤗 Hub
|
| 73 |
-
model = SentenceTransformer("
|
| 74 |
# Run inference
|
| 75 |
sentences = [
|
| 76 |
'How would you use Amcache analysis to detect fileless malware that drops temporary components for initial system compromise?',
|
|
|
|
| 32 |
|
| 33 |
### Model Description
|
| 34 |
- **Model Type:** Sentence Transformer
|
|
|
|
| 35 |
- **Maximum Sequence Length:** 1024 tokens
|
| 36 |
- **Output Dimensionality:** 768 dimensions
|
| 37 |
- **Similarity Function:** Cosine Similarity
|
| 38 |
+
|
|
|
|
|
|
|
| 39 |
|
| 40 |
### Model Sources
|
| 41 |
|
|
|
|
| 67 |
from sentence_transformers import SentenceTransformer
|
| 68 |
|
| 69 |
# Download from the 🤗 Hub
|
| 70 |
+
model = SentenceTransformer("CiscoAITeam/SecureBERT2.0-biencoder")
|
| 71 |
# Run inference
|
| 72 |
sentences = [
|
| 73 |
'How would you use Amcache analysis to detect fileless malware that drops temporary components for initial system compromise?',
|