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
|
@@ -29,9 +29,9 @@ widget:
|
|
| 29 |
programs
|
| 30 |
---
|
| 31 |
|
| 32 |
-
# Model Card for
|
| 33 |
|
| 34 |
-
The **SecureBERT 2.0 Bi-Encoder** is a cybersecurity-domain sentence-similarity and document-embedding model fine-tuned from [SecureBERT 2.0](https://huggingface.co/
|
| 35 |
It independently encodes queries and documents into a shared vector space for **semantic search**, **information retrieval**, and **cybersecurity knowledge retrieval**.
|
| 36 |
|
| 37 |
---
|
|
@@ -47,7 +47,7 @@ It independently encodes queries and documents into a shared vector space for **
|
|
| 47 |
- **Output dimension:** 768
|
| 48 |
- **Language:** English
|
| 49 |
- **License:** Apache-2.0
|
| 50 |
-
- **Finetuned from:** [
|
| 51 |
|
| 52 |
---
|
| 53 |
|
|
@@ -110,7 +110,7 @@ pip install -U sentence-transformers
|
|
| 110 |
```python
|
| 111 |
from sentence_transformers import SentenceTransformer
|
| 112 |
|
| 113 |
-
model = SentenceTransformer("
|
| 114 |
|
| 115 |
sentences = [
|
| 116 |
"How would you use Amcache analysis to detect fileless malware?",
|
|
|
|
| 29 |
programs
|
| 30 |
---
|
| 31 |
|
| 32 |
+
# Model Card for cisco-ai/SecureBERT2.0-biencoder
|
| 33 |
|
| 34 |
+
The **SecureBERT 2.0 Bi-Encoder** is a cybersecurity-domain sentence-similarity and document-embedding model fine-tuned from [SecureBERT 2.0](https://huggingface.co/cisco-ai/SecureBERT2.0-base).
|
| 35 |
It independently encodes queries and documents into a shared vector space for **semantic search**, **information retrieval**, and **cybersecurity knowledge retrieval**.
|
| 36 |
|
| 37 |
---
|
|
|
|
| 47 |
- **Output dimension:** 768
|
| 48 |
- **Language:** English
|
| 49 |
- **License:** Apache-2.0
|
| 50 |
+
- **Finetuned from:** [cisco-ai/SecureBERT2.0-base](https://huggingface.co/cisco-ai/SecureBERT2.0-base)
|
| 51 |
|
| 52 |
---
|
| 53 |
|
|
|
|
| 110 |
```python
|
| 111 |
from sentence_transformers import SentenceTransformer
|
| 112 |
|
| 113 |
+
model = SentenceTransformer("cisco-ai/SecureBERT2.0-biencoder")
|
| 114 |
|
| 115 |
sentences = [
|
| 116 |
"How would you use Amcache analysis to detect fileless malware?",
|