Instructions to use VittorioNevashedelo/fieldatlas-reader-qwen3-4b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use VittorioNevashedelo/fieldatlas-reader-qwen3-4b with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf VittorioNevashedelo/fieldatlas-reader-qwen3-4b:Q4_K_M # Run inference directly in the terminal: llama cli -hf VittorioNevashedelo/fieldatlas-reader-qwen3-4b:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf VittorioNevashedelo/fieldatlas-reader-qwen3-4b:Q4_K_M # Run inference directly in the terminal: llama cli -hf VittorioNevashedelo/fieldatlas-reader-qwen3-4b:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf VittorioNevashedelo/fieldatlas-reader-qwen3-4b:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf VittorioNevashedelo/fieldatlas-reader-qwen3-4b:Q4_K_M
Use Docker
docker model run hf.co/VittorioNevashedelo/fieldatlas-reader-qwen3-4b:Q4_K_M
- Llama new
- LM Studio
- Jan
- Ollama
How to use VittorioNevashedelo/fieldatlas-reader-qwen3-4b with Ollama:
ollama run hf.co/VittorioNevashedelo/fieldatlas-reader-qwen3-4b:Q4_K_M
- Unsloth Desktop
- Pi
How to use VittorioNevashedelo/fieldatlas-reader-qwen3-4b with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf VittorioNevashedelo/fieldatlas-reader-qwen3-4b:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "VittorioNevashedelo/fieldatlas-reader-qwen3-4b:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use VittorioNevashedelo/fieldatlas-reader-qwen3-4b with Docker Model Runner:
docker model run hf.co/VittorioNevashedelo/fieldatlas-reader-qwen3-4b:Q4_K_M
- Lemonade
How to use VittorioNevashedelo/fieldatlas-reader-qwen3-4b with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull VittorioNevashedelo/fieldatlas-reader-qwen3-4b:Q4_K_M
Run and chat with the model
lemonade run user.fieldatlas-reader-qwen3-4b-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use VittorioNevashedelo/fieldatlas-reader-qwen3-4b with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf VittorioNevashedelo/fieldatlas-reader-qwen3-4b:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default VittorioNevashedelo/fieldatlas-reader-qwen3-4b:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use VittorioNevashedelo/fieldatlas-reader-qwen3-4b with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf VittorioNevashedelo/fieldatlas-reader-qwen3-4b:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "VittorioNevashedelo/fieldatlas-reader-qwen3-4b:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
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.pysends, withenable_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
4-bit
Model tree for VittorioNevashedelo/fieldatlas-reader-qwen3-4b
Base model
Qwen/Qwen3-4B-Instruct-2507