simoneprete commited on
Commit
32788cb
·
verified ·
1 Parent(s): 5567394

Upload CustomBertForSequenceClassification

Browse files
Files changed (2) hide show
  1. config.json +14 -19
  2. model.safetensors +2 -2
config.json CHANGED
@@ -1,42 +1,37 @@
1
  {
2
- "_name_or_path": "cardiffnlp/mbert-base-tweet-sentiment-fr",
3
  "architectures": [
4
  "CustomBertForSequenceClassification"
5
  ],
6
  "attention_probs_dropout_prob": 0.1,
 
7
  "classifier_dropout": null,
8
- "directionality": "bidi",
9
  "hidden_act": "gelu",
10
  "hidden_dropout_prob": 0.1,
11
  "hidden_size": 768,
12
  "id2label": {
13
- "0": "negative",
14
- "1": "neutral",
15
- "2": "positive"
16
  },
17
  "initializer_range": 0.02,
18
  "intermediate_size": 3072,
19
  "label2id": {
20
- "negative": 0,
21
- "neutral": 1,
22
- "positive": 2
23
  },
24
- "layer_norm_eps": 1e-12,
25
- "max_position_embeddings": 512,
26
- "model_type": "bert",
27
  "num_attention_heads": 12,
28
  "num_hidden_layers": 12,
29
- "pad_token_id": 0,
30
- "pooler_fc_size": 768,
31
- "pooler_num_attention_heads": 12,
32
- "pooler_num_fc_layers": 3,
33
- "pooler_size_per_head": 128,
34
- "pooler_type": "first_token_transform",
35
  "position_embedding_type": "absolute",
36
  "problem_type": "single_label_classification",
37
  "torch_dtype": "float32",
38
  "transformers_version": "4.46.2",
39
- "type_vocab_size": 2,
40
  "use_cache": true,
41
- "vocab_size": 119547
42
  }
 
1
  {
2
+ "_name_or_path": "baptiste-pasquier/camembert-allocine",
3
  "architectures": [
4
  "CustomBertForSequenceClassification"
5
  ],
6
  "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 5,
8
  "classifier_dropout": null,
9
+ "eos_token_id": 6,
10
  "hidden_act": "gelu",
11
  "hidden_dropout_prob": 0.1,
12
  "hidden_size": 768,
13
  "id2label": {
14
+ "0": "NEGATIVE",
15
+ "1": "POSITIVE"
 
16
  },
17
  "initializer_range": 0.02,
18
  "intermediate_size": 3072,
19
  "label2id": {
20
+ "NEGATIVE": 0,
21
+ "POSITIVE": 1
 
22
  },
23
+ "layer_norm_eps": 1e-05,
24
+ "max_position_embeddings": 514,
25
+ "model_type": "camembert",
26
  "num_attention_heads": 12,
27
  "num_hidden_layers": 12,
28
+ "output_past": true,
29
+ "pad_token_id": 1,
 
 
 
 
30
  "position_embedding_type": "absolute",
31
  "problem_type": "single_label_classification",
32
  "torch_dtype": "float32",
33
  "transformers_version": "4.46.2",
34
+ "type_vocab_size": 1,
35
  "use_cache": true,
36
+ "vocab_size": 32005
37
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:19dd87cf1b29caed7294d2955f32af39f50ea37de68f72b9316f2a42826cd0a6
3
- size 719849212
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:10ed54cc69d47da57d8e89f191beba09d63ae692a6dcca4d0edcf05b179c45f3
3
+ size 450921200