Skhaled99 commited on
Commit
a51aeb1
1 Parent(s): 2acfd67

hubert-egy-finetuned

Browse files
Files changed (5) hide show
  1. README.md +68 -0
  2. config.json +93 -0
  3. model.safetensors +3 -0
  4. preprocessor_config.json +10 -0
  5. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: cc-by-nc-4.0
4
+ base_model: omarxadel/hubert-large-arabic-egyptian
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - accuracy
9
+ model-index:
10
+ - name: hubert_mosa
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
+ # hubert_mosa
18
+
19
+ This model is a fine-tuned version of [omarxadel/hubert-large-arabic-egyptian](https://huggingface.co/omarxadel/hubert-large-arabic-egyptian) on the None dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 0.7918
22
+ - Accuracy: 0.6304
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: 8
43
+ - eval_batch_size: 8
44
+ - seed: 42
45
+ - gradient_accumulation_steps: 2
46
+ - total_train_batch_size: 16
47
+ - optimizer: Use 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
+ - lr_scheduler_warmup_ratio: 0.2
50
+ - num_epochs: 5
51
+
52
+ ### Training results
53
+
54
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
55
+ |:-------------:|:------:|:----:|:---------------:|:--------:|
56
+ | No log | 1.0 | 104 | 1.0925 | 0.3207 |
57
+ | No log | 2.0 | 208 | 0.8980 | 0.5652 |
58
+ | No log | 3.0 | 312 | 0.8091 | 0.6196 |
59
+ | No log | 4.0 | 416 | 0.7918 | 0.6304 |
60
+ | 0.9267 | 4.9565 | 515 | 0.7845 | 0.625 |
61
+
62
+
63
+ ### Framework versions
64
+
65
+ - Transformers 4.47.0.dev0
66
+ - Pytorch 2.5.1
67
+ - Datasets 3.1.1.dev0
68
+ - Tokenizers 0.20.3
config.json ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "omarxadel/hubert-large-arabic-egyptian",
3
+ "activation_dropout": 0.0,
4
+ "apply_spec_augment": true,
5
+ "architectures": [
6
+ "HubertForSequenceClassification"
7
+ ],
8
+ "attention_dropout": 0.1,
9
+ "bos_token_id": 1,
10
+ "classifier_proj_size": 256,
11
+ "conv_bias": true,
12
+ "conv_dim": [
13
+ 512,
14
+ 512,
15
+ 512,
16
+ 512,
17
+ 512,
18
+ 512,
19
+ 512
20
+ ],
21
+ "conv_kernel": [
22
+ 10,
23
+ 3,
24
+ 3,
25
+ 3,
26
+ 3,
27
+ 2,
28
+ 2
29
+ ],
30
+ "conv_stride": [
31
+ 5,
32
+ 2,
33
+ 2,
34
+ 2,
35
+ 2,
36
+ 2,
37
+ 2
38
+ ],
39
+ "ctc_loss_reduction": "mean",
40
+ "ctc_zero_infinity": false,
41
+ "do_stable_layer_norm": true,
42
+ "eos_token_id": 2,
43
+ "feat_extract_activation": "gelu",
44
+ "feat_extract_dropout": 0.0,
45
+ "feat_extract_norm": "layer",
46
+ "feat_proj_dropout": 0.0,
47
+ "feat_proj_layer_norm": true,
48
+ "final_dropout": 0.0,
49
+ "gradient_checkpointing": false,
50
+ "hidden_act": "gelu",
51
+ "hidden_dropout": 0.05,
52
+ "hidden_size": 1024,
53
+ "id2label": {
54
+ "0": "Positive",
55
+ "1": "Negative",
56
+ "2": "Neutral"
57
+ },
58
+ "initializer_range": 0.02,
59
+ "intermediate_size": 4096,
60
+ "label2id": {
61
+ "Negative": "1",
62
+ "Neutral": "2",
63
+ "Positive": "0"
64
+ },
65
+ "layer_norm_eps": 1e-05,
66
+ "layerdrop": 0.1,
67
+ "mask_channel_length": 10,
68
+ "mask_channel_min_space": 1,
69
+ "mask_channel_other": 0.0,
70
+ "mask_channel_prob": 0.0,
71
+ "mask_channel_selection": "static",
72
+ "mask_feature_length": 10,
73
+ "mask_feature_min_masks": 0,
74
+ "mask_feature_prob": 0.0,
75
+ "mask_time_length": 10,
76
+ "mask_time_min_masks": 2,
77
+ "mask_time_min_space": 1,
78
+ "mask_time_other": 0.0,
79
+ "mask_time_prob": 0.05,
80
+ "mask_time_selection": "static",
81
+ "model_type": "hubert",
82
+ "num_attention_heads": 16,
83
+ "num_conv_pos_embedding_groups": 16,
84
+ "num_conv_pos_embeddings": 128,
85
+ "num_feat_extract_layers": 7,
86
+ "num_hidden_layers": 24,
87
+ "pad_token_id": 42,
88
+ "tokenizer_class": "Wav2Vec2CTCTokenizer",
89
+ "torch_dtype": "float32",
90
+ "transformers_version": "4.47.0.dev0",
91
+ "use_weighted_layer_sum": false,
92
+ "vocab_size": 45
93
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ab85ab8e407cb38090df8c98f15f818957c7de5e5b2de5cabc4bfb67c1c87761
3
+ size 1262859492
preprocessor_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_normalize": true,
3
+ "feature_extractor_type": "Wav2Vec2FeatureExtractor",
4
+ "feature_size": 1,
5
+ "padding_side": "right",
6
+ "padding_value": 0.0,
7
+ "processor_class": "Wav2Vec2Processor",
8
+ "return_attention_mask": true,
9
+ "sampling_rate": 16000
10
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a37c4cfe733cbc26d8c98b924dbea832ff737a5ae1293c61aad227435fdf555e
3
+ size 5304