Read Scanned Exam Papers Offline with LFM3-VL-2B in LM Studio
To transcribe a scanned question paper offline with LM Studio, render the PDF into page images and send one page at a time to a vision model such as LFM3-VL-2B. Ask it to copy visible text, then reconcile every question number, mark and equation against the scan. For exam papers, a correct question number and marks are as important as fluent text.
1. Check whether the PDF needs image transcription
Try selecting a sentence in your PDF viewer or inspect the first page with pdftotext. A blank result usually means you need image transcription. Some PDFs contain a selectable layer on only a subset of pages, so check more than one page.
pdftotext -f 1 -l 1 paper.pdf -Use a public previous-year paper for the first trial. Keep the original PDF available throughout review. If the PDF has a reliable text layer, extract it first and use images only to check layout and suspicious passages.
2. Render page images locally
mkdir -p pages
pdftoppm -r 220 -png paper.pdf pages/pageThis example uses Poppler. Keep page filenames in order and inspect the first output before sending all pages. Crop edges that contain no text, rotate sideways pages and split dense columns into labeled crops when needed. Preserve an unedited page for checking where each crop came from. Increase resolution selectively if marks or subscripts are hard to read.
3. Load LFM3-VL-2B and test its vision input
Search for LFM3-VL-2B in LM Studio. Install a compatible quantization with its matching multimodal projector if required. The Liquid AI GGUF file list shows a 1.1 GB Q4_K_M model and several separate projector files. Use the corresponding components from the same distribution and verify the selected runtime supports vision.
Attach one page image. Ask for the visible subject heading and paper code, then compare the result against the page. If a clearly legible heading comes back generic or the image is ignored, fix image input before processing more pages. For memory troubleshooting on a shared-memory Windows laptop, see the integrated graphics setup guide.
4. Use a prompt that preserves structure
Transcribe only what is visible in this page image.
Copy the heading, instructions, sections, question numbers,
subparts, OR options and marks exactly as printed.
Keep question text in the original language and order.
Use [illegible] for uncertain characters or words.
If a diagram has no readable label, write [diagram present].
If a question continues off the page, write [continues].
Do not solve questions or infer text from the subject.
Return one Markdown section for this page.Use a fresh chat for each page if the model starts repeating prior content. For equations, ask for a second extraction of a tight crop and compare every symbol visually. For tables, verify headers, row counts and cell order against the image.
5. Reconcile the output before publishing it
| Check | How to verify |
|---|---|
| Paper identity | Compare university, course, semester, subject code and date against the scan header. |
| Coverage | Count pages, section headings, questions, subparts and alternatives. |
| Marks | Check section instructions and each printed mark value independently. |
| Equations and diagrams | Check symbols against the scan. Refer readers to the source image where a diagram carries information that text cannot capture. |
| Uncertain wording | Keep uncertainty visible during review and consult a sharper scan when available. |
For a repeatable evaluation, manually transcribe one representative page and compare correct question numbers, correct marks, missing lines and invented words. Record results separately for clean pages and difficult pages. This workflow provides the procedure and review criteria. Accuracy depends on the scan and the selected runtime.
Frequently asked questions
Can I use this offline?
Download the model and its runtime first. Load the local model, avoid cloud selections, and repeat the smoke test while disconnected to verify your own setup.
Should I upload the whole scanned PDF to chat?
For scans, page rendering makes it clear which images the model received and where errors occurred. For document questions after ingestion, see Gyan Aangan’s offline PDF chat guide.
What if the model skips lines?
Process a crop of that section, use conventional OCR for a second reading, and verify the source visually. A result that reads smoothly can still omit a line or misplace a mark.
