doeve commited on
Commit
6d790ab
·
verified ·
1 Parent(s): b9a40ed

Upload v1 ship model (format v1)

Browse files
README.md ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: en
3
+ tags:
4
+ - sentence-transformers
5
+ - web-agent
6
+ - bi-encoder
7
+ - element-selection
8
+ - mind2web
9
+ license: apache-2.0
10
+ datasets:
11
+ - osunlp/Mind2Web
12
+ pipeline_tag: feature-extraction
13
+ ---
14
+
15
+ # Web Agent Bi-Encoder (v1)
16
+
17
+ A fine-tuned bi-encoder for web element selection, trained on the Mind2Web dataset.
18
+
19
+ ## What this model does
20
+
21
+ Given a natural-language task description (e.g., "click the search button") and a set
22
+ of serialized web page elements, this model identifies the correct element to interact with.
23
+
24
+ ## Training
25
+
26
+ - **Base model**: BAAI/bge-small-en-v1.5
27
+ - **Training data**: Mind2Web (~5825 examples)
28
+ - **Loss**: MultipleNegativesRankingLoss
29
+ - **Format version**: v1
30
+
31
+ ## Evaluation
32
+
33
+ - **Top-1 accuracy**: 80.4%
34
+ - **Δ vs zero-shot baseline**: +13.8 points
35
+ - **Baseline**: BAAI/bge-small-en-v1.5
36
+
37
+ ## Serialization format
38
+
39
+ This model expects inputs serialized in the web-agent v1 format. See the
40
+ repository's `docs/spec/03-node-serialization.md` for the full specification.
41
+ Models trained on a different format version are incompatible.
42
+
43
+ ## Limitations
44
+
45
+ - Trained primarily on English-language web tasks
46
+ - US-centric site distribution in Mind2Web
47
+ - Dataset collected circa 2023; some site layouts may have changed
48
+ - Best for common web interaction patterns (forms, search, navigation)
49
+
50
+ ## Usage
51
+
52
+ ```python
53
+ from sentence_transformers import SentenceTransformer
54
+
55
+ model = SentenceTransformer("doeve/web-agent-bge-small-v1", revision="v1.0.0")
56
+ query_emb = model.encode(["search for flights"])
57
+ candidate_embs = model.encode(["textbox \"Search\" | — | in form:\"\", ..."])
58
+ ```
59
+
60
+ Or via Transformers.js in the browser:
61
+
62
+ ```javascript
63
+ import { pipeline } from "@huggingface/transformers";
64
+ const extractor = await pipeline("feature-extraction", "doeve/web-agent-bge-small-v1",
65
+ { revision: "v1.0.0", dtype: "q8" });
66
+ ```
config.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "BertModel"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "classifier_dropout": null,
7
+ "dtype": "float32",
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.1,
10
+ "hidden_size": 384,
11
+ "id2label": {
12
+ "0": "LABEL_0"
13
+ },
14
+ "initializer_range": 0.02,
15
+ "intermediate_size": 1536,
16
+ "label2id": {
17
+ "LABEL_0": 0
18
+ },
19
+ "layer_norm_eps": 1e-12,
20
+ "max_position_embeddings": 512,
21
+ "model_type": "bert",
22
+ "num_attention_heads": 12,
23
+ "num_hidden_layers": 12,
24
+ "pad_token_id": 0,
25
+ "position_embedding_type": "absolute",
26
+ "transformers_version": "4.57.6",
27
+ "type_vocab_size": 2,
28
+ "use_cache": true,
29
+ "vocab_size": 30522
30
+ }
model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a3fdd4585308c83281af31267a722e26748fc432fee9e9d40181d17f2c00a3e2
3
+ size 34000281
modules.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "idx": 0,
4
+ "name": "0",
5
+ "path": "",
6
+ "type": "sentence_transformers.base.modules.transformer.Transformer"
7
+ },
8
+ {
9
+ "idx": 1,
10
+ "name": "1",
11
+ "path": "1_Pooling",
12
+ "type": "sentence_transformers.sentence_transformer.modules.pooling.Pooling"
13
+ },
14
+ {
15
+ "idx": 2,
16
+ "name": "2",
17
+ "path": "2_Normalize",
18
+ "type": "sentence_transformers.sentence_transformer.modules.normalize.Normalize"
19
+ }
20
+ ]
ort_config.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "one_external_file": true,
3
+ "opset": null,
4
+ "optimization": {},
5
+ "quantization": {
6
+ "activations_dtype": "QUInt8",
7
+ "activations_symmetric": false,
8
+ "format": "QOperator",
9
+ "is_static": false,
10
+ "mode": "IntegerOps",
11
+ "nodes_to_exclude": [],
12
+ "nodes_to_quantize": [],
13
+ "operators_to_quantize": [
14
+ "Conv",
15
+ "MatMul",
16
+ "Attention",
17
+ "LSTM",
18
+ "Gather",
19
+ "Transpose",
20
+ "EmbedLayerNormalization"
21
+ ],
22
+ "per_channel": true,
23
+ "qdq_add_pair_to_weight": false,
24
+ "qdq_dedicated_pair": false,
25
+ "qdq_op_type_per_channel_support_to_axis": {
26
+ "MatMul": 1
27
+ },
28
+ "reduce_range": false,
29
+ "weights_dtype": "QInt8",
30
+ "weights_symmetric": true
31
+ },
32
+ "use_external_data_format": false
33
+ }
sentence_bert_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "transformer_task": "feature-extraction",
3
+ "modality_config": {
4
+ "text": {
5
+ "method": "forward",
6
+ "method_output_name": "last_hidden_state"
7
+ }
8
+ },
9
+ "module_output_name": "token_embeddings"
10
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": {
3
+ "content": "[CLS]",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "mask_token": {
10
+ "content": "[MASK]",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "[PAD]",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "sep_token": {
24
+ "content": "[SEP]",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "unk_token": {
31
+ "content": "[UNK]",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ }
37
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[PAD]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "100": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "101": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "102": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "103": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "clean_up_tokenization_spaces": true,
45
+ "cls_token": "[CLS]",
46
+ "do_basic_tokenize": true,
47
+ "do_lower_case": true,
48
+ "extra_special_tokens": {},
49
+ "mask_token": "[MASK]",
50
+ "max_length": 256,
51
+ "model_max_length": 256,
52
+ "never_split": null,
53
+ "pad_to_multiple_of": null,
54
+ "pad_token": "[PAD]",
55
+ "pad_token_type_id": 0,
56
+ "padding_side": "right",
57
+ "sep_token": "[SEP]",
58
+ "stride": 0,
59
+ "strip_accents": null,
60
+ "tokenize_chinese_chars": true,
61
+ "tokenizer_class": "BertTokenizer",
62
+ "truncation_side": "right",
63
+ "truncation_strategy": "longest_first",
64
+ "unk_token": "[UNK]"
65
+ }
training_meta.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "base_model": "BAAI/bge-small-en-v1.5",
3
+ "batch_size": 32,
4
+ "epochs": 4,
5
+ "learning_rate": 2e-05,
6
+ "warmup_ratio": 0.1,
7
+ "max_seq_length": 256,
8
+ "loss_scale": 20.0,
9
+ "train_rows": 5825,
10
+ "train_examples": 34950,
11
+ "val_rows": 638,
12
+ "device": "cpu",
13
+ "val_metrics": {
14
+ "val_cosine_accuracy@1": 0.588,
15
+ "val_cosine_accuracy@3": 0.794,
16
+ "val_cosine_accuracy@5": 0.872,
17
+ "val_cosine_accuracy@10": 0.94,
18
+ "val_cosine_precision@1": 0.588,
19
+ "val_cosine_precision@3": 0.2646666666666666,
20
+ "val_cosine_precision@5": 0.1744,
21
+ "val_cosine_precision@10": 0.094,
22
+ "val_cosine_recall@1": 0.588,
23
+ "val_cosine_recall@3": 0.794,
24
+ "val_cosine_recall@5": 0.872,
25
+ "val_cosine_recall@10": 0.94,
26
+ "val_cosine_ndcg@10": 0.76452976031552,
27
+ "val_cosine_mrr@10": 0.7081841269841267,
28
+ "val_cosine_map@100": 0.7095647550152437
29
+ }
30
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff
 
web_agent_stamp.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "format_version": "v1",
3
+ "training_phase": 1,
4
+ "trained_on": "2026-04-29",
5
+ "base_model": "BAAI/bge-small-en-v1.5",
6
+ "training_data_size": 5825,
7
+ "training_data_source": "mind2web",
8
+ "metrics_summary": {
9
+ "top1_acc": 0.8042,
10
+ "vs_baseline_delta": 0.1379,
11
+ "baseline": "BAAI/bge-small-en-v1.5"
12
+ },
13
+ "tokenizer_max_length": 256,
14
+ "embedding_dim": 384,
15
+ "use_mean_pooling": true
16
+ }