Text Classification
PEFT
Safetensors
Transformers
English
lora
security
xss
vulnerability-detection
cybersecurity
web-security
Instructions to use PentesterFlow/xss-decision with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use PentesterFlow/xss-decision with PEFT:
from peft import PeftModel from transformers import AutoModel base_model = AutoModel.from_pretrained("Qwen/Qwen3.5-0.8B-Base") model = PeftModel.from_pretrained(base_model, "PentesterFlow/xss-decision") - Transformers
How to use PentesterFlow/xss-decision with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="PentesterFlow/xss-decision")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("PentesterFlow/xss-decision", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download training_config.json from PentesterFlow/xss-decision: direct link, hf CLI and curl.
- Browser
- Download file 1.86 kB
-
https://huggingface.co/PentesterFlow/xss-decision/resolve/main/training_config.json
- Command line
-
hf download hf://PentesterFlow/xss-decision/training_config.json
-
curl -L -o training_config.json https://huggingface.co/PentesterFlow/xss-decision/resolve/main/training_config.json
1.86 kB
| { | |
| "args": { | |
| "base": "Qwen/Qwen3.5-0.8B-Base", | |
| "n_per_source": 1000, | |
| "epochs": 3, | |
| "lr": 1e-05, | |
| "head_lr": 0.0, | |
| "weight_decay": 0.01, | |
| "lora": 16, | |
| "accum": 2, | |
| "holdout": "", | |
| "perm_kl": 0.1, | |
| "perm_frac": 0.3, | |
| "ord_w": 0.0, | |
| "label_smoothing": 0.0, | |
| "brier_w": 0.0, | |
| "focal_gamma": 0.0, | |
| "suite": null, | |
| "train_sources": "", | |
| "device": "mps", | |
| "batch": 4, | |
| "dtype": "fp32", | |
| "weights_dtype": "fp32", | |
| "checkpointing": 1, | |
| "option_isolation": 0, | |
| "special_embeddings": 0, | |
| "head_dim": 256, | |
| "lora_targets": "all", | |
| "lora_placement": "full", | |
| "base_revision": "dc7cdfe2ee4154fa7e30f5b51ca41bfa40174e68", | |
| "p_none": 0.0, | |
| "p_none_distract": 0.0, | |
| "p_distract": 0.0, | |
| "p_none_pair": 0.0, | |
| "synthetic_repeat": 1, | |
| "public_frac": 1.0, | |
| "anchor": "", | |
| "anchor_w": 0.0, | |
| "anchor_sources": "", | |
| "out": "runs/kev-xss-v2/checkpoint", | |
| "data": "runs/kev-xss-v2/suite/train.jsonl", | |
| "max_state": 2048, | |
| "replay": 0, | |
| "init_from": "/Users/secfathy/.cache/huggingface/hub/models--jaredpalmer--kev-0.8b/snapshots/9a45d25eb2ab761841196625383fa1dff0e56c1e", | |
| "seed": 42 | |
| }, | |
| "suite_sha256": null, | |
| "base_revision": "dc7cdfe2ee4154fa7e30f5b51ca41bfa40174e68", | |
| "init_source": { | |
| "init_from": "/Users/secfathy/.cache/huggingface/hub/models--jaredpalmer--kev-0.8b/snapshots/9a45d25eb2ab761841196625383fa1dff0e56c1e", | |
| "resolved": "/Users/secfathy/.cache/huggingface/hub/models--jaredpalmer--kev-0.8b/snapshots/9a45d25eb2ab761841196625383fa1dff0e56c1e", | |
| "adapter_sha256": "9b908623acb162118575f4e7a94524f9c139c335be4bfb74d6cfceca01e1885a", | |
| "head_sha256": "f400bd12802b2b105ae45d6b03774a158a3db4fccff42413734ddca2e5c920b6", | |
| "adapter_tensors": 372 | |
| }, | |
| "ordinal_objective": "ranked_probability_score", | |
| "holdout": [] | |
| } | |