helloravisha commited on
Commit
9cc21c6
·
verified ·
1 Parent(s): 7ea43fd

Add tokenizer.json and config.json for both models (unchanged, from the originals at the same revisions): builds need nothing from the original repositories

Browse files
.gitattributes CHANGED
@@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ injection/2efc2ed5abecd21eb45c2506d231a65d6e392b85/tokenizer.json filter=lfs diff=lfs merge=lfs -text
37
+ topic/9abf1c8aaeb82a2447809c20753ed0b106b76652/tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -30,8 +30,25 @@ Layout: `<name>/<original revision>/model.onnx`. A new version of a model gets a
30
  | `topic/9abf1c8aaeb82a2447809c20753ed0b106b76652/model.onnx` (0.57 GB) | **8-bit compression** of the original's `onnx/model.onnx` (2.3 GB) | [MoritzLaurer/bge-m3-zeroshot-v2.0](https://huggingface.co/MoritzLaurer/bge-m3-zeroshot-v2.0/tree/9abf1c8aaeb82a2447809c20753ed0b106b76652) @ `9abf1c8a` | MIT | `a7eb4f68f0c75e1a0740f98ffeffa550f0a7758fe7f72519e9035d670c8ba12b` |
31
  | `injection/2efc2ed5abecd21eb45c2506d231a65d6e392b85/model.onnx` (0.27 GB) | **unchanged copy** of the original's `onnx/model_quantized.onnx` | [Horizon-Labs/prompt-injection-guard-small](https://huggingface.co/Horizon-Labs/prompt-injection-guard-small/tree/2efc2ed5abecd21eb45c2506d231a65d6e392b85) @ `2efc2ed5` | Apache 2.0 | `61cd0741cdbfcc229e32e1de1392f352736d87d1e8b3c2b67ad9836bb7910d5d` |
32
 
33
- Only `model.onnx` is mirrored. The tokenizer (`tokenizer.json`), `config.json` and model card are always taken from
34
- the original repository at the same revision.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
 
36
  ## How the topic file was made
37
 
 
30
  | `topic/9abf1c8aaeb82a2447809c20753ed0b106b76652/model.onnx` (0.57 GB) | **8-bit compression** of the original's `onnx/model.onnx` (2.3 GB) | [MoritzLaurer/bge-m3-zeroshot-v2.0](https://huggingface.co/MoritzLaurer/bge-m3-zeroshot-v2.0/tree/9abf1c8aaeb82a2447809c20753ed0b106b76652) @ `9abf1c8a` | MIT | `a7eb4f68f0c75e1a0740f98ffeffa550f0a7758fe7f72519e9035d670c8ba12b` |
31
  | `injection/2efc2ed5abecd21eb45c2506d231a65d6e392b85/model.onnx` (0.27 GB) | **unchanged copy** of the original's `onnx/model_quantized.onnx` | [Horizon-Labs/prompt-injection-guard-small](https://huggingface.co/Horizon-Labs/prompt-injection-guard-small/tree/2efc2ed5abecd21eb45c2506d231a65d6e392b85) @ `2efc2ed5` | Apache 2.0 | `61cd0741cdbfcc229e32e1de1392f352736d87d1e8b3c2b67ad9836bb7910d5d` |
32
 
33
+ Each folder holds everything a build needs, so builds using this mirror don't depend on the original repositories:
34
+
35
+ | File in each folder | What it is | Taken from the original at the same revision |
36
+ |---|---|---|
37
+ | `model.onnx` | the model (see table above) | topic: compressed by us; injection: unchanged |
38
+ | `tokenizer.json` | how text is split into tokens | unchanged |
39
+ | `config.json` | label names and model settings | unchanged |
40
+ | `ORIGINAL-MODEL-CARD.md` | the author's model card (`README.md` there): description, credits, license | unchanged |
41
+
42
+ SHA-256 of the small files:
43
+
44
+ | File | SHA-256 |
45
+ |---|---|
46
+ | `topic/9abf1c8a…/tokenizer.json` | `6710678b12670bc442b99edc952c4d996ae309a7020c1fa0096dd245c2faf790` |
47
+ | `topic/9abf1c8a…/config.json` | `5449085fe904cdb0715398c7abf7fd049c3fc057e06353aa6a4701a6180ae4a1` |
48
+ | `topic/9abf1c8a…/ORIGINAL-MODEL-CARD.md` | `2498f63dc8218452c6b0084b35b901c1341f3827278b3de6d992cd72946b15e0` |
49
+ | `injection/2efc2ed5…/tokenizer.json` | `47834a7dbbb0c4324fe9569fe47955241594a9ee539c9e478755d6fbc51e5f46` |
50
+ | `injection/2efc2ed5…/config.json` | `d6264037c9aa4b3d821c1c9a0329572033adbdb622788ecca91c3636066d9622` |
51
+ | `injection/2efc2ed5…/ORIGINAL-MODEL-CARD.md` | `875a62fbe80e7536c02f523e85b7c10abd96ecda6f41a9622a2f455338e37e9c` |
52
 
