yaya36095 commited on
Commit
541fb50
·
verified ·
1 Parent(s): 34b34de

Update config.json

Browse files
Files changed (1) hide show
  1. config.json +129 -29
config.json CHANGED
@@ -1,29 +1,129 @@
1
- {
2
- "_name_or_path": "xlm-roberta-base",
3
- "architectures": [
4
- "XLMRobertaForSequenceClassification"
5
- ],
6
- "attention_probs_dropout_prob": 0.1,
7
- "bos_token_id": 0,
8
- "classifier_dropout": null,
9
- "eos_token_id": 2,
10
- "hidden_act": "gelu",
11
- "hidden_dropout_prob": 0.1,
12
- "hidden_size": 768,
13
- "initializer_range": 0.02,
14
- "intermediate_size": 3072,
15
- "layer_norm_eps": 1e-05,
16
- "max_position_embeddings": 514,
17
- "model_type": "xlm-roberta",
18
- "num_attention_heads": 12,
19
- "num_hidden_layers": 12,
20
- "output_past": true,
21
- "pad_token_id": 1,
22
- "position_embedding_type": "absolute",
23
- "problem_type": "single_label_classification",
24
- "torch_dtype": "float32",
25
- "transformers_version": "4.44.2",
26
- "type_vocab_size": 1,
27
- "use_cache": true,
28
- "vocab_size": 250002
29
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_config": {
3
+ "_name_or_path": "xlm-roberta-base",
4
+ "architectures": [
5
+ "XLMRobertaForSequenceClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.1,
8
+ "bos_token_id": 0,
9
+ "classifier_dropout": null,
10
+ "eos_token_id": 2,
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 768,
14
+ "initializer_range": 0.02,
15
+ "intermediate_size": 3072,
16
+ "layer_norm_eps": 1e-05,
17
+ "max_position_embeddings": 514,
18
+ "model_type": "xlm-roberta",
19
+ "num_attention_heads": 12,
20
+ "num_hidden_layers": 12,
21
+ "output_past": true,
22
+ "pad_token_id": 1,
23
+ "position_embedding_type": "absolute",
24
+ "problem_type": "single_label_classification",
25
+ "torch_dtype": "float32",
26
+ "transformers_version": "4.44.2",
27
+ "type_vocab_size": 1,
28
+ "use_cache": true,
29
+ "vocab_size": 250002
30
+ },
31
+
32
+ "training_config": {
33
+ "learning_rate": 2e-5,
34
+ "num_train_epochs": 3,
35
+ "per_device_train_batch_size": 16,
36
+ "per_device_eval_batch_size": 16,
37
+ "warmup_steps": 500,
38
+ "weight_decay": 0.01,
39
+ "logging_dir": "./logs",
40
+ "evaluation_strategy": "epoch"
41
+ },
42
+
43
+ "tokenizer_config": {
44
+ "model_max_length": 512,
45
+ "padding_side": "right",
46
+ "truncation_side": "right",
47
+ "special_tokens": {
48
+ "pad_token": "<pad>",
49
+ "unk_token": "<unk>",
50
+ "bos_token": "<s>",
51
+ "eos_token": "</s>"
52
+ }
53
+ },
54
+
55
+ "inference_config": {
56
+ "task": "text-classification",
57
+ "labels": ["HUMAN", "AI"],
58
+ "threshold": 0.5,
59
+ "max_length": 512,
60
+ "batch_size": 32,
61
+ "options": {
62
+ "wait_for_model": true,
63
+ "use_cache": true
64
+ }
65
+ },
66
+
67
+ "api_config": {
68
+ "endpoint": "https://api-inference.huggingface.co/models/yaya36095/text-detector",
69
+ "headers": {
70
+ "Content-Type": "application/json"
71
+ },
72
+ "cors": {
73
+ "allow_origin": "*",
74
+ "allow_headers": [
75
+ "authorization",
76
+ "x-client-info",
77
+ "apikey",
78
+ "content-type"
79
+ ]
80
+ }
81
+ },
82
+
83
+ "model_info": {
84
+ "name": "text-detector",
85
+ "version": "1.0.0",
86
+ "author": "yaya36095",
87
+ "description": "A model for detecting AI-generated vs human-written text",
88
+ "license": "MIT",
89
+ "repository": "https://huggingface.co/yaya36095/text-detector",
90
+ "languages": ["multilingual"],
91
+ "tags": [
92
+ "text-classification",
93
+ "ai-detection",
94
+ "xlm-roberta"
95
+ ]
96
+ },
97
+
98
+ "environment": {
99
+ "framework": "transformers",
100
+ "framework_version": "4.44.2",
101
+ "python_version": ">=3.8.0",
102
+ "cuda_support": true,
103
+ "required_packages": {
104
+ "torch": ">=1.10.0",
105
+ "transformers": ">=4.44.2",
106
+ "numpy": ">=1.19.0"
107
+ }
108
+ },
109
+
110
+ "logging_config": {
111
+ "level": "INFO",
112
+ "format": "%(asctime)s - %(name)s - %(levelname)s - %(message)s",
113
+ "development_mode": {
114
+ "debug": true,
115
+ "verbose": true
116
+ },
117
+ "production_mode": {
118
+ "debug": false,
119
+ "verbose": false
120
+ }
121
+ },
122
+
123
+ "performance_metrics": {
124
+ "accuracy_threshold": 0.85,
125
+ "latency_threshold_ms": 500,
126
+ "max_batch_size": 64,
127
+ "memory_limit_mb": 4096
128
+ }
129
+ }