Apv commited on
Commit
2a19c5a
1 Parent(s): 66beee2

Training in progress epoch 0

Browse files
Files changed (7) hide show
  1. README.md +54 -0
  2. config.json +91 -0
  3. merges.txt +0 -0
  4. special_tokens_map.json +20 -0
  5. tf_model.h5 +3 -0
  6. tokenizer_config.json +26 -0
  7. vocab.json +0 -0
README.md ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ tags:
4
+ - generated_from_keras_callback
5
+ model-index:
6
+ - name: Apv/Flaubert2904_v2
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
+ # Apv/Flaubert2904_v2
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: 1.2265
18
+ - Validation Loss: 1.1301
19
+ - Train Accuracy: 0.5185
20
+ - Epoch: 0
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': 755, '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.2265 | 1.1301 | 0.5185 | 0 |
47
+
48
+
49
+ ### Framework versions
50
+
51
+ - Transformers 4.28.1
52
+ - TensorFlow 2.12.0
53
+ - Datasets 2.12.0
54
+ - 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.28.1",
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
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
special_tokens_map.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<special0>",
4
+ "<special1>",
5
+ "<special2>",
6
+ "<special3>",
7
+ "<special4>",
8
+ "<special5>",
9
+ "<special6>",
10
+ "<special7>",
11
+ "<special8>",
12
+ "<special9>"
13
+ ],
14
+ "bos_token": "<s>",
15
+ "cls_token": "</s>",
16
+ "mask_token": "<special1>",
17
+ "pad_token": "<pad>",
18
+ "sep_token": "</s>",
19
+ "unk_token": "<unk>"
20
+ }
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4e4aabb1bc4b9d4a9d5730624acc41093df38b1fa3fbcfb2734ccdb639335b73
3
+ size 553167240
tokenizer_config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<special0>",
4
+ "<special1>",
5
+ "<special2>",
6
+ "<special3>",
7
+ "<special4>",
8
+ "<special5>",
9
+ "<special6>",
10
+ "<special7>",
11
+ "<special8>",
12
+ "<special9>"
13
+ ],
14
+ "bos_token": "<s>",
15
+ "clean_up_tokenization_spaces": true,
16
+ "cls_token": "</s>",
17
+ "do_lower_case": false,
18
+ "id2lang": null,
19
+ "lang2id": null,
20
+ "mask_token": "<special1>",
21
+ "model_max_length": 512,
22
+ "pad_token": "<pad>",
23
+ "sep_token": "</s>",
24
+ "tokenizer_class": "FlaubertTokenizer",
25
+ "unk_token": "<unk>"
26
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff