tadiecool29 commited on
Commit
a66db1f
·
verified ·
1 Parent(s): aec2c41

Full fine-tuned masakhane/afri-mt5-base on sentiment task

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: afl-3.0
4
+ base_model: masakhane/afri-mt5-base
5
+ tags:
6
+ - full-finetuning
7
+ - amharic
8
+ - sentiment-classification
9
+ - single-task
10
+ - generated_from_trainer
11
+ metrics:
12
+ - accuracy
13
+ model-index:
14
+ - name: MTL-FullFT-afri-mt5-base-sentiment
15
+ results: []
16
+ ---
17
+
18
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
19
+ should probably proofread and complete it, then remove this comment. -->
20
+
21
+ # MTL-FullFT-afri-mt5-base-sentiment
22
+
23
+ This model is a fine-tuned version of [masakhane/afri-mt5-base](https://huggingface.co/masakhane/afri-mt5-base) on an unknown dataset.
24
+ It achieves the following results on the evaluation set:
25
+ - Loss: 1.9457
26
+ - Accuracy: 0.6783
27
+ - Macro F1: 0.6676
28
+ - Exact Match: 0.6783
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: 0.0003
48
+ - train_batch_size: 16
49
+ - eval_batch_size: 32
50
+ - seed: 42
51
+ - gradient_accumulation_steps: 2
52
+ - total_train_batch_size: 32
53
+ - optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
54
+ - lr_scheduler_type: cosine
55
+ - lr_scheduler_warmup_steps: 300
56
+ - num_epochs: 10
57
+ - label_smoothing_factor: 0.1
58
+
59
+ ### Training results
60
+
61
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | Macro F1 | Exact Match |
62
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:--------:|:-----------:|
63
+ | 9.3722 | 1.0 | 189 | 2.1564 | 0.3566 | 0.1953 | 0.3566 |
64
+ | 4.0864 | 2.0 | 378 | 1.8879 | 0.6646 | 0.6569 | 0.6646 |
65
+ | 3.8180 | 3.0 | 567 | 1.8513 | 0.6658 | 0.6519 | 0.6658 |
66
+ | 3.6847 | 4.0 | 756 | 1.8845 | 0.6796 | 0.6771 | 0.6796 |
67
+ | 3.5788 | 5.0 | 945 | 1.8890 | 0.6671 | 0.6509 | 0.6671 |
68
+ | 3.4913 | 6.0 | 1134 | 1.9142 | 0.6808 | 0.6728 | 0.6808 |
69
+ | 3.4349 | 7.0 | 1323 | 1.9457 | 0.6783 | 0.6676 | 0.6783 |
70
+
71
+
72
+ ### Framework versions
73
+
74
+ - Transformers 5.0.0
75
+ - Pytorch 2.10.0+cu128
76
+ - Datasets 5.0.0
77
+ - Tokenizers 0.22.2
config.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "MT5ForConditionalGeneration"
4
+ ],
5
+ "attention_dropout": 0.1,
6
+ "bos_token_id": null,
7
+ "classifier_dropout": 0.0,
8
+ "d_ff": 2048,
9
+ "d_kv": 64,
10
+ "d_model": 768,
11
+ "decoder_start_token_id": 0,
12
+ "dense_act_fn": "gelu_new",
13
+ "dropout_rate": 0.1,
14
+ "dtype": "bfloat16",
15
+ "eos_token_id": 1,
16
+ "feed_forward_proj": "gated-gelu",
17
+ "initializer_factor": 1.0,
18
+ "is_decoder": false,
19
+ "is_encoder_decoder": true,
20
+ "is_gated_act": true,
21
+ "layer_norm_epsilon": 1e-06,
22
+ "model_type": "mt5",
23
+ "num_decoder_layers": 12,
24
+ "num_heads": 12,
25
+ "num_layers": 12,
26
+ "output_past": true,
27
+ "pad_token_id": 0,
28
+ "relative_attention_max_distance": 128,
29
+ "relative_attention_num_buckets": 32,
30
+ "tie_word_embeddings": true,
31
+ "tokenizer_class": "T5Tokenizer",
32
+ "transformers_version": "5.0.0",
33
+ "use_cache": false,
34
+ "vocab_size": 250112
35
+ }
generation_config.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": false,
3
+ "assistant_confidence_threshold": 0.4,
4
+ "assistant_lookbehind": 10,
5
+ "decoder_start_token_id": 0,
6
+ "diversity_penalty": 0.0,
7
+ "do_sample": false,
8
+ "early_stopping": false,
9
+ "encoder_no_repeat_ngram_size": 0,
10
+ "encoder_repetition_penalty": 1.0,
11
+ "eos_token_id": 1,
12
+ "epsilon_cutoff": 0.0,
13
+ "eta_cutoff": 0.0,
14
+ "length_penalty": 1.0,
15
+ "max_length": 20,
16
+ "min_length": 0,
17
+ "no_repeat_ngram_size": 0,
18
+ "num_assistant_tokens": 20,
19
+ "num_assistant_tokens_schedule": "constant",
20
+ "num_beam_groups": 1,
21
+ "num_beams": 1,
22
+ "num_return_sequences": 1,
23
+ "output_scores": false,
24
+ "pad_token_id": 0,
25
+ "remove_invalid_values": false,
26
+ "repetition_penalty": 1.0,
27
+ "return_dict_in_generate": false,
28
+ "target_lookbehind": 10,
29
+ "temperature": 1.0,
30
+ "top_k": 50,
31
+ "top_p": 1.0,
32
+ "transformers_version": "5.0.0",
33
+ "typical_p": 1.0,
34
+ "use_cache": true
35
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e1833689bdbe1c93020111f84f62f64d8014b0a0d7b118775e2a8ea4279b666b
3
+ size 2008678272
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0f863ac4ba16e5c05a534f69aeccb624f9177f940cac50650f42b8f67515aeae
3
+ size 16013692
tokenizer_config.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "eos_token": "</s>",
4
+ "extra_ids": 0,
5
+ "extra_special_tokens": [],
6
+ "is_local": false,
7
+ "model_max_length": 1000000000000000019884624838656,
8
+ "pad_token": "<pad>",
9
+ "sp_model_kwargs": {},
10
+ "tokenizer_class": "T5Tokenizer",
11
+ "unk_token": "<unk>"
12
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f4479e147dc482feefb5134d83e6b3611e1a57cdc077d61874ddcdad1d3b8c5f
3
+ size 5393