christopheparisse commited on
Commit
3f1e6ad
1 Parent(s): 2677fa6

Training in progress epoch 0

Browse files
Files changed (9) hide show
  1. .DS_Store +3 -0
  2. .gitattributes +1 -0
  3. README.md +9 -11
  4. config.json +74 -18
  5. merges.txt +0 -0
  6. special_tokens_map.json +18 -5
  7. tf_model.h5 +2 -2
  8. tokenizer_config.json +103 -18
  9. vocab.json +0 -0
.DS_Store ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:938717021095f6e306d6449e17e7d976983353c71fd7ec35211c3c3b5f7e5c53
3
+ size 6148
.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
+ .DS_Store filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,6 +1,6 @@
1
  ---
2
- license: apache-2.0
3
- base_model: distilbert-base-uncased
4
  tags:
5
  - generated_from_keras_callback
6
  model-index:
@@ -13,12 +13,12 @@ probably proofread and complete it, then remove this comment. -->
13
 
14
  # christopheparisse/my_awesome_model
15
 
16
- This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on an unknown dataset.
17
  It achieves the following results on the evaluation set:
18
- - Train Loss: 0.0637
19
- - Validation Loss: 0.2249
20
- - Train Accuracy: 0.9328
21
- - Epoch: 2
22
 
23
  ## Model description
24
 
@@ -37,16 +37,14 @@ More information needed
37
  ### Training hyperparameters
38
 
39
  The following hyperparameters were used during training:
40
- - 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': False, 'is_legacy_optimizer': False, 'learning_rate': {'module': 'keras.optimizers.schedules', 'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 2e-05, 'decay_steps': 7810, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}, 'registered_name': None}, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False}
41
  - training_precision: float32
42
 
43
  ### Training results
44
 
45
  | Train Loss | Validation Loss | Train Accuracy | Epoch |
46
  |:----------:|:---------------:|:--------------:|:-----:|
47
- | 0.2546 | 0.2058 | 0.9199 | 0 |
48
- | 0.1362 | 0.1698 | 0.9361 | 1 |
49
- | 0.0637 | 0.2249 | 0.9328 | 2 |
50
 
51
 
52
  ### Framework versions
 
1
  ---
2
+ license: mit
3
+ base_model: flaubert/flaubert_base_cased
4
  tags:
5
  - generated_from_keras_callback
6
  model-index:
 
13
 
14
  # christopheparisse/my_awesome_model
15
 
16
+ This model is a fine-tuned version of [flaubert/flaubert_base_cased](https://huggingface.co/flaubert/flaubert_base_cased) on an unknown dataset.
17
  It achieves the following results on the evaluation set:
18
+ - Train Loss: 0.2925
19
+ - Validation Loss: 0.2622
20
+ - Train Accuracy: 0.8895
21
+ - Epoch: 0
22
 
23
  ## Model description
24
 
 
37
  ### Training hyperparameters
38
 
39
  The following hyperparameters were used during training:
40
+ - 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': False, 'is_legacy_optimizer': False, 'learning_rate': {'module': 'keras.optimizers.schedules', 'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 2e-05, 'decay_steps': 297755, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}, 'registered_name': None}, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False}
41
  - training_precision: float32
42
 
43
  ### Training results
44
 
45
  | Train Loss | Validation Loss | Train Accuracy | Epoch |
46
  |:----------:|:---------------:|:--------------:|:-----:|
47
+ | 0.2925 | 0.2622 | 0.8895 | 0 |
 
 
48
 
49
 
50
  ### Framework versions
config.json CHANGED
@@ -1,31 +1,87 @@
1
  {
2
- "_name_or_path": "distilbert-base-uncased",
3
- "activation": "gelu",
4
  "architectures": [
5
- "DistilBertForSequenceClassification"
6
  ],
 
7
  "attention_dropout": 0.1,
8
- "dim": 768,
 
 
 
 
9
  "dropout": 0.1,
10
- "hidden_dim": 3072,
 
 
 
 
 
 
 
11
  "id2label": {
12
- "0": "NEGATIVE",
13
- "1": "POSITIVE"
14
  },
15
- "initializer_range": 0.02,
 
 
 
 
16
  "label2id": {
17
- "NEGATIVE": 0,
18
- "POSITIVE": 1
 
 
 
19
  },
 
 
 
 
 
 
 
 
 
 
 
20
  "max_position_embeddings": 512,
21
- "model_type": "distilbert",
 
 
 
 
 
 
 
22
  "n_heads": 12,
23
- "n_layers": 6,
24
- "pad_token_id": 0,
25
- "qa_dropout": 0.1,
26
- "seq_classif_dropout": 0.2,
27
- "sinusoidal_pos_embds": false,
28
- "tie_weights_": true,
 
 
 
 
 
 
 
 
 
29
  "transformers_version": "4.36.0",
30
- "vocab_size": 30522
 
 
 
 
 
 
 
 
 
 
31
  }
 
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": "simplex",
25
+ "1": "complex"
26
  },
