viperDEE commited on
Commit
b6b43d2
·
verified ·
1 Parent(s): 710d024

Upload folder using huggingface_hub

Browse files
Files changed (6) hide show
  1. README.md +79 -0
  2. config.json +35 -0
  3. model.safetensors +3 -0
  4. tokenizer.json +0 -0
  5. tokenizer_config.json +14 -0
  6. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: distilbert-base-uncased
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - accuracy
9
+ - precision
10
+ - recall
11
+ - f1
12
+ model-index:
13
+ - name: distilbert-zim-phishing
14
+ results: []
15
+ ---
16
+
17
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
18
+ should probably proofread and complete it, then remove this comment. -->
19
+
20
+ # distilbert-zim-phishing
21
+
22
+ This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on the None dataset.
23
+ It achieves the following results on the evaluation set:
24
+ - Loss: 0.6010
25
+ - Accuracy: 0.75
26
+ - Precision: 0.7059
27
+ - Recall: 1.0
28
+ - F1: 0.8276
29
+
30
+ ## Model description
31
+
32
+ More information needed
33
+
34
+ ## Intended uses & limitations
35
+
36
+ More information needed
37
+
38
+ ## Training and evaluation data
39
+
40
+ More information needed
41
+
42
+ ## Training procedure
43
+
44
+ ### Training hyperparameters
45
+
46
+ The following hyperparameters were used during training:
47
+ - learning_rate: 2e-05
48
+ - train_batch_size: 4
49
+ - eval_batch_size: 8
50
+ - seed: 42
51
+ - optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
52
+ - lr_scheduler_type: linear
53
+ - lr_scheduler_warmup_steps: 20
54
+ - num_epochs: 10
55
+ - mixed_precision_training: Native AMP
56
+ - label_smoothing_factor: 0.1
57
+
58
+ ### Training results
59
+
60
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 |
61
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:---------:|:------:|:------:|
62
+ | 0.6881 | 1.0 | 17 | 0.6624 | 0.6 | 0.6 | 1.0 | 0.75 |
63
+ | 0.5902 | 2.0 | 34 | 0.6293 | 0.6 | 0.6 | 1.0 | 0.75 |
64
+ | 0.5222 | 3.0 | 51 | 0.5664 | 0.8 | 0.8333 | 0.8333 | 0.8333 |
65
+ | 0.4697 | 4.0 | 68 | 0.6121 | 0.8 | 0.8333 | 0.8333 | 0.8333 |
66
+ | 0.2758 | 5.0 | 85 | 0.7096 | 0.7 | 0.8 | 0.6667 | 0.7273 |
67
+ | 0.2025 | 6.0 | 102 | 0.8511 | 0.7 | 0.8 | 0.6667 | 0.7273 |
68
+ | 0.2784 | 7.0 | 119 | 0.8829 | 0.7 | 0.8 | 0.6667 | 0.7273 |
69
+ | 0.2275 | 8.0 | 136 | 0.9294 | 0.6 | 0.6667 | 0.6667 | 0.6667 |
70
+ | 0.2121 | 9.0 | 153 | 0.9439 | 0.6 | 0.6667 | 0.6667 | 0.6667 |
71
+ | 0.2087 | 10.0 | 170 | 0.9450 | 0.6 | 0.6667 | 0.6667 | 0.6667 |
72
+
73
+
74
+ ### Framework versions
75
+
76
+ - Transformers 5.0.0
77
+ - Pytorch 2.10.0+cu128
78
+ - Datasets 4.0.0
79
+ - Tokenizers 0.22.2
config.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "activation": "gelu",
3
+ "architectures": [
4
+ "DistilBertForSequenceClassification"
5
+ ],
6
+ "attention_dropout": 0.1,
7
+ "bos_token_id": null,
8
+ "dim": 768,
9
+ "dropout": 0.1,
10
+ "dtype": "float32",
11
+ "eos_token_id": null,
12
+ "hidden_dim": 3072,
13
+ "id2label": {
14
+ "0": "ham",
15
+ "1": "spam"
16
+ },
17
+ "initializer_range": 0.02,
18
+ "label2id": {
19
+ "ham": 0,
20
+ "spam": 1
21
+ },
22
+ "max_position_embeddings": 512,
23
+ "model_type": "distilbert",
24
+ "n_heads": 12,
25
+ "n_layers": 6,
26
+ "pad_token_id": 0,
27
+ "qa_dropout": 0.1,
28
+ "seq_classif_dropout": 0.2,
29
+ "sinusoidal_pos_embds": false,
30
+ "tie_weights_": true,
31
+ "tie_word_embeddings": true,
32
+ "transformers_version": "5.0.0",
33
+ "use_cache": false,
34
+ "vocab_size": 30522
35
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f17a29611412663e08b3431c8f044cef8be95e9c9818dc072b769f821c9bd08d
3
+ size 267832560
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "cls_token": "[CLS]",
4
+ "do_lower_case": true,
5
+ "is_local": false,
6
+ "mask_token": "[MASK]",
7
+ "model_max_length": 512,
8
+ "pad_token": "[PAD]",
9
+ "sep_token": "[SEP]",
10
+ "strip_accents": null,
11
+ "tokenize_chinese_chars": true,
12
+ "tokenizer_class": "BertTokenizer",
13
+ "unk_token": "[UNK]"
14
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0740ab727f1368aa47d469bffc1f8d6a4a8f62e4d38417ee22e65a72ce531911
3
+ size 5201