asermnasr commited on
Commit
5adc0ea
·
verified ·
1 Parent(s): 58cf151

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +40 -0
README.md CHANGED
@@ -1,3 +1,43 @@
1
  ---
2
  license: apache-2.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ language:
4
+ - en
5
+ base_model:
6
+ - google/electra-base-discriminator
7
+ datasets:
8
+ - osunlp/Mind2Web
9
+ pipeline_tag: text-classification
10
+ library_name: onnxruntime
11
+ tags:
12
+ - onnx
13
+ - int8
14
+ - dom
15
+ - web-agent
16
+ - browser-automation
17
+ - cross-encoder
18
  ---
19
+
20
+ # Folate (`figranium/folate`)
21
+
22
+ **Folate** is a lightweight, CPU-efficient neural DOM element ranker built for browser automation within tight memory constraints (<2 GB total footprint alongside a headless browser).
23
+
24
+ Fine-tuned from [`google/electra-base-discriminator`](https://huggingface.co/google/electra-base-discriminator) on [`osunlp/Mind2Web`](https://huggingface.co/datasets/osunlp/Mind2Web) and dynamically quantized to **INT8 ONNX (~107 MB)** for fast CPU inference via `onnxruntime` and `tokenizers`—requiring no PyTorch or `transformers` at runtime.
25
+
26
+ ## Model Details
27
+
28
+ - **Architecture:** `ElectraForSequenceClassification` cross-encoder (single relevance logit)
29
+ - **Backbone:** `google/electra-base-discriminator`
30
+ - **Quantization:** Dynamic `QUInt8` ONNX (`model_quantized.onnx`, ~107 MB)
31
+ - **Max Sequence Length:** `96` tokens
32
+ - **Runtime Footprint:** ~180–250 MB RAM on CPU
33
+ - **Input Format:** `(natural_language_query, serialized_dom_element)`
34
+ - Example element string: `[TAG] button [TYPE] submit [DATA-TESTID] search-flights [TEXT] Search Flights [PARENT] form`
35
+
36
+ ## Quickstart
37
+
38
+ Install the inference package from [`github.com/figranium/folate`](https://github.com/figranium/folate):
39
+
40
+ ```bash
41
+ git clone [https://github.com/figranium/folate.git](https://github.com/figranium/folate.git)
42
+ cd folate
43
+ pip install -r requirements.txt