27
+ "id2lang": {
28
+ "0": "fr"
29
+ },
30
+ "init_std": 0.02,
31
+ "is_encoder": true,
32
  "label2id": {
33
+ "complex": 1,
34
+ "simplex": 0
35
+ },
36
+ "lang2id": {
37
+ "fr": 0
38
  },
39
+ "lang_id": 0,
40
+ "langs": [
41
+ "fr"
42
+ ],
43
+ "layer_norm_eps": 1e-12,
44
+ "layerdrop": 0.0,
45
+ "lg_sampling_factor": -1,
46
+ "lgs": "fr",
47
+ "mask_index": 5,
48
+ "mask_token_id": 0,
49
+ "max_batch_size": 0,
50
  "max_position_embeddings": 512,
51
+ "max_vocab": -1,
52
+ "mlm_steps": [
53
+ [
54
+ "fr",
55
+ null
56
+ ]
57
+ ],
58
+ "model_type": "flaubert",
59
  "n_heads": 12,
60
+ "n_langs": 1,
61
+ "n_layers": 12,
62
+ "pad_index": 2,
63
+ "pad_token_id": 2,
64
+ "pre_norm": false,
65
+ "sample_alpha": 0,
66
+ "share_inout_emb": true,
67
+ "sinusoidal_embeddings": false,
68
+ "start_n_top": 5,
69
+ "summary_activation": null,
70
+ "summary_first_dropout": 0.1,
71
+ "summary_proj_to_labels": true,
72
+ "summary_type": "first",
73
+ "summary_use_proj": true,
74
+ "tokens_per_batch": -1,
75
  "transformers_version": "4.36.0",
76
+ "unk_index": 3,
77
+ "use_lang_emb": true,
78
+ "vocab_size": 68729,
79
+ "word_blank": 0,
80
+ "word_dropout": 0,
81
+ "word_keep": 0.1,
82
+ "word_mask": 0.8,
83
+ "word_mask_keep_rand": "0.8,0.1,0.1",
84
+ "word_pred": 0.15,
85
+ "word_rand": 0.1,
86
+ "word_shuffle": 0
87
  }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
