Minus-v0.1 running in the Chrome extension on theverge.com: the banner and sidebar ad slots are covered by language flashcards, each tagged with the model's confidence. The article itself is untouched.
Minus-v0.1 is a 450M-parameter vision–language model fine-tuned to answer one question about an image: "Is this an advertisement?" It powers the Minus Chrome extension, where it runs entirely in the browser (transformers.js + ONNX Runtime Web on WebGPU) and covers detected ads with language flashcards — no filter lists, no servers, no telemetry. It is the browser sibling of the minus HDMI ad-blocking device.
Instead of matching URLs or DOM patterns like a classic ad blocker, Minus classifies pixels: screenshots of page elements, video frames, and iframes. That means it generalizes to first-party ads, sponsored tiles, native placements and streaming-TV commercials that filter lists can't see — and it keeps working when ad-tech rotates domains.
Yes / No), scored as p(ad) = P(Yes)Is this an advertisement? Answer Yes or No.onnx/: ONNX, quantized for the browser (~430 MB total): q4 decoder, q8 token embeddings, q8 vision encoder. WebGPU required (the q4 decoder uses GatherBlockQuantized, which onnxruntime-web's WASM backend doesn't implement).axera/: compiled for the Axera AX650N / AX8850 NPU (e.g. Radxa AICore AX-M1), ~740 MB. This is what the minus HDMI device runs: ~360 ms per frame, fully on the NPU, 95.6% on an 800-image held-out set measured on the device.Minus-v0.1 is iteration 28 of a months-long training campaign (the first 27 iterations were exploration: base-model selection between FastVLM / SmolVLM / CLIP-style classifiers / LFM2.5-VL, then successive rounds of hard-negative and hard-positive mining, each gated by frozen benchmarks and live in-browser soak tests).
Recipe (frozen across late iterations): LoRA (r=16, α=32) on the language-model blocks only — vision tower and projector stay frozen — lr 2e-4, 3 epochs, effective batch 32. Trained on a single NVIDIA Jetson AGX Thor (128 GB unified memory). The LoRA is merged before export.
Data (not released): ~81,600 training samples across two domains:
Roughly 45% of the web-ad positives are native/chum-box style (Taboola/Outbrain-like), which classic blockers struggle with.
All gates are held-out sets that were frozen before this iteration trained; the live number comes from headed-browser soaks on real sites.
| benchmark | result |
|---|---|
| Streaming holdout (1,956 frames, hand-verified) | 99.90% ad recall / 98.06% non-ad recall |
| Static-web bench (999 images) @ shipping gate | 98.0% ad recall, 11 false positives |
| Product-image FP holdout (199 ad-look-alike product shots) | 1/199 false positives |
| Live in-browser precision (month of soak tests, real sites) | ~90–94% of covered elements are actually ads |
The static-web PR curve dominates or ties the previous production model at every operating point with non-ad recall ≥ 95%.
Every word shown over a blocked ad feeds the extension's built-in spaced-repetition review — the ads you don't watch become vocabulary you keep:
import { AutoProcessor, AutoModelForVision2Seq, RawImage } from "@huggingface/transformers";
const processor = await AutoProcessor.from_pretrained("TheGarageDev/Minus-v0.1");
const model = await AutoModelForVision2Seq.from_pretrained("TheGarageDev/Minus-v0.1", {
device: "webgpu", // REQUIRED — the q4 decoder is WebGPU-only
dtype: { embed_tokens: "q8", vision_encoder: "q8", decoder_model_merged: "q4" },
});
const image = await RawImage.read(imageUrlOrCanvas);
const messages = [{ role: "user", content: [
{ type: "image" },
{ type: "text", text: "Is this an advertisement? Answer Yes or No." },
]}];
const prompt = processor.apply_chat_template(messages, { add_generation_prompt: true });
const inputs = await processor(prompt, image);
// One decode step; compare the logits of "Yes" vs "No" for a calibrated p(ad).
const { logits } = await model({ ...inputs });
// p_ad = softmax over {logit("Yes"), logit("No")} — see the extension's engine
// (offscreen.js) for the exact token ids + scoring code.
Thresholding matters. The extension does not block at p ≥ 0.5 — it uses per-context gates chosen from the PR curve: 0.60 for elements with ad context (iframes / ad-slot containers) and 0.88 for bare images. If you deploy this model, pick your own operating point for your precision target.
hf download TheGarageDev/Minus-v0.1 --include "axera/*" --local-dir minus-v0.1
cd minus-v0.1/axera && python3 infer_vlm_fused.py frame.png
Prefill-only: the vision encoder and 16 fused decoder layers each run as one NPU call, and Yes/No is read from the
last position's logits, so no token is ever generated. Needs pyaxengine
and the AXCL runtime. Files, quantization details and on-device numbers: axera/README.md.
The ONNX graphs run under onnxruntime too (CPU/CUDA execution providers support the quantized ops). For full-precision experiments, start from the base model and the recipe above.
Inherits the LFM Open License v1.0 from the base model (LiquidAI/LFM2.5-VL-450M). The Minus extension source is at garagehq/Minus-chrome-extension.
Minus is free and open-source — the model above, the Chrome extension, and the device it grew out of. If it saves you from a few autoplay pre-rolls, you can buy me a coffee ☕:
有文件?提交种子。
发布种子onnx/decoder_model_merged_q4.onnx 183.8 KiBonnx/vision_encoder_quantized.onnx 183.6 KiBonnx/embed_tokens_quantized.onnx 0.8 KiB