Pommu commited on
Commit
d8c06cd
·
verified ·
1 Parent(s): 87335e2

Fine-tuned RoBERTa for enterprise threat detection

Browse files
Files changed (4) hide show
  1. README.md +64 -0
  2. config.json +39 -0
  3. model.safetensors +3 -0
  4. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: mit
4
+ base_model: roberta-base
5
+ tags:
6
+ - generated_from_trainer
7
+ model-index:
8
+ - name: model_output
9
+ results: []
10
+ ---
11
+
12
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
13
+ should probably proofread and complete it, then remove this comment. -->
14
+
15
+ # model_output
16
+
17
+ This model is a fine-tuned version of [roberta-base](https://huggingface.co/roberta-base) on the None dataset.
18
+ It achieves the following results on the evaluation set:
19
+ - Loss: 0.2913
20
+ - F1 Macro: 0.7590
21
+ - F1 Weighted: 0.9077
22
+
23
+ ## Model description
24
+
25
+ More information needed
26
+
27
+ ## Intended uses & limitations
28
+
29
+ More information needed
30
+
31
+ ## Training and evaluation data
32
+
33
+ More information needed
34
+
35
+ ## Training procedure
36
+
37
+ ### Training hyperparameters
38
+
39
+ The following hyperparameters were used during training:
40
+ - learning_rate: 2e-05
41
+ - train_batch_size: 16
42
+ - eval_batch_size: 32
43
+ - seed: 42
44
+ - optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
45
+ - lr_scheduler_type: linear
46
+ - lr_scheduler_warmup_steps: 0.1
47
+ - num_epochs: 3
48
+ - mixed_precision_training: Native AMP
49
+
50
+ ### Training results
51
+
52
+ | Training Loss | Epoch | Step | Validation Loss | F1 Macro | F1 Weighted |
53
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:-----------:|
54
+ | 0.2656 | 1.0 | 1240 | 0.2705 | 0.6222 | 0.8845 |
55
+ | 0.2247 | 2.0 | 2480 | 0.2764 | 0.7399 | 0.8991 |
56
+ | 0.1596 | 3.0 | 3720 | 0.2913 | 0.7590 | 0.9077 |
57
+
58
+
59
+ ### Framework versions
60
+
61
+ - Transformers 5.0.0
62
+ - Pytorch 2.11.0+cu128
63
+ - Datasets 4.0.0
64
+ - Tokenizers 0.22.2
config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_cross_attention": false,
3
+ "architectures": [
4
+ "RobertaForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "dtype": "float32",
10
+ "eos_token_id": 2,
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 768,
14
+ "id2label": {
15
+ "0": "threatening",
16
+ "1": "harassment",
17
+ "2": "safe"
18
+ },
19
+ "initializer_range": 0.02,
20
+ "intermediate_size": 3072,
21
+ "is_decoder": false,
22
+ "label2id": {
23
+ "harassment": 1,
24
+ "safe": 2,
25
+ "threatening": 0
26
+ },
27
+ "layer_norm_eps": 1e-05,
28
+ "max_position_embeddings": 514,
29
+ "model_type": "roberta",
30
+ "num_attention_heads": 12,
31
+ "num_hidden_layers": 12,
32
+ "pad_token_id": 1,
33
+ "problem_type": "single_label_classification",
34
+ "tie_word_embeddings": true,
35
+ "transformers_version": "5.0.0",
36
+ "type_vocab_size": 1,
37
+ "use_cache": false,
38
+ "vocab_size": 50265
39
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3c45c6da3ae2973ac2cca3fb160cd79fdd75117c8faec05ed32da3d19cc029aa
3
+ size 498615876
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c9f7729dfcbbe71f621fa0406722b5af16eda8a9e54e932d598b8b7c83631f72
3
+ size 5201