/ Модель

Характеристики

Лицензия
Своя лицензия
Архитектура
lfm3_vl · dense
Базовая модель
d1-2B
Библиотека
transformers
Опубликована
7 ноя 2026

locheal-verdict-2b

Изображение и текст → текст3 профессии

Мультимодальная модель для выбора DOM-элемента и безопасного восстановления сломанных локаторов в тестах Playwright и Selenium.

183скачиваний за 30 дней1лайквеса обновлены8 ноя 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

LocHeal Verdict 2B — специализированная мультимодальная модель зрения и языка от kinasr, дообученная на базе LiquidAI/d1-2B для автоматического восстановления локаторов в тестах веб-интерфейсов. Она принимает скриншот с разметкой Set-of-Marks, сведения о сломанном локаторе и намерении действия, а также список DOM-кандидатов; за один проход выбирает подходящий элемент или возвращает Unknown, если цель удалена или недоступна. Модель предназначена для интеграции с Playwright и Selenium, где тестовый фреймворк строит валидный локатор по выбранному DOM-узлу.

В README заявлены результаты на тесте из 360 примеров: точность Top-1 99,7%, полнота для Unknown 100% и нулевой уровень ошибочного восстановления. Это результаты указанного автора тестирования, они не гарантируют аналогичную точность на других сайтах и сценариях. Модель основана на архитектуре LFM3-VL-2B; репозиторий содержит веса Safetensors и рассчитан на Transformers. Лицензия указана как other, поэтому перед использованием следует проверить её условия.

Сценарии применения

  • восстановление локатора после изменения HTML или CSS
  • выбор нужного элемента по скриншоту и DOM-кандидатам
  • определение, что элемент удалён или заблокирован, с отказом от клика
  • автоматизация самовосстановления UI-тестов в Playwright
  • автоматизация самовосстановления UI-тестов в Selenium

Ограничения

Заявленные показатели основаны на авторском тесте из 360 примеров и могут не переноситься на другие интерфейсы. Для применения нужны скриншот с разметкой Set-of-Marks, телеметрия сломанного локатора и DOM-кандидаты; лицензию с пометкой other следует проверить отдельно.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

LocHeal Verdict 2B (kinasr/locheal-verdict-2b) 🩹🎯

LocHeal Verdict 2B is a specialized System 1 Typed-Decision Vision-Language Model fine-tuned for Automated Self-Healing Web Locators & Multimodal DOM Element Grounding in Playwright/Selenium test suites.

Built on top of LiquidAI/d1-2B (powered by the LFM3-VL-2B tri-hybrid architecture), LocHeal Verdict 2B takes a Set-of-Marks (SoM) annotated screenshot alongside broken locator telemetry (broken_locator, variable_name, intended_action, and optional description) and scores live DOM candidate elements in a single forward pass—returning temperature-calibrated probabilities or explicitly abstaining (Unknown) when the target element has been genuinely removed or blocked from the UI.


✨ Why LocHeal Verdict 2B?

Traditional heuristic self-healing tools rely solely on brittle DOM attribute similarity (failing when a frontend refactor changes tags, CSS classes, and DOM hierarchy simultaneously) and suffer from dangerous False Heals (clicking the wrong button when the target element was actually deleted). Conversely, generative LLMs hallucinate invalid XPath/CSS selectors and add multi-second latency.

LocHeal Verdict 2B solves both problems through Candidate Selection + Visual Grounding:

  • ⚡ Zero Selector Hallucination (Candidate Selection Paradigm): Instead of generating fragile XPath/CSS strings token-by-token, Playwright extracts the live interactive DOM elements [0..N], overlays numeric Set-of-Marks badges on the screenshot, and locheal-verdict-2b selects the exact candidate index in a single forward pass via SlotReader. Your automation framework then synthesizes a 100% valid locator directly from the chosen live DOM node.
  • 🖼️ Visual + Semantic Fusion: Even if a button's HTML changes from <button id="checkout-btn"> to <div role="button" class="tw-cta-92">Pay Now</div>, its visual position, surrounding context, and semantic intent remain recognizable in the Set-of-Marks screenshot.
  • 🛡️ Explicit Abstention (Unknown Gate to Prevent False Heals): Trained on genuine element-deletion and modal/loading blockage scenarios so that if a developer removes a feature or breaks a page, the model selects Unknown (Do NOT heal) with 0.0% False-Heal Rate rather than clicking a nearby distractor button.
  • 🔧 Works With or Without Human Descriptions: Trained with a 50/50 curriculum split—operating at 99.4%–100.0% accuracy whether given an explicit description or inferring intent purely from broken_locator, variable_name, and intended_action.

📊 Benchmark & Evaluation Results

