archich commited on
Commit
2a85bad
·
verified ·
1 Parent(s): f93a150

Convert to standard HuggingFace format

Browse files
Files changed (2) hide show
  1. config.json +18 -18
  2. model.safetensors +3 -0
config.json CHANGED
@@ -1,27 +1,27 @@
1
  {
2
- "_name_or_path": "xlm-roberta-base",
3
  "architectures": [
4
  "XLMRobertaForSequenceClassification"
5
  ],
6
- "model_type": "xlm-roberta",
7
- "num_labels": 2,
8
- "id2label": {
9
- "0": "NOT_HATE_SPEECH",
10
- "1": "HATE_SPEECH"
11
- },
12
- "label2id": {
13
- "NOT_HATE_SPEECH": 0,
14
- "HATE_SPEECH": 1
15
- },
16
- "problem_type": "single_label_classification",
17
- "hidden_size": 768,
18
- "num_hidden_layers": 12,
19
- "num_attention_heads": 12,
20
- "intermediate_size": 3072,
21
  "hidden_act": "gelu",
22
  "hidden_dropout_prob": 0.1,
23
- "attention_probs_dropout_prob": 0.1,
 
 
 
24
  "max_position_embeddings": 514,
 
 
 
 
 
 
 
 
25
  "type_vocab_size": 1,
 
26
  "vocab_size": 250002
27
- }
 
1
  {
 
2
  "architectures": [
3
  "XLMRobertaForSequenceClassification"
4
  ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "bos_token_id": 0,
7
+ "classifier_dropout": null,
8
+ "eos_token_id": 2,
 
 
 
 
 
 
 
 
 
 
 
9
  "hidden_act": "gelu",
10
  "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 3072,
14
+ "layer_norm_eps": 1e-05,
15
  "max_position_embeddings": 514,
16
+ "model_type": "xlm-roberta",
17
+ "num_attention_heads": 12,
18
+ "num_hidden_layers": 12,
19
+ "output_past": true,
20
+ "pad_token_id": 1,
21
+ "position_embedding_type": "absolute",
22
+ "torch_dtype": "float32",
23
+ "transformers_version": "4.53.3",
24
  "type_vocab_size": 1,
25
+ "use_cache": true,
26
  "vocab_size": 250002
27
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fb840b94bb438da17a31aece56267dae4f9704d255a52a21e98d1b8e7f086150
3
+ size 1112205008