juenp commited on
Commit
f66670d
·
1 Parent(s): 4bac7ed

correct config.json

Browse files
Files changed (1) hide show
  1. config.json +14 -73
config.json CHANGED
@@ -1,25 +1,19 @@
1
  {
2
  "_name_or_path": "juenp/FrenchTextCategirizer",
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": "CULTURE",
25
  "1": "DEBATS_ET_OPINIONS",
@@ -37,18 +31,12 @@
37
  "13": "SPORT",
38
  "14": "INDEFINI"
39
  },
40
- "id2lang": {
41
- "0": "fr"
42
- },
43
- "init_std": 0.02,
44
- "is_encoder": true,
45
  "label2id": {
46
  "CULTURE": 0,
47
  "DEBATS_ET_OPINIONS": 1,
48
  "ECONOMIE": 2,
49
  "EDUCATION": 3,
50
  "FAIT_DIVERS": 4,
51
- "INDEFINI": 14,
52
  "INTERNATIONAL": 5,
53
  "LIFESTYLE": 6,
54
  "NUMERIQUE": 7,
@@ -57,58 +45,11 @@
57
  "SANTE": 10,
58
  "SCIENCE_ET_ENVIRONNEMENT": 11,
59
  "SOCIETE": 12,
60
- "SPORT": 13
61
- },
62
- "lang2id": {
63
- "fr": 0
64
  },
65
- "lang_id": 0,
66
- "langs": [
67
- "fr"
68
- ],
69
- "layer_norm_eps": 1e-12,
70
- "layerdrop": 0.0,
71
- "lg_sampling_factor": -1,
72
- "lgs": "fr",
73
- "mask_index": 5,
74
- "mask_token_id": 0,
75
- "max_batch_size": 0,
76
- "max_position_embeddings": 512,
77
- "max_vocab": -1,
78
- "mlm_steps": [
79
- [
80
- "fr",
81
- null
82
- ]
83
- ],
84
- "model_type": "flaubert",
85
- "n_heads": 12,
86
- "n_langs": 1,
87
- "n_layers": 12,
88
- "pad_index": 2,
89
- "pad_token_id": 2,
90
- "pre_norm": false,
91
- "sample_alpha": 0,
92
- "share_inout_emb": true,
93
- "sinusoidal_embeddings": false,
94
- "start_n_top": 5,
95
- "summary_activation": null,
96
- "summary_first_dropout": 0.1,
97
- "summary_proj_to_labels": true,
98
- "summary_type": "first",
99
- "summary_use_proj": true,
100
- "tokens_per_batch": -1,
101
- "torch_dtype": "float32",
102
  "transformers_version": "4.28.1",
103
- "unk_index": 3,
104
- "use_lang_emb": true,
105
- "vocab_size": 68729,
106
- "word_blank": 0,
107
- "word_dropout": 0,
108
- "word_keep": 0.1,
109
- "word_mask": 0.8,
110
- "word_mask_keep_rand": "0.8,0.1,0.1",
111
- "word_pred": 0.15,
112
- "word_rand": 0.1,
113
- "word_shuffle": 0
114
  }
 
 
1
  {
2
  "_name_or_path": "juenp/FrenchTextCategirizer",
 
3
  "architectures": [
4
  "FlaubertForSequenceClassification"
5
  ],
 
6
  "attention_dropout": 0.1,
 
7
  "bos_token_id": 0,
8
+ "eos_token_id": 1,
9
+ "pad_token_id": 2,
10
+ "unk_token_id": 3,
11
+ "hidden_size": 256, // Modifié pour correspondre à hidden_dim: 256
12
+ "layer_norm_eps": 1e-12,
13
+ "n_heads": 12,
14
+ "n_layers": 12,
15
+ "vocab_size": 68729,
16
+ "model_type": "flaubert",
 
 
 
17
  "id2label": {
18
  "0": "CULTURE",
19
  "1": "DEBATS_ET_OPINIONS",
 
31
  "13": "SPORT",
32
  "14": "INDEFINI"
33
  },
 
 
 
 
 
34
  "label2id": {
35
  "CULTURE": 0,
36
  "DEBATS_ET_OPINIONS": 1,
37
  "ECONOMIE": 2,
38
  "EDUCATION": 3,
39
  "FAIT_DIVERS": 4,
 
40
  "INTERNATIONAL": 5,
41
  "LIFESTYLE": 6,
42
  "NUMERIQUE": 7,
 
45
  "SANTE": 10,
46
  "SCIENCE_ET_ENVIRONNEMENT": 11,
47
  "SOCIETE": 12,
48
+ "SPORT": 13,
49
+ "INDEFINI": 14
 
 
50
  },
51
+ "num_labels": 15,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
52
  "transformers_version": "4.28.1",
53
+ "torch_dtype": "float32"
 
 
 
 
 
 
 
 
 
 
54
  }
55
+