resproj007 commited on
Commit
b410d67
·
verified ·
1 Parent(s): 97f9710

Model save

Browse files
Files changed (4) hide show
  1. README.md +79 -0
  2. config.json +119 -0
  3. model.safetensors +3 -0
  4. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: cc-by-nc-4.0
4
+ base_model: facebook/mms-1b-all
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - accuracy
9
+ model-index:
10
+ - name: mms_severity_classifier
11
+ results: []
12
+ ---
13
+
14
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
15
+ should probably proofread and complete it, then remove this comment. -->
16
+
17
+ # mms_severity_classifier
18
+
19
+ This model is a fine-tuned version of [facebook/mms-1b-all](https://huggingface.co/facebook/mms-1b-all) on an unknown dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 0.0834
22
+ - Accuracy: 0.9787
23
+ - F1 Macro: 0.9750
24
+ - F1 Weighted: 0.9786
25
+ - F1 Mild: 0.9581
26
+ - F1 Moderate: 0.9812
27
+ - F1 Normal: 0.9719
28
+ - F1 Severe: 0.9886
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: 3e-05
48
+ - train_batch_size: 8
49
+ - eval_batch_size: 8
50
+ - seed: 42
51
+ - gradient_accumulation_steps: 4
52
+ - total_train_batch_size: 32
53
+ - optimizer: Use adamw_torch_fused with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
54
+ - lr_scheduler_type: linear
55
+ - lr_scheduler_warmup_ratio: 0.1
56
+ - num_epochs: 10
57
+
58
+ ### Training results
59
+
60
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 Macro | F1 Weighted | F1 Mild | F1 Moderate | F1 Normal | F1 Severe |
61
+ |:-------------:|:-----:|:-----:|:---------------:|:--------:|:--------:|:-----------:|:-------:|:-----------:|:---------:|:---------:|
62
+ | 0.3997 | 1.0 | 1210 | 0.3725 | 0.8652 | 0.8510 | 0.8637 | 0.7821 | 0.8791 | 0.8618 | 0.8809 |
63
+ | 0.1947 | 2.0 | 2420 | 0.2191 | 0.9193 | 0.9067 | 0.9195 | 0.8594 | 0.9330 | 0.8828 | 0.9517 |
64
+ | 0.1382 | 3.0 | 3630 | 0.1758 | 0.9433 | 0.9336 | 0.9432 | 0.8950 | 0.9519 | 0.9185 | 0.9690 |
65
+ | 0.1204 | 4.0 | 4840 | 0.1432 | 0.9573 | 0.9517 | 0.9575 | 0.9365 | 0.9653 | 0.9324 | 0.9726 |
66
+ | 0.0815 | 5.0 | 6050 | 0.0922 | 0.9726 | 0.9699 | 0.9727 | 0.9639 | 0.9748 | 0.9567 | 0.9841 |
67
+ | 0.0647 | 6.0 | 7260 | 0.0896 | 0.9753 | 0.9710 | 0.9753 | 0.9561 | 0.9819 | 0.9632 | 0.9829 |
68
+ | 0.0864 | 7.0 | 8470 | 0.1191 | 0.9726 | 0.9699 | 0.9726 | 0.9581 | 0.9734 | 0.9652 | 0.9829 |
69
+ | 0.0243 | 8.0 | 9680 | 0.0870 | 0.9787 | 0.9776 | 0.9787 | 0.9821 | 0.9810 | 0.9635 | 0.9840 |
70
+ | 0.0455 | 9.0 | 10890 | 0.0909 | 0.9760 | 0.9715 | 0.9759 | 0.9501 | 0.9795 | 0.9701 | 0.9863 |
71
+ | 0.0452 | 10.0 | 12100 | 0.0834 | 0.9787 | 0.9750 | 0.9786 | 0.9581 | 0.9812 | 0.9719 | 0.9886 |
72
+
73
+
74
+ ### Framework versions
75
+
76
+ - Transformers 4.57.6
77
+ - Pytorch 2.8.0+cu128
78
+ - Datasets 4.5.0
79
+ - Tokenizers 0.22.2
config.json ADDED
@@ -0,0 +1,119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "activation_dropout": 0.05,
3
+ "adapter_attn_dim": 16,
4
+ "adapter_kernel_size": 3,
5
+ "adapter_stride": 2,
6
+ "add_adapter": false,
7
+ "apply_spec_augment": true,
8
+ "architectures": [
9
+ "Wav2Vec2ForSequenceClassification"
10
+ ],
11
+ "attention_dropout": 0.05,
12
+ "bos_token_id": 1,
13
+ "classifier_proj_size": 256,
14
+ "codevector_dim": 1024,
15
+ "contrastive_logits_temperature": 0.1,
16
+ "conv_bias": true,
17
+ "conv_dim": [
18
+ 512,
19
+ 512,
20
+ 512,
21
+ 512,
22
+ 512,
23
+ 512,
24
+ 512
25
+ ],
26
+ "conv_kernel": [
27
+ 10,
28
+ 3,
29
+ 3,
30
+ 3,
31
+ 3,
32
+ 2,
33
+ 2
34
+ ],
35
+ "conv_stride": [
36
+ 5,
37
+ 2,
38
+ 2,
39
+ 2,
40
+ 2,
41
+ 2,
42
+ 2
43
+ ],
44
+ "ctc_loss_reduction": "mean",
45
+ "ctc_zero_infinity": false,
46
+ "diversity_loss_weight": 0.1,
47
+ "do_stable_layer_norm": true,
48
+ "dtype": "float32",
49
+ "eos_token_id": 2,
50
+ "feat_extract_activation": "gelu",
51
+ "feat_extract_dropout": 0.0,
52
+ "feat_extract_norm": "layer",
53
+ "feat_proj_dropout": 0.05,
54
+ "feat_quantizer_dropout": 0.0,
55
+ "final_dropout": 0.05,
56
+ "hidden_act": "gelu",
57
+ "hidden_dropout": 0.05,
58
+ "hidden_size": 1280,
59
+ "id2label": {
60
+ "0": "Mild",
61
+ "1": "Moderate",
62
+ "2": "Normal",
63
+ "3": "Severe"
64
+ },
65
+ "initializer_range": 0.02,
66
+ "intermediate_size": 5120,
67
+ "label2id": {
68
+ "Mild": 0,
69
+ "Moderate": 1,
70
+ "Normal": 2,
71
+ "Severe": 3
72
+ },
73
+ "layer_norm_eps": 1e-05,
74
+ "layerdrop": 0.05,
75
+ "mask_feature_length": 10,
76
+ "mask_feature_min_masks": 0,
77
+ "mask_feature_prob": 0.0,
78
+ "mask_time_length": 10,
79
+ "mask_time_min_masks": 2,
80
+ "mask_time_prob": 0.05,
81
+ "model_type": "wav2vec2",
82
+ "num_adapter_layers": 3,
83
+ "num_attention_heads": 16,
84
+ "num_codevector_groups": 2,
85
+ "num_codevectors_per_group": 320,
86
+ "num_conv_pos_embedding_groups": 16,
87
+ "num_conv_pos_embeddings": 128,
88
+ "num_feat_extract_layers": 7,
89
+ "num_hidden_layers": 48,
90
+ "num_negatives": 100,
91
+ "output_hidden_size": 1280,
92
+ "pad_token_id": 0,
93
+ "proj_codevector_dim": 1024,
94
+ "tdnn_dilation": [
95
+ 1,
96
+ 2,
97
+ 3,
98
+ 1,
99
+ 1
100
+ ],
101
+ "tdnn_dim": [
102
+ 512,
103
+ 512,
104
+ 512,
105
+ 512,
106
+ 1500
107
+ ],
108
+ "tdnn_kernel": [
109
+ 5,
110
+ 3,
111
+ 3,
112
+ 1,
113
+ 1
114
+ ],
115
+ "transformers_version": "4.57.6",
116
+ "use_weighted_layer_sum": false,
117
+ "vocab_size": 154,
118
+ "xvector_output_dim": 512
119
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6e3b0d1ede068e358627f77e6f404d0975ca3f9deade05ab16d5d1fe22519cfb
3
+ size 3860048120
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:69ac139922d475a267d596b5cf9f21bb70737c75a061057064e068e34a7a1af8
3
+ size 5905