Show HN: Folate – Local DOM selector model that beats 7B VLMs at 1/60th the size A developer released Folate, an Apache 2.0-licensed DOM element ranker fine-tuned from google/electra-base-discriminator on the osunlp/Mind2Web dataset and quantized to INT8 ONNX at roughly 107 MB, which the author says beats 7B vision-language models at 1/60th the size for browser automation. Folate runs on CPU via onnxruntime and tokenizers with no PyTorch or transformers at inference, using about 180–250 MB of RAM, and scores (natural-language query, serialized DOM element) pairs in a single batched forward pass to return CSS/XPath selectors that are guaranteed to exist on the live page. The package is installable via pip and ships Playwright examples for grounding elements on google.com, amazon.com and github.com. PyPI https://pypi.org/project/folate/ • Hugging Face https://huggingface.co/figranium/folate • Demo https://huggingface.co/spaces/figranium/folate-demo • Apache 2.0 https://github.com/figranium/folate/blob/main/LICENSE A lightweight, CPU-efficient neural DOM element ranker built for browser automation within tight memory constraints <2 GB total footprint alongside a headless browser . 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 , Folate runs purely via onnxruntime and tokenizers —requiring no PyTorch or transformers at inference time. Folate operates as a discriminative cross-encoder that scores natural language query, serialized dom element pairs in a single batched forward pass on CPU. | Variant / Artifact | Backbone | Precision / Format | Disk Size | Runtime RAM | |---|---|---|---|---| | folate-int8 Default | google/electra-base-discriminator | Dynamic QUInt8 ONNX | ~107 MB | ~180–250 MB | | folate-base | google/electra-base-discriminator | float32 Safetensors | ~418 MB | ~1.4+ GB PyTorch | - Zero-Hallucination Selector Grounding — Ranks real interactive DOM nodes extracted via lxml XPath