Apv commited on
Commit
5aa3a07
·
1 Parent(s): 076d878

Upload TFFlaubertForSequenceClassification

Browse files
Files changed (3) hide show
  1. README.md +73 -0
  2. config.json +91 -0
  3. tf_model.h5 +3 -0
README.md ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ tags:
4
+ - generated_from_keras_callback
5
+ model-index:
6
+ - name: Flaubert_1619
7
+ results: []
8
+ ---
9
+
10
+ <!-- This model card has been generated automatically according to the information Keras had access to. You should
11
+ probably proofread and complete it, then remove this comment. -->
12
+
13
+ # Flaubert_1619
14
+
15
+ This model is a fine-tuned version of [flaubert/flaubert_base_cased](https://huggingface.co/flaubert/flaubert_base_cased) on an unknown dataset.
16
+ It achieves the following results on the evaluation set:
17
+ - Train Loss: 0.2458
18
+ - Validation Loss: 0.5339
19
+ - Train Accuracy: 0.8170
20
+ - Epoch: 19
21
+
22
+ ## Model description
23
+
24
+ More information needed
25
+
26
+ ## Intended uses & limitations
27
+
28
+ More information needed
29
+
30
+ ## Training and evaluation data
31
+
32
+ More information needed
33
+
34
+ ## Training procedure
35
+
36
+ ### Training hyperparameters
37
+
38
+ The following hyperparameters were used during training:
39
+ - optimizer: {'name': 'Adam', 'weight_decay': None, 'clipnorm': None, 'global_clipnorm': None, 'clipvalue': None, 'use_ema': False, 'ema_momentum': 0.99, 'ema_overwrite_frequency': None, 'jit_compile': True, 'is_legacy_optimizer': False, 'learning_rate': {'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 2e-05, 'decay_steps': 1432, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}}, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False}
40
+ - training_precision: float32
41
+
42
+ ### Training results
43
+
44
+ | Train Loss | Validation Loss | Train Accuracy | Epoch |
45
+ |:----------:|:---------------:|:--------------:|:-----:|
46
+ | 1.0000 | 0.5841 | 0.7769 | 0 |
47
+ | 0.5526 | 0.5284 | 0.7845 | 1 |
48
+ | 0.3909 | 0.4806 | 0.8221 | 2 |
49
+ | 0.2798 | 0.5339 | 0.8170 | 3 |
50
+ | 0.2378 | 0.5339 | 0.8170 | 4 |
51
+ | 0.2514 | 0.5339 | 0.8170 | 5 |
52
+ | 0.2403 | 0.5339 | 0.8170 | 6 |
53
+ | 0.2373 | 0.5339 | 0.8170 | 7 |
54
+ | 0.2441 | 0.5339 | 0.8170 | 8 |
55
+ | 0.2529 | 0.5339 | 0.8170 | 9 |
56
+ | 0.2400 | 0.5339 | 0.8170 | 10 |
57
+ | 0.2337 | 0.5339 | 0.8170 | 11 |
58
+ | 0.2394 | 0.5339 | 0.8170 | 12 |
59
+ | 0.2383 | 0.5339 | 0.8170 | 13 |
60
+ | 0.2464 | 0.5339 | 0.8170 | 14 |
61
+ | 0.2464 | 0.5339 | 0.8170 | 15 |
62
+ | 0.2468 | 0.5339 | 0.8170 | 16 |
63
+ | 0.2427 | 0.5339 | 0.8170 | 17 |
64
+ | 0.2546 | 0.5339 | 0.8170 | 18 |
65
+ | 0.2458 | 0.5339 | 0.8170 | 19 |
66
+
67
+
68
+ ### Framework versions
69
+
70
+ - Transformers 4.30.2
71
+ - TensorFlow 2.12.0
72
+ - Datasets 2.12.0
73
+ - Tokenizers 0.13.3
config.json ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "flaubert/flaubert_base_cased",
3
+ "amp": 1,
4
+ "architectures": [
5
+ "FlaubertForSequenceClassification"
6
+ ],
7
+ "asm": false,
8
+ "attention_dropout": 0.1,
9
+ "bos_index": 0,
10
+ "bos_token_id": 0,
11
+ "bptt": 512,
12
+ "causal": false,
13
+ "clip_grad_norm": 5,
14
+ "dropout": 0.1,
15
+ "emb_dim": 768,
16
+ "embed_init_std": 0.02209708691207961,
17
+ "encoder_only": true,
18
+ "end_n_top": 5,
19
+ "eos_index": 1,
20
+ "fp16": true,
21
+ "gelu_activation": true,
22
+ "group_by_size": true,
23
+ "id2label": {
24
+ "0": "Pas de cyberharc\u00e8lement",
25
+ "1": "Racisme",
26
+ "2": "Sexisme",
27
+ "3": "Aggression"
28
+ },
29
+ "id2lang": {
30
+ "0": "fr"
31
+ },
32
+ "init_std": 0.02,
33
+ "is_encoder": true,
34
+ "label2id": {
35
+ "Aggression": 3,
36
+ "Pas de cyberharc\u00e8lement": 0,
37
+ "Racisme": 1,
38
+ "Sexisme": 2
39
+ },
40
+ "lang2id": {
41
+ "fr": 0
42
+ },
43
+ "lang_id": 0,
44
+ "langs": [
45
+ "fr"
46
+ ],
47
+ "layer_norm_eps": 1e-12,
48
+ "layerdrop": 0.0,
49
+ "lg_sampling_factor": -1,
50
+ "lgs": "fr",
51
+ "mask_index": 5,
52
+ "mask_token_id": 0,
53
+ "max_batch_size": 0,
54
+ "max_position_embeddings": 512,
55
+ "max_vocab": -1,
56
+ "mlm_steps": [
57
+ [
58
+ "fr",
59
+ null
60
+ ]
61
+ ],
62
+ "model_type": "flaubert",
63
+ "n_heads": 12,
64
+ "n_langs": 1,
65
+ "n_layers": 12,
66
+ "pad_index": 2,
67
+ "pad_token_id": 2,
68
+ "pre_norm": false,
69
+ "sample_alpha": 0,
70
+ "share_inout_emb": true,
71
+ "sinusoidal_embeddings": false,
72
+ "start_n_top": 5,
73
+ "summary_activation": null,
74
+ "summary_first_dropout": 0.1,
75
+ "summary_proj_to_labels": true,
76
+ "summary_type": "first",
77
+ "summary_use_proj": true,
78
+ "tokens_per_batch": -1,
79
+ "transformers_version": "4.30.2",
80
+ "unk_index": 3,
81
+ "use_lang_emb": true,
82
+ "vocab_size": 68729,
83
+ "word_blank": 0,
84
+ "word_dropout": 0,
85
+ "word_keep": 0.1,
86
+ "word_mask": 0.8,
87
+ "word_mask_keep_rand": "0.8,0.1,0.1",
88
+ "word_pred": 0.15,
89
+ "word_rand": 0.1,
90
+ "word_shuffle": 0
91
+ }
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:745f504f44793ca36929e71584783ee18bc553e45a74cf0c0a69737b5bff91ca
3
+ size 553167240