special_tokens_map.json CHANGED
@@ -1,7 +1,20 @@
1
  {
2
- "cls_token": "[CLS]",
3
- "mask_token": "[MASK]",
4
- "pad_token": "[PAD]",
5
- "sep_token": "[SEP]",
6
- "unk_token": "[UNK]"
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  }
 
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 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:1448c69d01eaa381ca558f98333a94b7bac1808892d2cde2e62b6dcac9835c07
3
- size 267951808
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:87d1ab464c4fb9f7e1b89fee7d6c9c630f565eefed24b9d70c8359ad4b1d7337
3
+ size 553161096
tokenizer_config.json CHANGED
@@ -1,39 +1,111 @@
1
  {
2
  "added_tokens_decoder": {
3
  "0": {
4
- "content": "[PAD]",
5
  "lstrip": false,
6
  "normalized": false,
7
  "rstrip": false,
8
  "single_word": false,
9
  "special": true
10
  },
11
- "100": {
12
- "content": "[UNK]",
13
  "lstrip": false,
14
  "normalized": false,
15
  "rstrip": false,
16
  "single_word": false,
17
  "special": true
18
  },
19
- "101": {
20
- "content": "[CLS]",
21
  "lstrip": false,
22
  "normalized": false,
23
  "rstrip": false,
24
  "single_word": false,
25
  "special": true
26
  },
27
- "102": {
28
- "content": "[SEP]",
29
  "lstrip": false,
30
  "normalized": false,
31
  "rstrip": false,
32
  "single_word": false,
33
  "special": true
34
  },
35
- "103": {
36
- "content": "[MASK]",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
  "lstrip": false,
38
  "normalized": false,
39
  "rstrip": false,
@@ -41,15 +113,28 @@
41
  "special": true
42
  }
43
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
44
  "clean_up_tokenization_spaces": true,
45
- "cls_token": "[CLS]",
46
- "do_lower_case": true,
47
- "mask_token": "[MASK]",
 
 
48
  "model_max_length": 512,
49
- "pad_token": "[PAD]",
50
- "sep_token": "[SEP]",
51
- "strip_accents": null,
52
- "tokenize_chinese_chars": true,
53
- "tokenizer_class": "DistilBertTokenizer",
54
- "unk_token": "[UNK]"
55
  }
 
1
  {
2
  "added_tokens_decoder": {
3
  "0": {
4
+ "content": "<s>",
5
  "lstrip": false,
6
  "normalized": false,
7
  "rstrip": false,
8
  "single_word": false,
9
  "special": true
10
  },
11
+ "1": {
12
+ "content": "</s>",
13
  "lstrip": false,
14
  "normalized": false,
15
  "rstrip": false,
16
  "single_word": false,
17
  "special": true
18
  },
19
+ "2": {
20
+ "content": "<pad>",
21
  "lstrip": false,
22
  "normalized": false,
23
  "rstrip": false,
24
  "single_word": false,
25
  "special": true
26
  },
27
+ "3": {
28
+ "content": "<unk>",
29
  "lstrip": false,
30
  "normalized": false,
31
  "rstrip": false,
32
  "single_word": false,
33
  "special": true
34
  },
35
+ "4": {
36
+ "content": "<special0>",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ },
43
+ "5": {
44
+ "content": "<special1>",
45
+ "lstrip": false,
46
+ "normalized": false,
47
+ "rstrip": false,
48
+ "single_word": false,
49
+ "special": true
50
+ },
51
+ "6": {
52
+ "content": "<special2>",
53
+ "lstrip": false,
54
+ "normalized": false,
55
+ "rstrip": false,
56
+ "single_word": false,
57
+ "special": true
58
+ },
59
+ "7": {
60
+ "content": "<special3>",
61
+ "lstrip": false,
62
+ "normalized": false,
63
+ "rstrip": false,
64
+ "single_word": false,
65
+ "special": true
66
+ },
67
+ "8": {
68
+ "content": "<special4>",
69
+ "lstrip": false,
70
+ "normalized": false,
71
+ "rstrip": false,
72
+ "single_word": false,
73
+ "special": true
74
+ },
75
+ "9": {
76
+ "content": "<special5>",
77
+ "lstrip": false,
78
+ "normalized": false,
79
+ "rstrip": false,
80
+ "single_word": false,
81
+ "special": true
82
+ },
83
+ "10": {
84
+ "content": "<special6>",
85
+ "lstrip": false,
86
+ "normalized": false,
87
+ "rstrip": false,
88
+ "single_word": false,
89
+ "special": true
90
+ },
91
+ "11": {
92
+ "content": "<special7>",
93
+ "lstrip": false,
94
+ "normalized": false,
95
+ "rstrip": false,
96
+ "single_word": false,
97
+ "special": true
98
+ },
99
+ "12": {
100
+ "content": "<special8>",
101
+ "lstrip": false,
102
+ "normalized": false,
103
+ "rstrip": false,
104
+ "single_word": false,
105
+ "special": true
106
+ },
107
+ "13": {
108
+ "content": "<special9>",
109
  "lstrip": false,
110
  "normalized": false,
111
  "rstrip": false,
 
113
  "special": true
114
  }
115
  },
116
+ "additional_special_tokens": [
117
+ "<special0>",
118
+ "<special1>",
119
+ "<special2>",
120
+ "<special3>",
121
+ "<special4>",
122
+ "<special5>",
123
+ "<special6>",
124
+ "<special7>",
125
+ "<special8>",
126
+ "<special9>"
127
+ ],
128
+ "bos_token": "<s>",
129
  "clean_up_tokenization_spaces": true,
130
+ "cls_token": "</s>",
131
+ "do_lower_case": false,
132
+ "id2lang": null,
133
+ "lang2id": null,
134
+ "mask_token": "<special1>",
135
  "model_max_length": 512,
136
+ "pad_token": "<pad>",
137
+ "sep_token": "</s>",
138
+ "tokenizer_class": "FlaubertTokenizer",
139
+ "unk_token": "<unk>"
 
 
140
  }
vocab.json ADDED
The diff for this file is too large to render. See raw diff