Instructions to use SkillScreen/SkillScreen-2B-SBR with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SkillScreen/SkillScreen-2B-SBR with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="SkillScreen/SkillScreen-2B-SBR")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForSequenceClassification processor = AutoProcessor.from_pretrained("SkillScreen/SkillScreen-2B-SBR") model = AutoModelForSequenceClassification.from_pretrained("SkillScreen/SkillScreen-2B-SBR", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Document source-checkpoint recall, FPR and evaluation thresholds
Browse files
README.md
CHANGED
|
@@ -21,6 +21,19 @@ Trained on MaliciousSkillBench using Source-Balanced Random (SBR), with an 8K in
|
|
| 21 |
|
| 22 |
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/`.
|
| 23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
## Use
|
| 25 |
|
| 26 |
Requires CUDA with BF16 support.
|
|
|
|
| 21 |
|
| 22 |
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/`.
|
| 23 |
|
| 24 |
+
## Source-checkpoint evaluation
|
| 25 |
+
|
| 26 |
+
Reference results for source LoRA checkpoint `direct-sbr-s42`, 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).
|
| 27 |
+
|
| 28 |
+
MaliciousSkillBench, **Source-Balanced Random (SBR) test**: 1,950 skills (1,501 malicious, 449 benign). Dataset revision `d4b42ce5766a6e0359c987cf59c1007cb3795a90`. Input is SKILL.md only, up to 8,192 tokens.
|
| 29 |
+
|
| 30 |
+
| Threshold rule | Native score threshold | Recall (%) | FPR (%) |
|
| 31 |
+
| --- | ---: | ---: | ---: |
|
| 32 |
+
| Default | 0.5 | 98.13 | 1.56 |
|
| 33 |
+
| Target 99% validation recall | 0.052618616955879056 | 99.47 | 9.80 |
|
| 34 |
+
|
| 35 |
+
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.
|
| 36 |
+
|
| 37 |
## Use
|
| 38 |
|
| 39 |
Requires CUDA with BF16 support.
|