rolf-mozilla commited on
Commit
a9a88d6
·
verified ·
1 Parent(s): 0d54ecb

int8 encoder (feature-extraction) for triple autofill

Browse files
README.md ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ # form-autofill-embed
2
+
3
+ Quantized (int8) shared encoder for the Firefox triple-encoder autofill field classifier. Vocab-pruned multilingual MiniLM (BERT arch, 4 layers, hidden 384, vocab ~12.5k). Use as a **feature-extraction** model and mean-pool the `last_hidden_state` to a 384-d per-field embedding. Weights: `onnx/model_quantized.onnx` (int8). Pairs with `rolf-mozilla/form-autofill-head`.
config.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_cross_attention": false,
3
+ "architectures": [
4
+ "BertModel"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": null,
8
+ "classifier_dropout": null,
9
+ "dtype": "float32",
10
+ "eos_token_id": null,
11
+ "gradient_checkpointing": false,
12
+ "hidden_act": "gelu",
13
+ "hidden_dropout_prob": 0.1,
14
+ "hidden_size": 384,
15
+ "initializer_range": 0.02,
16
+ "intermediate_size": 1536,
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": 4,
23
+ "pad_token_id": 0,
24
+ "position_embedding_type": "absolute",
25
+ "tie_word_embeddings": true,
26
+ "transformers_version": "5.10.2",
27
+ "type_vocab_size": 2,
28
+ "use_cache": true,
29
+ "vocab_size": 12455
30
+ }
onnx/model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:16c8c8560a5889ee9b85fa549f92ccc0d696656cf8837a29dfc9f7e4c6934be0
3
+ size 12473174
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "bos_token": "<s>",
4
+ "cls_token": "<s>",
5
+ "eos_token": "</s>",
6
+ "is_local": true,
7
+ "local_files_only": false,
8
+ "mask_token": "<mask>",
9
+ "max_length": 512,
10
+ "model_max_length": 512,
11
+ "pad_token": "<pad>",
12
+ "sep_token": "</s>",
13
+ "stride": 0,
14
+ "tokenizer_class": "TokenizersBackend",
15
+ "truncation_side": "right",
16
+ "truncation_strategy": "longest_first",
17
+ "unk_token": "<unk>"
18
+ }