amitca71 commited on
Commit
a6dada0
·
verified ·
1 Parent(s): a781263

amitca71/marabert2-levantine-hate-model

Browse files
Files changed (4) hide show
  1. README.md +66 -0
  2. config.json +47 -0
  3. model.safetensors +3 -0
  4. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ base_model: UBC-NLP/MARBERTv2
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ model-index:
9
+ - name: marbert_frozen_final
10
+ results: []
11
+ ---
12
+
13
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
+ should probably proofread and complete it, then remove this comment. -->
15
+
16
+ # marbert_frozen_final
17
+
18
+ This model is a fine-tuned version of [UBC-NLP/MARBERTv2](https://huggingface.co/UBC-NLP/MARBERTv2) on the None dataset.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 0.4863
21
+ - Accuracy: 0.8404
22
+ - F1 Macro: 0.7649
23
+
24
+ ## Model description
25
+
26
+ More information needed
27
+
28
+ ## Intended uses & limitations
29
+
30
+ More information needed
31
+
32
+ ## Training and evaluation data
33
+
34
+ More information needed
35
+
36
+ ## Training procedure
37
+
38
+ ### Training hyperparameters
39
+
40
+ The following hyperparameters were used during training:
41
+ - learning_rate: 2e-05
42
+ - train_batch_size: 16
43
+ - eval_batch_size: 32
44
+ - seed: 42
45
+ - optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
46
+ - lr_scheduler_type: linear
47
+ - num_epochs: 15
48
+
49
+ ### Training results
50
+
51
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 Macro |
52
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:--------:|
53
+ | No log | 1.0 | 398 | 0.5751 | 0.8153 | 0.7039 |
54
+ | 0.6110 | 2.0 | 796 | 0.5615 | 0.8039 | 0.7199 |
55
+ | 0.3777 | 3.0 | 1194 | 0.4863 | 0.8381 | 0.7632 |
56
+ | 0.2827 | 4.0 | 1592 | 0.5130 | 0.8609 | 0.7924 |
57
+ | 0.2827 | 5.0 | 1990 | 0.5780 | 0.8677 | 0.8048 |
58
+ | 0.2192 | 6.0 | 2388 | 0.6634 | 0.8837 | 0.8271 |
59
+
60
+
61
+ ### Framework versions
62
+
63
+ - Transformers 5.0.0
64
+ - Pytorch 2.9.0+cu126
65
+ - Datasets 4.0.0
66
+ - Tokenizers 0.22.2
config.json ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_cross_attention": false,
3
+ "architectures": [
4
+ "BertForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": null,
8
+ "classifier_dropout": null,
9
+ "directionality": "bidi",
10
+ "dtype": "float32",
11
+ "eos_token_id": null,
12
+ "gradient_checkpointing": false,
13
+ "hidden_act": "gelu",
14
+ "hidden_dropout_prob": 0.1,
15
+ "hidden_size": 768,
16
+ "id2label": {
17
+ "0": "Abusive",
18
+ "1": "Normal",
19
+ "2": "Hate"
20
+ },
21
+ "initializer_range": 0.02,
22
+ "intermediate_size": 3072,
23
+ "is_decoder": false,
24
+ "label2id": {
25
+ "Abusive": 0,
26
+ "Hate": 2,
27
+ "Normal": 1
28
+ },
29
+ "layer_norm_eps": 1e-12,
30
+ "max_position_embeddings": 512,
31
+ "model_type": "bert",
32
+ "num_attention_heads": 12,
33
+ "num_hidden_layers": 12,
34
+ "pad_token_id": 0,
35
+ "pooler_fc_size": 768,
36
+ "pooler_num_attention_heads": 12,
37
+ "pooler_num_fc_layers": 3,
38
+ "pooler_size_per_head": 128,
39
+ "pooler_type": "first_token_transform",
40
+ "position_embedding_type": "absolute",
41
+ "problem_type": "single_label_classification",
42
+ "tie_word_embeddings": true,
43
+ "transformers_version": "5.0.0",
44
+ "type_vocab_size": 2,
45
+ "use_cache": false,
46
+ "vocab_size": 100000
47
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:461b3da0fd0a8d075400c243690f7ebc022fc7a669936ed19794e1882967c8f4
3
+ size 651398124
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:060e5dda2352ad2d1e294dc4b0433c2db9efc57bf5c5e9375a5db4f3b0296f35
3
+ size 5201