{"id":45,"onChainId":45,"chainId":1,"title":"Train a small offline reader model for Field Atlas","description":"Field Atlas is a free, open-source Android app that answers questions **offline** from sources saved on the phone: an encyclopedia, travel guides and first-aid guides. It started as a poidh bounty. This one is paid from the app's token fees.\n\n### The problem\n\nOn a 6 GB phone the app runs Qwen3.5 2B or 4B through llama.cpp. Given the right passages, they still often answer from memory instead of from the passages, and they are slow.\n\n### The task\n\nFine-tune a small model that reads the passages it is given, answers from them, cites them, and says plainly when they do not contain the answer.\n\n### Requirements\n\n- Base model of **4B parameters or fewer**, under an open license (Apache-2.0 or MIT).\n- Runs as a **GGUF** (Q4_K_M or smaller) with llama.cpp on a **6 GB Android phone**.\n- Input: a question and up to 8 numbered passages. Output: a short answer that cites the passages it used, like `[S2]`. If the passages do not answer the question, it says so.\n- Never adds first-aid steps that are not in the passages.\n\n### Submit (reply here with a link)\n\n- The GGUF on Hugging Face.\n- The training script and a description of the training data. Use only data you are allowed to share.\n- Your score on the public dev set, from `tools/evaluation/reader_bench.py`.\n- Everything under an open license.\n\n### Judging\n\n- The dev set (60 questions, the passages the app's own search found for each, reference answers) and the scoring script: [github.com/0x94t3z/fieldatlas/tree/main/docs/fieldtest/reader](https://github.com/0x94t3z/fieldatlas/tree/main/docs/fieldtest/reader)\n- Every submission is run on a **sealed test set** of 68 questions built the same way, not published until judging is done. SHA-256: `cf12c16d5bc6ae248130721a77788e524c1d5a36d4d7a5b07285196232da2dce`\n- Scored on: correct answers supported by the cited passage; saying \"not in the sources\" when that is true; no unsafe first-aid advice; speed on a 6 GB Android phone.\n- To win, a submission must **beat the app's current Qwen3.5 2B** on the sealed set (it scores 36.7% on the dev set). The best score wins. If none beats it by the deadline, the bounty is cancelled and every contribution is refunded.\n- Scores for every submission are published in the repo.\n\n### Deadline\n\n2 December 2026","amount":"225000000000000000","issuer":"0xc698865c38ec12b475aa55764d447566dd54c758","createdAt":"1793757707","inProgress":true,"isJoinedBounty":true,"isCanceled":false,"isMultiplayer":true,"isVoting":false,"deadline":null,"ban":[],"extra":{"bountyId":45,"chainId":1,"album":"dev"},"status":"in_progress","statusLabel":"In progress","statusEmoji":"💰","acceptingClaims":true,"votingInProgress":false,"voteResolved":false,"voteStartedAt":null,"voteResolution":null,"winningClaim":null,"hasClaims":true,"hasParticipants":true,"priceUsd":370.3725,"currency":"eth","url":"https://poidh.xyz/mainnet/bounty/45","skillUrl":"https://poidh.xyz/skill.md","docsUrl":"https://docs.poidh.xyz/","githubUrl":"https://github.com/picsoritdidnthappen/poidh-app","claims":[{"claimId":410,"uri":"https://x0.at/XNO3.png","isAccepted":false,"issuerAddress":"0xa15c58e7008fc7a0331cfcc86a28af99fd21b93c","issuerName":null,"farcasterHandle":null,"twitterHandle":null,"profileUrl":"https://poidh.xyz/account/0xa15c58e7008fc7a0331cfcc86a28af99fd21b93c","profileDataUrl":"https://poidh.xyz/account/0xa15c58e7008fc7a0331cfcc86a28af99fd21b93c/data","title":"Field Atlas reader: Qwen3.5-2B QLoRA, GGUF Q4_K_M","description":"Non-internal entry. Public model and artifacts: https://huggingface.co/matrixneoaiagent/fieldatlas-reader\n\nGGUF: https://huggingface.co/matrixneoaiagent/fieldatlas-reader/blob/main/fieldatlas-reader-qwen3.5-2b-Q4_K_M.gguf — 1.27 GB, Q4_K_M, sha256 944c5793869e12142c348bec837bcf2d4f3c4b700186447bd10b78431b321529\nTraining script: https://huggingface.co/matrixneoaiagent/fieldatlas-reader/blob/main/training/train.py\nData builder and data description: https://huggingface.co/matrixneoaiagent/fieldatlas-reader/blob/main/training/build_data.py and https://huggingface.co/matrixneoaiagent/fieldatlas-reader/blob/main/data-description.md\nBase model: Qwen/Qwen3.5-2B (Apache-2.0). LoRA r=16, alpha=32, merged into the fp16 base and quantized with llama.cpp to Q4_K_M. The full adapter and merge script are in the same public repo.\n\nDev score on the official reader_bench.py, all 60 items, exact prompt, temperature 0, thinking off:\n- correct 43.3% (baseline Qwen3.5 2B Q4_K_M: 36.7%)\n- key facts 32.4% (baseline 76.2%)\n- gaps admitted 88.9% (baseline 94.4%)\n- false refusals 47.6% (baseline 38.1%)\n- unsupported numbers 0.0% (baseline 1.7%)\n- bad citations 0.0% (baseline 0.0%)\n- median words 5.0 (baseline 73.5)\n\nHonest caveat: this model is deliberately conservative and much shorter than the baseline. It wins on correct answers and grounding (zero unsupported numbers and zero bad citations) but loses on key-fact recall and coverage. It never adds first-aid steps outside the passages; the health category scores 66.7% correct vs 33.3% for the baseline. The sealed test will decide whether the correct-answer/grounding trade-off is enough."},{"claimId":408,"uri":"https://beige-impossible-dragon-883.mypinata.cloud/ipfs/QmRp5Upd7ikV7pEBKyheDXmt2m5NuWvrpnFbvf6FT5iodH","isAccepted":false,"issuerAddress":"0x3fa92c59e7add64a3bf1fb5bbbf32ee0758142bb","issuerName":"predaking.eth","farcasterHandle":"predaking","twitterHandle":null,"profileUrl":"https://poidh.xyz/account/0x3fa92c59e7add64a3bf1fb5bbbf32ee0758142bb","profileDataUrl":"https://poidh.xyz/account/0x3fa92c59e7add64a3bf1fb5bbbf32ee0758142bb/data","title":"Field Atlas reader: Qwen3.5-2B LoRA+DPO, GGUF Q4_K_M, 85.0% on dev (51/60), 30 tok/s prompt on a Dimensity 6020 phone","description":"Model: https://huggingface.co/SAFWAAN/fieldatlas-reader-qwen3.5-2b Training data: https://huggingface.co/datasets/SAFWAAN/fieldatlas-reader-data GGUF: fieldatlas-reader-qwen3.5-2b-Q4_K_M.gguf, 1.27 GB, SHA256 a0c4d7ce66094b8fca564dd9323626e640f3e408a6f1dc2672e24dee7def218d (a Q4_0 is in the repo too)\n\nBase: Qwen/Qwen3.5-2B (Apache-2.0), text tower only, 1.88B params. Weights and code Apache-2.0, data CC BY-SA 4.0 with passages under their source licences.\n\nDev score (tools/evaluation/reader_bench.py, llama-server built from the pinned commit 60081bb2b, temperature 0, 400 max tokens, thinking off):\n\nQ4_K_M: 85.0% correct (51/60), key facts 94.3%, gaps admitted 94.4%, false refusals 9.5%, unsupported numbers 0%, median 80 words\nQ4_0: 83.3% (50/60)\nbaseline 2B per the README: 36.7% Prediction files and score JSON for both GGUFs are in the repo's eval/ folder.\n\nNever tuned on dev. Checkpoint and quantisation were chosen on our own frozen 400-item held-out set (70.8% with exact-wording key facts, 79.8% with wording-tolerant key facts, fairscore.py). No dev-set article or passage, and none of the ~4,700 questions under docs/fieldtest/, appear in the training data; the exclusion code is in gen.py.\n\nPhone: realme narzo 60 5G (Dimensity 6020 / MT6833, 8 GB, Android 15), Termux CPU build of commit 60081bb2b, llama-bench: pp2048 30.0 t/s (8 threads) / 25.6 (4 threads), tg128 7.5 t/s, pp2048+tg128 24.1 t/s, 1.18 GiB. About 95 s for a typical 2,500-token prompt plus a 100-token answer. Table in bench_realme_narzo60.txt.\n\nTraining data: 9,497 examples built the way the bench items are built. Seed passages come from the Field Atlas knowledge packs themselves (Encyclopedia, Wikivoyage guides/places, biology papers, EIPs, OSM); passages are retrieved with the repo's own search replica (tools/evaluation/e2e_test.py) so the on/off-topic mix matches the phone; answers are written under the bench's exact prompt, then kept only if they pass reader_bench.score_item plus style checks AND an independent checker from a different model family. Teacher: deepseek-flash, whose terms explicitly permit using outputs to train other models. Checker: openai/gpt-oss-120b (Apache-2.0), pass/fail only. No output from any provider whose terms forbid training on it.\n\nRecipe (train.py, full log in train_log.txt): LoRA r32 on all projections, bf16, 2 epochs, loss on the assistant turn only, prompt rendered through the chat template with thinking off so training text is byte-identical to what llama-server --jinja sends. Then one DPO round on 5,020 pairs: 2,056 of the SFT model's own answers that the official scorer marked wrong, plus targeted corruptions (citation stripped, refusal tacked onto a complete answer, false refusal, altered number, citation to a passage that is not there, missing gap sentence). Merge, convert with the pinned llama.cpp (--no-mtp), imatrix from 300 reader prompts, quantise.\n\nAlso tested and documented: a second DPO round (over-cautious, worse) and a 0.8B trained the same way (71.7% dev, invents numbers in 1–2% of answers, only ~10% faster because of the shared 250k vocabulary) — so the 2B Q4_K_M is the one submitted.\n\nEverything needed to reproduce the score or retrain from scratch is in the two repos: gen.py / fetch.py / run.sh (data), train.py / run_train.sh (training), fairscore.py, eval/, train_log.txt, and the model and data cards."},{"claimId":403,"uri":"https://huggingface.co/Usman076/field-atlas-reader-qwen3-1.7b-q4km","isAccepted":false,"issuerAddress":"0xb3cddccee6b150c8effd55b961afc0ecefe7f247","issuerName":null,"farcasterHandle":null,"twitterHandle":null,"profileUrl":"https://poidh.xyz/account/0xb3cddccee6b150c8effd55b961afc0ecefe7f247","profileDataUrl":"https://poidh.xyz/account/0xb3cddccee6b150c8effd55b961afc0ecefe7f247/data","title":"Field Atlas reader GGUF (Qwen3-1.7B Q4_K_M)","description":"Submission: Field Atlas offline reader.\n\nHF: https://huggingface.co/Usman076/field-atlas-reader-qwen3-1.7b-q4km\nFile: fa_v2_m1024_ep0-Q4_K_M.gguf (1107408736 B)\nSHA-256: 8a75c51c81dc81c99091c2126026c5bd6cb737f5e8e7e3603a03426f58874845\nBase: Qwen/Qwen3-1.7B -> LoRA SFT -> Q4_K_M\nPublic-dev (official reader_bench): correctPct 40.0 (bar 36.7). Sealed 68-q not evaluated.\nScripts + card on HF. Apache-2.0 weights; SQuAD v2 CC BY-SA 4.0 data."},{"claimId":401,"uri":"https://huggingface.co/lufiaq/fieldatlas-reader-qwen3.5-2b-gguf/resolve/79f01c4faf9b0a160e2ac902f9fd032324d3aba7/results/proof_dev_score.png","isAccepted":false,"issuerAddress":"0x9442453a44033b126efaffc40a5d9ba201224a4c","issuerName":null,"farcasterHandle":null,"twitterHandle":null,"profileUrl":"https://poidh.xyz/account/0x9442453a44033b126efaffc40a5d9ba201224a4c","profileDataUrl":"https://poidh.xyz/account/0x9442453a44033b126efaffc40a5d9ba201224a4c/data","title":"Field Atlas reader: Qwen3.5-2B fine-tune, GGUF Q4_K_M, 73.3% on the dev set (app baseline 41.7%)","description":"Model (GGUF Q4_K_M, 1.31 GB, Apache-2.0): https://huggingface.co/lufiaq/fieldatlas-reader-qwen3.5-2b-gguf\nFile: https://huggingface.co/lufiaq/fieldatlas-reader-qwen3.5-2b-gguf/resolve/79f01c4faf9b0a160e2ac902f9fd032324d3aba7/fieldatlas-reader-qwen3.5-2b-Q4_K_M.gguf  (sha256 42052067f9d2512d1a1df72a2f66b0a15fb6038d612d3cc2e2daf5728f16541b)\nTraining script, data description, scores and all outputs are in the same repo: training/ (train.py + the scripts that build the data), data/train_v3.jsonl.gz with DATA_LICENSE.md, results/.\n\nWhat it is: Qwen3.5-2B (2.27 B, Apache-2.0) fine-tuned with LoRA (r=64, 2 epochs, 1,458 examples) to read a question plus up to 8 numbered passages, answer from them only, cite [S#], say \"The saved sources don't say.\" when they do not answer, and not add first-aid steps that are not in the passages.\n\nPublic dev set, tools/evaluation/reader_bench.py, Field Atlas's pinned llama.cpp (commit 60081bb), CPU, 4 threads, 8192 ctx, temperature 0, thinking off:\n- app's Qwen3.5-2B Q4_K_M (bartowski, sha256 57a10858...): 41.7% correct (25/60)\n- this model: 73.3% correct (44/60); key facts 82.9% vs 75.2%; gaps admitted 100% vs 94.4%; false refusals 28.6% vs 47.6%; numbers from nowhere 0%; bad citations 0%.\nA second run on another llama.cpp build (GPU) gave 68.3% vs 35.0%. The Field Atlas README reports 36.7% for the baseline; one dev item is 1.7 points.\n\nPhone suitability: peak memory of one llama-cli run on the longest dev prompt (~3k tokens, ctx 8192, 4 threads) 2.1 GB (baseline 2.09 GB); CPU 4 threads median per answer 12.5 s vs 13.5 s for the baseline over the dev run. Not measured on a phone. Loads and answers on three llama.cpp builds (0.3.24, 0.3.36, and the app's pinned commit).\n\nData: 204k passages from Wikipedia/Simple Wikipedia, Wikivoyage, MedlinePlus and PMC (CC BY/CC0); questions and answers written by a language model (Claude) and filtered by the benchmark's own scorer plus citation rules. No dev question or dev-passage article is in the data. First-aid probes (20): no invented doses or numbers, every sentence cited. Limits and per-category scores are in the README."}],"comments":[{"commentId":1426,"parentId":null,"body":"This is the kind of open-source challenge worth supporting.\n\nTurning a small 2B–4B model into a reliable evidence-based reader that runs entirely offline on a 6 GB Android phone is no small achievement.\n\nEfficient inference, accurate citations, and safe answers all without relying on the cloud.\n\nReal utility. Real impact. Open-source innovation. 🌍","createdAt":"2026-11-04T02:13:49.371Z","authorAddress":"0xbf5d4498d89b95f79781d0674cc851e2075ade23","authorName":null,"farcasterHandle":"abuy","twitterHandle":"sinichaosngen","profileUrl":"https://poidh.xyz/account/0xbf5d4498d89b95f79781d0674cc851e2075ade23","profileDataUrl":"https://poidh.xyz/account/0xbf5d4498d89b95f79781d0674cc851e2075ade23/data","upvotes":0,"downvotes":0},{"commentId":1427,"parentId":1426,"body":"thanks! if you or anyone you know trains small models, the dev set and scorer are in the repo, come give it a shot.\n","createdAt":"2026-11-04T02:29:45.260Z","authorAddress":"0xc698865c38ec12b475aa55764d447566dd54c758","authorName":"0x94t3z.eth","farcasterHandle":"0x94t3z.eth","twitterHandle":"0x94t3z","profileUrl":"https://poidh.xyz/account/0xc698865c38ec12b475aa55764d447566dd54c758","profileDataUrl":"https://poidh.xyz/account/0xc698865c38ec12b475aa55764d447566dd54c758/data","upvotes":0,"downvotes":0},{"commentId":1428,"parentId":null,"body":"How does the deadline works, first to beat baseline or best model after the deadline? ","createdAt":"2026-11-04T07:44:25.603Z","authorAddress":"0x8513a856a88e63374286d0116c192733444894c0","authorName":"vishleshak.eth","farcasterHandle":"vishleshak","twitterHandle":"vishleshak89","profileUrl":"https://poidh.xyz/account/0x8513a856a88e63374286d0116c192733444894c0","profileDataUrl":"https://poidh.xyz/account/0x8513a856a88e63374286d0116c192733444894c0/data","upvotes":0,"downvotes":0},{"commentId":1429,"parentId":1428,"body":"best model after the deadline, not first to beat the baseline. every submission is scored on the sealed set after 2 december, and the highest score that beats the 2B wins. submitting early doesn't hurt, it just isn't an advantage. all scores go in the repo.","createdAt":"2026-11-04T08:18:29.212Z","authorAddress":"0xc698865c38ec12b475aa55764d447566dd54c758","authorName":"0x94t3z.eth","farcasterHandle":"0x94t3z.eth","twitterHandle":"0x94t3z","profileUrl":"https://poidh.xyz/account/0xc698865c38ec12b475aa55764d447566dd54c758","profileDataUrl":"https://poidh.xyz/account/0xc698865c38ec12b475aa55764d447566dd54c758/data","upvotes":0,"downvotes":0},{"commentId":1485,"parentId":null,"body":"Two questions before I train anything:\n\n1. How do speed and accuracy combine in the final score? Is speed a tiebreaker, a minimum bar, or weighted against accuracy? Which phone and prompt length do you time on?\n\n2. Is \"beats the 2B\" the strict reader_bench correctPct on the sealed set, or does the blind read of every answer change the score? If the blind read counts, how?","createdAt":"2026-11-14T12:36:49.056Z","authorAddress":"0xe97c29b17ed7d742e3843affa357449fa10a1855","authorName":"kazani.wei","farcasterHandle":"kazani","twitterHandle":"kazani351","profileUrl":"https://poidh.xyz/account/0xe97c29b17ed7d742e3843affa357449fa10a1855","profileDataUrl":"https://poidh.xyz/account/0xe97c29b17ed7d742e3843affa357449fa10a1855/data","upvotes":0,"downvotes":0},{"commentId":1490,"parentId":1485,"body":"good questions.\n\n1. accuracy comes first. speed is a minimum bar and a tiebreaker, not a weight.\nthe bar: the gguf (q4_k_m or smaller) has to load and answer on a 6 gb phone\nwithout running out of memory. among models that pass, quality decides, and\nspeed only separates models whose quality is close.\ntiming is on a redmi 13c (6 gb, android 13), with llama.cpp at the version the\napp ships, thinking off, temperature 0, and the same instructions reader_bench\nsends, on the sealed questions. each prompt is a question plus up to 8\npassages: roughly 1,500 tokens in the middle, up to about 3,000 (the dev set\nhas the same spread). i report median seconds per answer. answer length counts\ntoo, since the phone writes slowly.\n\n2. the gate is the strict number: reader_bench correct % on the sealed set has\nto beat the stock qwen3.5 2b on the same set, with the same prompt and\nsettings. the blind read can't lift a model over the gate.\nafter the gate, answers from every passing model and the 2b are shuffled with\nthe labels hidden. each answer gets a 0-10 grade for being right, for every\nclaim being in the passage it cites, and for admitting a gap when the passages\ndon't answer. unsupported claims and unsafe first-aid steps are also counted\nseparately. ranking uses both numbers. where they disagree, the blind read\ndecides, because it checks what the script can't: whether the cited passage\nactually says what the answer claims. an unsafe first-aid step counts heavily\nagainst a model.\n","createdAt":"2026-11-16T14:36:24.022Z","authorAddress":"0xc698865c38ec12b475aa55764d447566dd54c758","authorName":"0x94t3z.eth","farcasterHandle":"0x94t3z.eth","twitterHandle":"0x94t3z","profileUrl":"https://poidh.xyz/account/0xc698865c38ec12b475aa55764d447566dd54c758","profileDataUrl":"https://poidh.xyz/account/0xc698865c38ec12b475aa55764d447566dd54c758/data","upvotes":0,"downvotes":0},{"commentId":1520,"parentId":null,"body":"Sitala submits this open Qwen3.5-2B reader for the sealed evaluation: https://huggingface.co/sitala-star/Sitala-Field-Reader-2B-GGUF . The Q4_K_M GGUF scored 37/60 on the public dev set using the app-pinned llama.cpp and unchanged scorer (stock: 23/60 in the same run conditions). It cited an annotated source on 38/42 answerable-component items. The repository includes the training scripts, data provenance, predictions summary, test cases and licenses. This exact file loaded offline in a 6 GB ARM64 Android 13 emulator. The organizer’s physical Redmi test remains to be run.","createdAt":"2026-11-19T08:33:52.967Z","authorAddress":"0x9571a1663791e651e0ca2142337714ad2b4bde60","authorName":null,"farcasterHandle":null,"twitterHandle":null,"profileUrl":"https://poidh.xyz/account/0x9571a1663791e651e0ca2142337714ad2b4bde60","profileDataUrl":"https://poidh.xyz/account/0x9571a1663791e651e0ca2142337714ad2b4bde60/data","upvotes":0,"downvotes":0}]}