Evaluated on the held-out Out-of-Distribution (locheal-ood-v1-benchmark, 360 samples) benchmark across 6 categories (300 healable frontend refactorings + 60 unhealable Unknown states) under matched evaluation settings (4 cyclic option rotations, MPS float16, native SlotReader temperature calibration, dataset SHA-256 a418556dcb4ab86f...):

1. Overall Performance, Safety & Calibration

ModelOverall Top-1 (360)Heal Top-1 (300)Heal Top-2 (300)Unknown Recall (60)False-Heal Rate ↓Safe Action ↑ECE ↓Brier ↓
kinasr/locheal-verdict-2b (Ours)99.7% (359/360)99.7%100.0%100.0%0.0%100.0%0.4%0.0068
heuristic-dom-matcher (Rule-Based)93.3%98.7%99.7%66.7%33.3%93.3%5.4%0.0959
LiquidAI/d1-2B (Base Zero-Shot)92.2%91.7%98.7%95.0%5.0%98.9%17.0%0.1703
LiquidAI/LFM3-VL-2B (Zero-Shot)76.1%79.0%89.0%61.7%38.3%84.7%9.2%0.3472

Key Takeaways:

  • Near-Perfect OOD Accuracy (99.7%): locheal-verdict-2b solved 359 out of 360 unseen OOD samples on its first choice (Top-1 = 99.7%) and 100.0% within Top-2, rescuing 27 samples missed by base LiquidAI/d1-2B with 0 regressions.
  • Eliminating the Heuristic "False-Heal" Trap (0.0% vs. 33.3%): Traditional DOM similarity matchers (heuristic-dom-matcher) suffer from a 33.3% False-Heal Rate (scoring only 26.7% when a target button is genuinely deleted, dangerously clicking a wrong distractor button in 73.3% of deleted-element cases). locheal-verdict-2b achieves 100.0% Unknown Recall and 0.0% False-Heal Rate.
  • Razor-Sharp Calibration: Post-training temperature calibration reduced Expected Calibration Error (ECE) from 17.0% in base d1-2B down to 0.4% (Brier = 0.0068).

2. Per-Category & Unknown Subtype Accuracy

Category / SubtypeRowskinasr/locheal-verdict-2bLiquidAI/d1-2Bheuristic-dom-matcherLiquidAI/LFM3-VL-2B
id_testid_refactor60100.0%91.7%100.0%78.3%
css_dom_restructure60100.0%93.3%100.0%73.3%
copy_and_i18n_drift6098.3%83.3%93.3%78.3%
disambiguated_repeated_control60100.0%90.0%100.0%81.7%
form_field_relayout60100.0%100.0%100.0%83.3%
Unknown (All Unhealable States)60100.0%95.0%66.7%61.7%
↳ target_deleted15100.0%93.3%26.7%26.7%
↳ loading_skeleton_state15100.0%93.3%53.3%53.3%
↳ modal_or_consent_blocked15100.0%100.0%100.0%73.3%
↳ wrong_route_or_error_page15100.0%93.3%86.7%93.3%

3. Ablation: With vs. Without Semantic description

ModelWith description (180 rows)Without description (180 rows)Delta
kinasr/locheal-verdict-2b (Ours)99.4%100.0%+0.6% (Zero degradation)
LiquidAI/d1-2B (Base Zero-Shot)95.0%89.4%-5.6%
LiquidAI/LFM3-VL-2B (Zero-Shot)89.4%62.8%-26.6%
heuristic-dom-matcher92.2%94.4%+2.2%

4. CI/CD Confidence Gating & Latency

ModelThreshold $\ge$Auto-HealsCoverage (All 360)Accuracy Among Auto-Heals4-Rotation Mean Latency*Peak RAM / VRAM (MiB)
kinasr/locheal-verdict-2b0.75298 / 30082.8%100.0%3030.1 ms (~757 ms / pass)3037 / 5534
kinasr/locheal-verdict-2b0.90297 / 30082.5%100.0%3030.1 ms (~757 ms / pass)3037 / 5534
LiquidAI/d1-2B0.9048 / 30013.3%100.0%3031.8 ms5642 / 5534
heuristic-dom-matcher0.90242 / 30067.2%99.6%8.6 ms288 / —

*Note: Maximum theoretical auto-heal coverage is 83.3% (300/360), as 60/360 rows (16.7%) are genuine Unknown abstentions where healing must not occur. At $\ge 0.90$ confidence, locheal-verdict-2b automatically heals 297 of the 300 healable rows with 100.0% precision.


🏗️ Model Architecture & Repository Structure