53
  ## How the topic file was made
54
 
injection/2efc2ed5abecd21eb45c2506d231a65d6e392b85/config.json ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "ModernBertForSequenceClassification"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 2,
8
+ "classifier_activation": "gelu",
9
+ "classifier_bias": false,
10
+ "classifier_dropout": 0.0,
11
+ "classifier_pooling": "mean",
12
+ "cls_token_id": 1,
13
+ "decoder_bias": true,
14
+ "deterministic_flash_attn": false,
15
+ "dtype": "float32",
16
+ "embedding_dropout": 0.0,
17
+ "eos_token_id": 1,
18
+ "global_attn_every_n_layers": 3,
19
+ "gradient_checkpointing": false,
20
+ "hidden_activation": "gelu",
21
+ "hidden_size": 384,
22
+ "id2label": {
23
+ "0": "SAFE",
24
+ "1": "INJECTION"
25
+ },
26
+ "initializer_cutoff_factor": 2.0,
27
+ "initializer_range": 0.02,
28
+ "intermediate_size": 1152,
29
+ "label2id": {
30
+ "INJECTION": 1,
31
+ "SAFE": 0
32
+ },
33
+ "layer_norm_eps": 1e-05,
34
+ "layer_types": [
35
+ "full_attention",
36
+ "sliding_attention",
37
+ "sliding_attention",
38
+ "full_attention",
39
+ "sliding_attention",
40
+ "sliding_attention",
41
+ "full_attention",
42
+ "sliding_attention",
43
+ "sliding_attention",
44
+ "full_attention",
45
+ "sliding_attention",
46
+ "sliding_attention",
47
+ "full_attention",
48
+ "sliding_attention",
49
+ "sliding_attention",
50
+ "full_attention",
51
+ "sliding_attention",
52
+ "sliding_attention",
53
+ "full_attention",
54
+ "sliding_attention",
55
+ "sliding_attention",
56
+ "full_attention"
57
+ ],
58
+ "local_attention": 128,
59
+ "mask_token_id": 4,
60
+ "max_position_embeddings": 8192,
61
+ "mlp_bias": false,
62
+ "mlp_dropout": 0.0,
63
+ "model_type": "modernbert",
64
+ "norm_bias": false,
65
+ "norm_eps": 1e-05,
66
+ "num_attention_heads": 6,
67
+ "num_hidden_layers": 22,
68
+ "pad_token_id": 0,
69
+ "position_embedding_type": "sans_pos",
70
+ "rope_parameters": {
71
+ "full_attention": {
72
+ "rope_theta": 160000,
73
+ "rope_type": "default"
74
+ },
75
+ "sliding_attention": {
76
+ "rope_theta": 160000,
77
+ "rope_type": "default"
78
+ }
79
+ },
80
+ "sep_token_id": 1,
81
+ "sparse_pred_ignore_index": -100,
82
+ "sparse_prediction": false,
83
+ "tie_word_embeddings": true,
84
+ "transformers_version": "5.17.0",
85
+ "vocab_size": 256000
86
+ }
injection/2efc2ed5abecd21eb45c2506d231a65d6e392b85/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:47834a7dbbb0c4324fe9569fe47955241594a9ee539c9e478755d6fbc51e5f46
3
+ size 34387555
topic/9abf1c8aaeb82a2447809c20753ed0b106b76652/config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "BAAI/bge-m3-retromae",
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": 1024,
13
+ "id2label": {
14
+ "0": "entailment",
15
+ "1": "not_entailment"
16
+ },
17
+ "initializer_range": 0.02,
18
+ "intermediate_size": 4096,
19
+ "label2id": {
20
+ "entailment": 0,
21
+ "not_entailment": 1
22
+ },
23
+ "layer_norm_eps": 1e-05,
24
+ "max_position_embeddings": 8194,
25
+ "model_type": "xlm-roberta",
26
+ "num_attention_heads": 16,
27
+ "num_hidden_layers": 24,
28
+ "output_past": true,
29
+ "pad_token_id": 1,
30
+ "position_embedding_type": "absolute",
31
+ "problem_type": "single_label_classification",
32
+ "torch_dtype": "float16",
33
+ "transformers_version": "4.37.2",
34
+ "type_vocab_size": 1,
35
+ "use_cache": true,
36
+ "vocab_size": 250002
37
+ }
topic/9abf1c8aaeb82a2447809c20753ed0b106b76652/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6710678b12670bc442b99edc952c4d996ae309a7020c1fa0096dd245c2faf790
3
+ size 17082821