A very small model finetuned to do one job for Transcend Climate, an open climate-monitoring globe for Nigeria and Africa: turn a plain-language request into one JSON object that the app validates and executes.
{"intent":"act","calls":[{"name":"set_layers","args":{"layers":["aod"],"mode":"add"}},{"name":"fly_to","args":{"place":"Kano"}}],"say":""}
act: tool calls for the map (layers, camera, date, basemap, annotations, emissions, climate card).explain: a one- or two-sentence explanation of a climate concept or of what a layer means.decline: anything else.The model never states figures. Temperatures, rainfall and emissions shown to users are fetched by the app's own data tools (NASA POWER, Climate TRACE) and rendered by templates. The app discards any explanation that contains a digit.
| File | Size | Use |
|---|---|---|
router-q8_0.gguf |
~640 MB | recommended |
router-q4_k_m.gguf |
~400 MB | smaller, slightly less accurate |
System (exactly this line; the tools and layer ids are in the weights):
You are the command router for Transcend Climate, a climate map of Africa. Answer with one JSON object: {"intent":"act"|"explain"|"decline","calls":[{"name":"...","args":{...}}],"say":"..."}
User:
<state>{"today":"2026-11-10","date":"2026-11-10","layers":["lst"],"country":"NGA"}</state>
is the harmattan haze bad around Kano at the moment?
Serve with llama.cpp (llama-server -m router-q8_0.gguf) and constrain the
output with the JSON schema from server/nlp/router.js in the app repository.
Do not disable thinking with --reasoning-budget 0: it changes the prompt
ending the model was trained on.
LoRA (rank 16, top 12 blocks) on Qwen3-0.6B with mlx-lm on an Apple M2.
Training data is synthetic: template questions over African place names with
programmatically known answers, plus rewrites of those questions by Claude
Sonnet 5.5 (labels are inherited from the template, never generated). Only
requests the app's rule parser does not fully handle are included, because
those are the only ones the model sees in production. Code:
finetune/.
Held-out test set of 727 requests whose phrasings and place names never appear
in training. "Correct" means the right intent and, for act, tool calls that
mean exactly the same as the reference.
| System | Correct | Right intent |
|---|---|---|
| App's rule parser alone | 26.4% | 63.4% |
| This model, Q8_0 | 91.1% | 98.3% |
| This model, Q4_K_M | 90.0% | 98.2% |
CPU only, two threads, constrained JSON output. Median latency for Q8_0 was 1.2 s (95th percentile 2.0 s) on an Apple M2 with two concurrent requests.
Weakest request types for Q8_0: "point the globe at X" phrasings (55%, often read as "drop a marker"), two layers in one request (70%), comparison with the climate normal (77.5%), explanations (80%).
Qwen/Qwen3-0.6B