Add initial VibeGuard browser extension

This commit is contained in:
Jordan Wages 2026-08-24 15:27:46 -05:00
commit 9c65a61ebb
43 changed files with 125275 additions and 2 deletions

View file

@ -0,0 +1,37 @@
{
"activation": "gelu",
"architectures": [
"DistilBertForSequenceClassification"
],
"attention_dropout": 0.1,
"bos_token_id": null,
"dim": 768,
"dropout": 0.1,
"dtype": "float32",
"eos_token_id": null,
"hidden_dim": 3072,
"id2label": {
"0": "not_toxic",
"1": "toxic"
},
"initializer_range": 0.02,
"label2id": {
"not_toxic": 0,
"toxic": 1
},
"max_position_embeddings": 512,
"model_type": "distilbert",
"n_heads": 12,
"n_layers": 6,
"output_past": true,
"pad_token_id": 0,
"problem_type": "single_label_classification",
"qa_dropout": 0.1,
"seq_classif_dropout": 0.2,
"sinusoidal_pos_embds": false,
"tie_weights_": true,
"tie_word_embeddings": true,
"transformers_version": "5.15.1",
"use_cache": false,
"vocab_size": 119547
}

View file

@ -0,0 +1,17 @@
{
"source": "wagesj45/toxic-comment-classifier",
"revision": "a7d2df2ead42f0bce00b330939574a02266772f5",
"architecture": "DistilBertForSequenceClassification",
"labels": {
"toxic": 1,
"nonToxic": 0,
"names": {
"not_toxic": 0,
"toxic": 1
}
},
"maxLength": 512,
"quantization": "int8-dynamic",
"runtime": "onnxruntime-web-wasm",
"license": "Apache-2.0"
}

BIN
public/models/toxicity/onnx/model_quantized.onnx (Stored with Git LFS) Normal file

Binary file not shown.

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,15 @@
{
"backend": "tokenizers",
"cls_token": "[CLS]",
"do_lower_case": false,
"is_local": false,
"local_files_only": false,
"mask_token": "[MASK]",
"model_max_length": 512,
"pad_token": "[PAD]",
"sep_token": "[SEP]",
"strip_accents": null,
"tokenize_chinese_chars": true,
"tokenizer_class": "BertTokenizer",
"unk_token": "[UNK]"
}