Spaces:
Sleeping
Sleeping
Commit ·
e429a52
1
Parent(s): d82a2c9
feat: include fine-tuned MuRIL model for production detection
Browse files- .gitattributes +2 -0
- data/secure_words.bin +3 -1
- model_output/config.json +30 -0
- model_output/eval_results.json +11 -0
- model_output/model.safetensors +3 -0
- model_output/tokenizer.json +0 -0
- model_output/tokenizer_config.json +15 -0
- model_output/training_args.bin +3 -0
- out.txt +1 -0
- push_out.txt +2 -0
.gitattributes
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
data/secure_words.bin
CHANGED
|
@@ -1 +1,3 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:971f54578b1ed3dc958689d92603d7ae095215489dd7179648a7e2ff16d3f692
|
| 3 |
+
size 5780
|
model_output/config.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_cross_attention": false,
|
| 3 |
+
"architectures": [
|
| 4 |
+
"BertForSequenceClassification"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.2,
|
| 7 |
+
"bos_token_id": null,
|
| 8 |
+
"classifier_dropout": null,
|
| 9 |
+
"dtype": "float32",
|
| 10 |
+
"embedding_size": 768,
|
| 11 |
+
"eos_token_id": null,
|
| 12 |
+
"hidden_act": "gelu",
|
| 13 |
+
"hidden_dropout_prob": 0.2,
|
| 14 |
+
"hidden_size": 768,
|
| 15 |
+
"initializer_range": 0.02,
|
| 16 |
+
"intermediate_size": 3072,
|
| 17 |
+
"is_decoder": false,
|
| 18 |
+
"layer_norm_eps": 1e-12,
|
| 19 |
+
"max_position_embeddings": 512,
|
| 20 |
+
"model_type": "bert",
|
| 21 |
+
"num_attention_heads": 12,
|
| 22 |
+
"num_hidden_layers": 12,
|
| 23 |
+
"pad_token_id": 0,
|
| 24 |
+
"problem_type": "single_label_classification",
|
| 25 |
+
"tie_word_embeddings": true,
|
| 26 |
+
"transformers_version": "5.2.0",
|
| 27 |
+
"type_vocab_size": 2,
|
| 28 |
+
"use_cache": false,
|
| 29 |
+
"vocab_size": 197285
|
| 30 |
+
}
|
model_output/eval_results.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"eval_loss": 0.6901780962944031,
|
| 3 |
+
"eval_accuracy": 0.9364406779661016,
|
| 4 |
+
"eval_f1": 0.9343065693430657,
|
| 5 |
+
"eval_precision": 0.9667673716012085,
|
| 6 |
+
"eval_recall": 0.903954802259887,
|
| 7 |
+
"eval_runtime": 3.8999,
|
| 8 |
+
"eval_samples_per_second": 181.541,
|
| 9 |
+
"eval_steps_per_second": 3.077,
|
| 10 |
+
"epoch": 10.0
|
| 11 |
+
}
|
model_output/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:72de3af3094c02e1ee78a81eb746bbde6072485310b7a6a8b3f7b64f4cc2d104
|
| 3 |
+
size 950254568
|
model_output/tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
model_output/tokenizer_config.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"backend": "tokenizers",
|
| 3 |
+
"cls_token": "[CLS]",
|
| 4 |
+
"do_lower_case": false,
|
| 5 |
+
"is_local": false,
|
| 6 |
+
"lowercase": false,
|
| 7 |
+
"mask_token": "[MASK]",
|
| 8 |
+
"model_max_length": 512,
|
| 9 |
+
"pad_token": "[PAD]",
|
| 10 |
+
"sep_token": "[SEP]",
|
| 11 |
+
"strip_accents": false,
|
| 12 |
+
"tokenize_chinese_chars": true,
|
| 13 |
+
"tokenizer_class": "BertTokenizer",
|
| 14 |
+
"unk_token": "[UNK]"
|
| 15 |
+
}
|
model_output/training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b770c014ca4b3707937d5e42dcc6477967b5fb94dbafa2b8ef409ab12f9deb71
|
| 3 |
+
size 5201
|
out.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
b8300d6 Deploy: Comment Guard API - FastAPI + MuRIL BERT
|
push_out.txt
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
To https://huggingface.co/spaces/tejesh916K/comment-guard-api
|
| 2 |
+
b8300d6..d82a2c9 main -> main
|