christopheparisse commited on
Commit
4f1522a
1 Parent(s): 0e14559

Upload TFFlaubertForSequenceClassification

Browse files
Files changed (3) hide show
  1. README.md +57 -0
  2. config.json +87 -0
  3. tf_model.h5 +3 -0
README.md ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ base_model: flaubert/flaubert_base_cased
4
+ tags:
5
+ - generated_from_keras_callback
6
+ model-index:
7
+ - name: complexity_80_model
8
+ results: []
9
+ ---
10
+
11
+ <!-- This model card has been generated automatically according to the information Keras had access to. You should
12
+ probably proofread and complete it, then remove this comment. -->
13
+
14
+ # complexity_80_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.1458
19
+ - Validation Loss: 0.1550
20
+ - Train Accuracy: 0.9328
21
+ - Epoch: 2
22
+
23
+ ## Model description
24
+
25
+ More information needed
26
+
27
+ ## Intended uses & limitations
28
+
29
+ More information needed
30
+
31
+ ## Training and evaluation data
32
+
33
+ More information needed
34
+
35
+ ## Training procedure
36
+
37
+ ### Training hyperparameters
38
+
39
+ The following hyperparameters were used during training:
40
+ - optimizer: {'name': 'Adam', 'learning_rate': {'module': 'keras.optimizers.schedules', 'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 2e-05, 'decay_steps': 196040, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}, 'registered_name': None}, 'decay': 0.0, '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.1899 | 0.1728 | 0.9235 | 0 |
48
+ | 0.1619 | 0.1627 | 0.9315 | 1 |
49
+ | 0.1458 | 0.1550 | 0.9328 | 2 |
50
+
51
+
52
+ ### Framework versions
53
+
54
+ - Transformers 4.36.0
55
+ - TensorFlow 2.13.1
56
+ - Datasets 2.15.0
57
+ - Tokenizers 0.15.0
config.json ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "complex",
25
+ "1": "simplex"
26
+ },
27
+ "id2lang": {
28
+ "0": "fr"
29
+ },
30
+ "init_std": 0.02,
31
+ "is_encoder": true,
32
+ "label2id": {
33
+ "complex": 0,
34
+ "simplex": 1
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
+ }
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:241dd3233e376311fb8ef707fd5bc43186e27bb10909ca62480b1c90339bed79
3
+ size 553161096