Field Atlas reader — Qwen3-4B-Instruct-2507 + QLoRA

A small offline reader for Field Atlas, a free Android app that answers questions offline from sources saved on the phone.

Given a question and up to 8 numbered passages, the model answers from those passages only, ends each sentence that uses a passage with its number ([S2]), and says "The saved sources don't say." when the passages do not contain the answer. It is tuned not to add first-aid steps that are not in the passages.

Scores

Measured with the bounty's own script, tools/evaluation/reader_bench.py from 0x94t3z/fieldatlas, temperature 0, thinking off, Q4_K_M GGUF served by llama.cpp.

Set Correct Key facts found Gaps admitted False refusals Numbers from nowhere
dev, 60 questions 81.7% (49/60) 85.7% 100% 19.0% 0.0%
heldout, 400 questions (SAFWAAN/fieldatlas-reader-data) 66.5% 80.0% 100% 8.9% 0.0%

The app's current model, Qwen3.5 2B, scores 36.7% on dev with the same script.

Per-category dev: fact 100%, health 100%, insufficient 100%, explain 90%, biology 80%, travel 80%, synthesis 75%, compare 50%, crypto 33%.

Files

File What it is
q3-4b-reader2-Q4_K_M.gguf the model, 2,497,278,944 bytes, Q4_K_M — SHA-256 ba655ff71e9e77cb246f83392e926f2a815db48a809404c5a0ac259dae6a3646
train_reader2.py QLoRA training script (loss masked to the answer tokens only)
prep_sft.py turns the training data into the benchmark's exact prompt format
merge_lora.py merges the adapter into the base model
scores/ raw score JSON for dev and heldout

Training

  • Base: Qwen/Qwen3-4B-Instruct-2507 (Apache-2.0, 4.0B dense).
  • QLoRA 4-bit, rank 32, alpha 32, 2 epochs, lr 2e-4, max sequence 1536, batch 1 with 16-step accumulation.
  • 966 steps, final training loss 0.238, on one RTX 3060 12 GB.
  • The loss is computed only on the assistant answer; the prompt tokens (8 passages, 95%+ of the sequence) are masked with -100. A first run without this masking scored 61.7% on dev; masking took it to 81.7%.
  • The prompt sent at training time is byte-identical to the one reader_bench.py sends, with enable_thinking=False.

Data

Training data: SAFWAAN/fieldatlas-reader-data (CC BY-SA 4.0), 9,497 examples in the benchmark's format. No dev or heldout questions were trained on.

Use

llama-server -m q3-4b-reader2-Q4_K_M.gguf --port 8080 -c 8192
python3 tools/evaluation/reader_bench.py run   --data docs/fieldtest/reader/dev.jsonl \
    --server http://127.0.0.1:8080 --model reader --out preds.jsonl
python3 tools/evaluation/reader_bench.py score --data docs/fieldtest/reader/dev.jsonl --pred preds.jsonl

On a 6 GB phone the file is 2.5 GB, so it fits alongside the app; our own speed measurement is 1.2 s per answer on an RTX 3060 with the whole model on the GPU. We have not measured it on a phone — on CPU expect several seconds per answer at -c 4096.

Licence

The weights are released under CC BY-SA 4.0, inherited from the training data (SAFWAAN/fieldatlas-reader-data), with attribution to that dataset. The base model Qwen/Qwen3-4B-Instruct-2507 is Apache-2.0.

Downloads last month
87
GGUF
Model size
4B params
Architecture
qwen3
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for VittorioNevashedelo/fieldatlas-reader-qwen3-4b

Quantized
(405)
this model