Instructions to use Arch11yad/graphcodebert_xss with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Arch11yad/graphcodebert_xss with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Arch11yad/graphcodebert_xss")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Arch11yad/graphcodebert_xss") model = AutoModelForSequenceClassification.from_pretrained("Arch11yad/graphcodebert_xss", device_map="auto") - Notebooks
- Google Colab
- Kaggle
graphcodebert_xss
This model is a fine-tuned version of Arch11yad/HTML_Malicious_detect_y on the None dataset. It achieves the following results on the evaluation set:
- Loss: 0.0057
- Accuracy: 0.9994
- F1: 0.9994
- Precision: 0.9987
- Recall: 1.0
Model description
More information needed
Intended uses & limitations
More information needed
Training and evaluation data
More information needed
Training procedure
Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 2e-05
- train_batch_size: 8
- eval_batch_size: 8
- seed: 42
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- num_epochs: 3
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
|---|---|---|---|---|---|---|---|
| 0.0036 | 1.0 | 1984 | 0.0020 | 0.9994 | 0.9994 | 0.9987 | 1.0 |
| 0.0002 | 2.0 | 3968 | 0.0080 | 0.9994 | 0.9994 | 0.9987 | 1.0 |
| 0.0 | 3.0 | 5952 | 0.0057 | 0.9994 | 0.9994 | 0.9987 | 1.0 |
Framework versions
- Transformers 4.57.1
- Pytorch 2.8.0+cu126
- Datasets 4.4.1
- Tokenizers 0.22.1
- Downloads last month
- 17
Model tree for Arch11yad/graphcodebert_xss
Base model
Arch11yad/HTML_Malicious_detect_y