A 50M-parameter reader, running in your browser

A small language model trained from scratch in pinwheel-llm, then fine-tuned to answer a question about a passage by copying a short span from it. It runs on your CPU with llama.cpp compiled to WebAssembly (wllama); nothing is sent to a server.

Good questions have a short answer written in the passage: who, what, when, where, how many / much / long. Lower case and no question mark are fine.

Out of its reach: lists ("which countries…"), reasoning or summarizing, yes/no questions, anything the passage does not say. It tries to say when the answer is not there, and when it is unsure, but it often still guesses with confidence (the last questions of each example show all three). It is a 50M model: it gets about one SQuAD question in three wrong.

Model (downloaded when you first ask, then cached by the browser)

Examples:

Try: