Instructions to use alihur-ecu/cve-cwe-crossencoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use alihur-ecu/cve-cwe-crossencoder with sentence-transformers:
from sentence_transformers import CrossEncoder model = CrossEncoder("alihur-ecu/cve-cwe-crossencoder") query = "Which planet is known as the Red Planet?" passages = [ "Venus is often called Earth's twin because of its similar size and proximity.", "Mars, known for its reddish appearance, is often referred to as the Red Planet.", "Jupiter, the largest planet in our solar system, has a prominent red spot.", "Saturn, famous for its rings, is sometimes mistaken for the Red Planet." ] scores = model.predict([(query, passage) for passage in passages]) print(scores) - Notebooks
- Google Colab
- Kaggle
alihur-ecu/cve-cwe-crossencoder
Fine-tuned cross-encoder for CVE→CWE ranking (cve2graph Phase 26).
- Base model:
cross-encoder/ms-marco-MiniLM-L-6-v2 - Training: 3 epochs on in-domain CVE/CWE pairs (hard negatives from Phase 24 fusion ranker)
- Test Hits@10: 0.7165
- Test MRR: 0.6026
- Fusion: rerank top-200 CWE candidates with cross-encoder weight λ=0.5
Usage
from sentence_transformers import CrossEncoder
model = CrossEncoder("alihur-ecu/cve-cwe-crossencoder")
scores = model.predict([("CVE description text", "CWE description text")])
- Downloads last month
- 16
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support
Model tree for alihur-ecu/cve-cwe-crossencoder
Base model
microsoft/MiniLM-L12-H384-uncased Quantized
cross-encoder/ms-marco-MiniLM-L12-v2 Quantized
cross-encoder/ms-marco-MiniLM-L6-v2