Instructions to use SkillJev/SkillJev-2B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SkillJev/SkillJev-2B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="SkillJev/SkillJev-2B")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForSequenceClassification processor = AutoProcessor.from_pretrained("SkillJev/SkillJev-2B") model = AutoModelForSequenceClassification.from_pretrained("SkillJev/SkillJev-2B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
SkillJev-2B
8K Markdown deployment release · v0.1.0
SkillJev is a University of Toronto MScAC AI team project in collaboration with TrendAI.
SkillJev-2B screens AI-agent skills from SKILL.md and returns a maliciousness score and a review decision in one forward pass.
Complete merged weights, the original LoRA adapter and a local scoring script are included.
Run locally
Use Linux, Python 3.12 and a CUDA GPU with BF16 support. The runtime and full context limit were verified on an A100 80GB.
python -m pip install huggingface_hub==1.33.0
hf download SkillJev/SkillJev-2B --revision v0.1.0 --local-dir SkillJev-2B
python -m pip install -r SkillJev-2B/requirements/inference.txt
python SkillJev-2B/scan.py path/to/SKILL.md --output score.json
The scanner reads text without executing it. For a bundled example, replace the input path with SkillJev-2B/examples/local-inventory/SKILL.md. Add --inspect to inspect the input without loading the model.
The default score threshold is 0.5. Add --operating-point high-recall to use the frozen threshold targeting 99% OOF recall. Full-precision thresholds are loaded from deployment_settings.json.
Evaluation
Three-fold out-of-fold (OOF) evaluation on 13,514 skills, with 7,500 malicious and 6,014 benign examples.
| Operating point | Score threshold | Recall | Benign FPR | Precision | F1 |
|---|---|---|---|---|---|
| Default | 0.500000 | 96.96% | 0.88% | 99.28% | 98.10% |
| High recall | 0.011642 | 99.00% | 15.71% | 88.71% | 93.57% |
AUPRC (average precision) 0.9966 · AUROC 0.9946. Per-skill predictions and full metrics are included.
Each OOF prediction comes from a model trained without that skill's content group. Thresholds were selected on pooled OOF predictions and transferred to the final model trained on all 13,514 records. These are OOF results, not an independent test of the final model. Performance can change on new collections.
Training and input
Initialized from OpenJev 2B, then trained for one epoch with seed 42, LoRA rank 8 and a trainable NLI classification head. The final model uses all eligible records from the pinned public training dataset, with labels inherited from the upstream benchmarks.
The model pairs the Markdown with the fixed hypothesis “This AI agent skill is malicious.” Its score is the entailment softmax output, not a separately calibrated probability. Inputs beyond 8,192 tokens are truncated while retaining the hypothesis, and truncation is recorded in the output. A low score does not certify a skill or its package as safe.
Training configuration · Adapter · Checksums
Earlier release
The original SkillJev-Direct SBR experiment remains available at v1, including its weights, calibration and test results. For v0.1.0, use the bundled scan.py entry point. The earlier score.py and calibration settings belong to v1.
Acknowledgments
We thank the Nebula team at TrendAI (@trendmicro-ailab) for discussing the security of agent skills with us during an industry project at the University of Toronto.
License
Weights, code and configuration are Apache-2.0 for rights held by the contributors. Documentation and predictions are CC BY 4.0. Upstream model and dataset terms remain applicable. See third-party notices.
Source and citation
This release uses the unchanged weights, input pipeline and thresholds from SkillScreen-2B-Markdown v0.1.0. Method attribution and paper citation are provided in CITATION.cff.
- Downloads last month
- 210