Run the inspection queue
Memo handling:
Fusing the photo and the raw memo in one pass is Gemma 4's headline capability, and the
single-pass mode stays here so you can see it. In our runs, though, the 2-bit QAT E2B model often ignores the
audio when it also gets a long JSON instruction: it writes "the audio is not provided" even though hundreds of
<|audio|> tokens are in the prompt. So the default splits the work. Pass A gets only the memo
and the instruction "Transcribe the audio exactly." Pass B gets only the photo, the field-report instruction and
pass A's transcript, which it copies into memo_transcript. Both passes run on the same model.
Start runs every item from the top. Pause lets the current item finish, then halts; Resume continues with the items still queued. Cancel stops the current item mid-generation and clears everything left.
Checking for a local copy of Gemma 4 E2B…
Current item — live output
Prompt token mix of the current item
Counted from the real input_ids once an item prefills.
Queue
Add your own photo + voice memo
Pending photo
No photo chosen.
Pending voice memo
No memo chosen.
…or drop a photo and an audio clip here together. Files are decoded in this tab and never uploaded; audio is resampled to 16 kHz mono and capped at 30 s (Gemma 4's audio limit).
Parsed field reports
Why one model for photo + memo
- No separate ASR or OCR model: the memo goes in as raw 16 kHz PCM and the plate as image patches, both handled by the same 2.6 GB checkpoint, either in one fused prompt or as transcribe-then-report.
- Structured, checkable output: the page never trusts the JSON blindly — each report is parsed, every required key is checked, and missing keys or malformed output mark the item failed rather than inventing a value.
- Fits a real field workflow: pause between assets, resume later, cancel a bad batch, and hand the CSV to a spreadsheet without formula-injection risk (cells starting with
=,+,-or@are prefixed). - Honest limits: the preset memos are public-domain / CC BY speech that has nothing to do with the equipment, so a faithful report transcribes them as-is. A 2-bit QAT model can still misread a value — check the "Plate facts" column.
How it works
For each queued item the page rasterises the photo to RGBA (≤840 px) and calls
Gemma4Engine.generate() in a Web Worker. In the default mode, pass A sends only the memo with
"Transcribe the audio exactly." (maxNewTokens: 96). Pass B then sends only the photo, with the
field-report instruction and pass A's transcript (maxNewTokens: 256). In single-pass mode, one
audio → image → text message carries everything. Cancel stops whichever pass is running, and the page yields
to the main thread between items so it stays responsive.