Selected work

Models / trained from scratch

15M and 30M QA models that run in the browser

Small question-answering models that answer from a page’s passages, or refuse, on devices without WebGPU.

Passages in, a quoted answer or a refusal out, inside the browser.

The context

I wanted a chat assistant for this site that answers from its own pages without a large download or WebGPU, and refuses when the passages don’t say.

What I worked on

  • Pretrained two small decoders from scratch on FineWeb-Edu and FineWeb: Tiny 30M (30.5M parameters) and Ant 15M (14.9M, alternating attention and Mamba2 layers).
  • Fine-tuned both on about 171K evidence-first examples generated with Qwen3-8B: quote the passage first, then answer, or answer “Source: none”.
  • Exported each as one int8 ONNX file (SmoothQuant) that runs on onnxruntime-web’s WASM backend: 44 MB for Tiny 30M, 21 MB for Ant 15M.

What came out of the work

Both models are on Hugging Face. On held-out pages they refuse unanswerable questions well (refusal AUROC 0.99 for Tiny 30M, 0.986 for Ant 15M).

What I keep coming back to

They are experiments, not production assistants: on this site’s own questions Ant 15M answers 9 of 24 correctly and shows a wrong answer about as often, so they are not on the site yet.

Have a question about this work?

Get in touch