Enkhmanlai commited on
Commit
2a73bdb
·
verified ·
1 Parent(s): 7dbe2eb

mmbert-news-classifier

Browse files
README.md ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: mit
4
+ base_model: jhu-clsp/mmBERT-small
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - accuracy
9
+ - f1
10
+ model-index:
11
+ - name: mmbert-xnli
12
+ results: []
13
+ ---
14
+
15
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
16
+ should probably proofread and complete it, then remove this comment. -->
17
+
18
+ # mmbert-xnli
19
+
20
+ This model is a fine-tuned version of [jhu-clsp/mmBERT-small](https://huggingface.co/jhu-clsp/mmBERT-small) on the None dataset.
21
+ It achieves the following results on the evaluation set:
22
+ - Loss: 0.3736
23
+ - Accuracy: 0.8863
24
+ - F1: 0.8863
25
+
26
+ ## Model description
27
+
28
+ More information needed
29
+
30
+ ## Intended uses & limitations
31
+
32
+ More information needed
33
+
34
+ ## Training and evaluation data
35
+
36
+ More information needed
37
+
38
+ ## Training procedure
39
+
40
+ ### Training hyperparameters
41
+
42
+ The following hyperparameters were used during training:
43
+ - learning_rate: 3e-05
44
+ - train_batch_size: 64
45
+ - eval_batch_size: 64
46
+ - seed: 42
47
+ - optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
48
+ - lr_scheduler_type: linear
49
+ - num_epochs: 3
50
+
51
+ ### Training results
52
+
53
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
54
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|
55
+ | No log | 1.0 | 337 | 0.4502 | 0.8600 | 0.8587 |
56
+ | 0.6169 | 2.0 | 674 | 0.3983 | 0.8796 | 0.8786 |
57
+ | 0.2926 | 3.0 | 1011 | 0.3693 | 0.8904 | 0.8907 |
58
+
59
+
60
+ ### Framework versions
61
+
62
+ - Transformers 4.52.4
63
+ - Pytorch 2.6.0+cu124
64
+ - Datasets 3.6.0
65
+ - Tokenizers 0.21.2
config.json ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "ModernBertForSequenceClassification"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 2,
8
+ "classifier_activation": "gelu",
9
+ "classifier_bias": false,
10
+ "classifier_dropout": 0.0,
11
+ "classifier_pooling": "mean",
12
+ "cls_token_id": 1,
13
+ "decoder_bias": true,
14
+ "deterministic_flash_attn": false,
15
+ "embedding_dropout": 0.0,
16
+ "eos_token_id": 1,
17
+ "global_attn_every_n_layers": 3,
18
+ "global_rope_theta": 160000,
19
+ "gradient_checkpointing": false,
20
+ "hidden_activation": "gelu",
21
+ "hidden_size": 384,
22
+ "id2label": {
23
+ "0": "LABEL_0",
24
+ "1": "LABEL_1",
25
+ "2": "LABEL_2",
26
+ "3": "LABEL_3",
27
+ "4": "LABEL_4",
28
+ "5": "LABEL_5",
29
+ "6": "LABEL_6",
30
+ "7": "LABEL_7",
31
+ "8": "LABEL_8"
32
+ },
33
+ "initializer_cutoff_factor": 2.0,
34
+ "initializer_range": 0.02,
35
+ "intermediate_size": 1152,
36
+ "label2id": {
37
+ "LABEL_0": 0,
38
+ "LABEL_1": 1,
39
+ "LABEL_2": 2,
40
+ "LABEL_3": 3,
41
+ "LABEL_4": 4,
42
+ "LABEL_5": 5,
43
+ "LABEL_6": 6,
44
+ "LABEL_7": 7,
45
+ "LABEL_8": 8
46
+ },
47
+ "layer_norm_eps": 1e-05,
48
+ "local_attention": 128,
49
+ "local_rope_theta": 160000,
50
+ "mask_token_id": 4,
51
+ "max_position_embeddings": 8192,
52
+ "mlp_bias": false,
53
+ "mlp_dropout": 0.0,
54
+ "model_type": "modernbert",
55
+ "norm_bias": false,
56
+ "norm_eps": 1e-05,
57
+ "num_attention_heads": 6,
58
+ "num_hidden_layers": 22,
59
+ "pad_token_id": 0,
60
+ "position_embedding_type": "sans_pos",
61
+ "problem_type": "single_label_classification",
62
+ "repad_logits_with_grad": false,
63
+ "sep_token_id": 1,
64
+ "sparse_pred_ignore_index": -100,
65
+ "sparse_prediction": false,
66
+ "torch_dtype": "float32",
67
+ "transformers_version": "4.52.4",
68
+ "vocab_size": 256000
69
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3e37febace17010843fefc718f9255a0fbf52db38602b7a82fdf52542b65a6d3
3
+ size 562594180
runs/Sep25_04-25-18_af36607984a6/events.out.tfevents.1758774327.af36607984a6.92.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4ccafbb24ce4c862aad0b96d52753c93415337c3a6fe759db71f7088c56606aa
3
+ size 5885
runs/Sep25_04-47-26_af36607984a6/events.out.tfevents.1758775694.af36607984a6.36.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:243c82d74c83333e91cb9e96a53047d9ab9444d7ddd68bb209213f28cbd9b025
3
+ size 7767
runs/Sep25_04-47-26_af36607984a6/events.out.tfevents.1758778450.af36607984a6.36.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b478e412d163be9cdd3dc94e841ab4c02579f39d8fd46e48246bf874ebcdd42b
3
+ size 457
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6f7a46de687cc4a13524b40a36b3c8bd51cb4f0028519302d3de24745b9eb955
3
+ size 5304