PropertySpecification
Base ArchitectureLiquidAI/d1-2B (LFM3-VL-2B Tri-Hybrid: 13 Gated Short Conv + 5 Sliding Window + 6 Global Attention layers)
Parameters1.92B
Vision Encoder164M Native-Resolution Vision Tower (optimized at 896x896 max pixel budget for crisp Set-of-Marks badge legibility)
Fine-Tuning MethodMerged LoRA (r=16, lora_alpha=32) over unfused language projections (q_proj, k_proj, v_proj, out_proj, in_proj, gate_proj, w1, w2, w3)
CalibrationPost-trained LBFGS temperature scaling (calibration.json) across choice:low, choice:mid, and choice:high candidate list buckets
Weights FormatStandalone merged model.safetensors (bfloat16) + original LoRA adapter backup in ./lora_adapter/

🚀 Quickstart & Inference

1. Installation

pip install -U "transformers>=5.19.0" accelerate safetensors pillow torch torchvision

2. Running Self-Healing Locator Resolution in Python

import os
import sys
import json
import torch
from PIL import Image
from transformers import AutoModel, AutoProcessor

# Keep Set-of-Marks (SoM) numeric badges sharp
os.environ["D1_VISION_MAX_PIXELS"] = str(896 * 896)

MODEL_ID = "kinasr/locheal-verdict-2b"
DEVICE = "cuda" if torch.cuda.is_available() else ("mps" if torch.backends.mps.is_available() else "cpu")
DTYPE = torch.float16 if DEVICE != "cpu" else torch.float32

# 1. Load processor and standalone fine-tuned model
processor = AutoProcessor.from_pretrained(MODEL_ID, trust_remote_code=True)
model = AutoModel.from_pretrained(
    MODEL_ID,
    trust_remote_code=True,
    dtype=DTYPE,
).to(DEVICE).eval()

# 2. Initialize the d1 SlotReader decision engine
pkg_name = model.__class__.__module__.rsplit(".", 1)[0]
slots_mod = sys.modules[f"{pkg_name}.slots"]
engine = slots_mod.SlotReader(model, processor)

# 3. Load Set-of-Marks annotated screenshot + Broken Locator Telemetry
som_screenshot = Image.open("current_page_som.png").convert("RGB")

broken_locator_state = {
    "route": "/checkout/payment",
    "viewport": "1440x900",
    "broken_locator": "button[data-testid='submit-order-cta']",
    "variable_name": "placeOrderBtn",
    "intended_action": "click",
    "description": "Primary CTA button to confirm and pay for the order in the checkout summary" # Optional
}

# Candidate interactive elements extracted from the live DOM + explicit Unknown option
candidates = [
    "[0] <a role='link' text='Return to Cart' section='Checkout Header' bbox=(64,42,130,32)>",
    "[1] <input type='text' placeholder='Promo code' section='Order Summary' bbox=(920,280,240,40)>",
    "[2] <button role='button' text='Apply' section='Order Summary' bbox=(1170,280,80,40)>",
    "[3] <button role='button' text='Pay & Complete Order' aria='Confirm order' section='Order Summary' bbox=(920,460,330,48)>",
    "[4] <button role='button' text='Cancel Order' section='Order Summary' bbox=(920,520,330,40)>",
    "Unknown / Element removed or missing from the current page (Do NOT heal)"
]

criteria = {f"opt_{i}": text for i, text in enumerate(candidates)}
question = {
    "type": "choice",
    "instructions": "Identify the correct replacement interactive element from the Set-of-Marks screenshot and DOM candidates that matches the broken locator intent, or select Unknown if the target element was removed.",
    "criteria": criteria
}

# 4. Single forward-pass healing decision
result = engine.decide(
    state=broken_locator_state,
    questions={"healed_candidate": question},
    images=[som_screenshot]
)

print(json.dumps(result, indent=2))

🛠️ Recommended Production Pipeline (Playwright Self-Healing Hook)

  1. Catch TimeoutError on Locator Action: When a Playwright locator fails (click, fill, check), trigger the self-healing interceptor.
  2. Extract Filtered DOM Candidates & Render SoM Badges: Query visible interactive elements (button, a, input, select, textarea, [role=button], [role=tab]), draw numbered bounding-box badges [0..N] on a screenshot copy, and build compact one-line DOM candidate descriptors.
  3. Single Forward-Pass Verdict: Pass the SoM screenshot, broken_locator_state, and candidate list to kinasr/locheal-verdict-2b.
  4. Confidence & Abstention Gate:
    • If the model predicts Unknown or confidence is < 0.75, fail the test immediately and report that the target element is missing or blocked on the UI.
    • If confidence is >= 0.75, resolve the selected candidate index back to its live DOM handle, generate a resilient Playwright locator (getByRole / data-testid / CSS), log a self-healing warning for the PR, and continue the test execution.

🔗 Related Models in the Verdict QA Suite

📜 License

This model inherits the LFM Open License v1.0 from its base model LiquidAI/d1-2B.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Нельзя запустить

Модели нужен код из репозитория; запуск откроется после проверки совместимости.

Класс архитектуры
D1Model
Ревизия весов
9aa7497

0 моделей