Text Classification
Transformers
ONNX
Safetensors
bert
form-autofill
firefox
text-embeddings-inference
Instructions to use Mozilla/minilm-multi-address-autofill with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Mozilla/minilm-multi-address-autofill with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Mozilla/minilm-multi-address-autofill")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Mozilla/minilm-multi-address-autofill") model = AutoModelForSequenceClassification.from_pretrained("Mozilla/minilm-multi-address-autofill", device_map="auto") - Notebooks
- Google Colab
- Kaggle
tinybert/minilm address-autofill β bb-intl (relabel)
Monolithic (single-sequence, bb context) field-type classifier for Firefox
form autofill. Predicts an autocomplete-style token per form field from its
mlData (id/name/placeholder/label + bb/aa neighbor context).
Provenance
- Architecture:
bb(monolithic single-sequence classifier) - Base encoder:
rolf-mozilla/minilm-pruned-notest-relabelβ multilingual MiniLM-L12 pruned to a 18,473-token vocab (train+val only, test excluded), 4 layers. - Training data:
-relabelβ the shipped corpus re-labeled with an o4-mini audit (name/label corrections) plus a fresh multilingual Common-Crawl batch (CC-MAIN-2026-34: en/de/es/ja/it/nl/pt) merged intodata/common_crawl. - mlData features:
select_option(option-range token) +input_attributes(**maxlen<N>/**inputmode). - Metaflow run:
argo-autofillflow-8wpwd(namespaceproduction:autofillflow-0-egrc) - Hyperparams: encoder_layers 4, 6 epochs, batch 32, lr 7e-5, warmup 0.1, weight_decay 0.05, gen_to_real_ratio 2.0, subsample_validation.
Metrics
| split | total acc | close acc | name recall |
|---|---|---|---|
test (data/testing) |
0.8873 | 0.9117 | 0.826 |
| validation | 0.9042 | 0.9270 | 0.940 |
name recall improved ~+16 pt over the previous bb baseline (0.783 β 0.940 on
validation) β the fix for full-name fields mislabeled as family-name.
Files
model.safetensors,config.json,tokenizer.jsonβ fp32 PyTorch model.onnx/model.onnxβ fp32 ONNX.onnx/model_quantized.onnx(=model_int8.onnx) β int8, per-channel + reduce_range (weights within Β±64, safe for the AVX2 int16 accumulator β Bugzilla 2064781). 14.7 MB.
int8 accuracy (lossless)
fp32 0.8873 β int8 0.8861 on testing-relabel.txt (Ξ β0.12 pt).
- Downloads last month
- 21