Instructions to use SkillScreen/SkillScreen-2B-MSD with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SkillScreen/SkillScreen-2B-MSD with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="SkillScreen/SkillScreen-2B-MSD")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForSequenceClassification processor = AutoProcessor.from_pretrained("SkillScreen/SkillScreen-2B-MSD") model = AutoModelForSequenceClassification.from_pretrained("SkillScreen/SkillScreen-2B-MSD", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Document source-checkpoint recall, FPR and evaluation thresholds
Browse files
README.md
CHANGED
|
@@ -20,6 +20,19 @@ This model is described in the paper: [SkillScreen: High-Recall Screening of Mal
|
|
| 20 |
|
| 21 |
Based on [OpenJev 2B](https://huggingface.co/AlexWortega/openjev). Full weights are at the root. The original LoRA adapter and classification head are in `adapter/`.
|
| 22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
## Use
|
| 24 |
|
| 25 |
Requires CUDA with BF16 support.
|
|
|
|
| 20 |
|
| 21 |
Based on [OpenJev 2B](https://huggingface.co/AlexWortega/openjev). Full weights are at the root. The original LoRA adapter and classification head are in `adapter/`.
|
| 22 |
|
| 23 |
+
## Source-checkpoint evaluation
|
| 24 |
+
|
| 25 |
+
Reference results for source LoRA checkpoint `direct-msd-r001`, seed 42, update 426. These use its original held-out predictions. Validation checks for the merged full-weight export are in [merge_verification.json](merge_verification.json).
|
| 26 |
+
|
| 27 |
+
MaliciousSkillBench, **Malicious-Structural-Disjoint (MSD) test**: 1,947 skills (1,500 malicious, 447 benign). Dataset revision `d4b42ce5766a6e0359c987cf59c1007cb3795a90`. Input is SKILL.md only, up to 8,192 tokens.
|
| 28 |
+
|
| 29 |
+
| Threshold rule | Native score threshold | Recall (%) | FPR (%) |
|
| 30 |
+
| --- | ---: | ---: | ---: |
|
| 31 |
+
| Default | 0.5 | 95.20 | 1.79 |
|
| 32 |
+
| Target 99% validation recall | 0.011732435172454926 | 98.93 | 21.70 |
|
| 33 |
+
|
| 34 |
+
The native score is the entailment softmax; flag scores greater than or equal to the threshold. The second cutoff was frozen on validation before testing. Its reported recall is the measured test recall. These are single-checkpoint results, separate from the paper's multi-seed averages.
|
| 35 |
+
|
| 36 |
## Use
|
| 37 |
|
| 38 |
Requires CUDA with BF16 support.
|