Results
"Same plan" means the model's JSON, after Waylingo's name check (see below), compiles
with Waylingo's real plan compiler to exactly the plan the correct answer compiles to.
"Model alone" is the same test without the name check.
Table with columns: Test set, Rows, Same plan, Model alone| Test set | Rows | Same plan | Model alone |
|---|
| Natural wording, held-out test | 150 | 82.0% | 78.0% |
| Unseen places and brands | 1,000 | 89.9% | 86.5% |
| Requests with a street address (hand-written, not published) | 10 | 8 / 10 | 6 / 10 |
| Destination only, no stops (hand-written) | 30 | 28 / 30 | 26 / 30 |
- Valid JSON on over 99% of the unseen set.
- About 1.1 to 1.4 s per request (median, by test set) on an Apple Silicon laptop,
with MLX, at temperature 0.
- The bf16 GGUF scores the same with llama.cpp at temperature 0: 83.3% on the
natural-wording test, 90.7% on 300 unseen-place requests, 28 / 30 destination only.
The natural-wording sets are rows of the unseen set rewritten by an LLM, the same way
part of the training data was made, and about half of the test rows are rewrites of
requests used to choose the checkpoint. Real user input may score lower.
Files
Table with columns: File, What it is| File | What it is |
|---|
model.safetensors and tokenizer files | Merged bf16 weights, for transformers or MLX |
waylingo-parser-qwen3-0.6b-bf16.gguf | The same weights for llama.cpp and other GGUF runtimes |
adapter/ | The LoRA adapter alone (MLX format), on top of Qwen/Qwen3-0.6B |
Use it with Waylingo
Serve the model with any OpenAI-compatible server at temperature 0 (Waylingo does not
set one) and set fine_tuned, which sends the exact prompt the model was trained on:
llama-server -m waylingo-parser-qwen3-0.6b-bf16.gguf --jinja --temp 0 --port 8765
Waylingo is also available for Swift, Kotlin and Rust; see the
quick start.
import waylingo as w app = w.Waylingo( w.WaylingoConfig( map_provider=w.MapProvider.TOMTOM, llm=w.LlmBackend.OPEN_AI_COMPATIBLE( base_url="http://127.0.0.1:8765/v1", model="default", fine_tuned=True), ), map_key=TOMTOM_KEY,)out = app.plan_blocking(w.TripInput( query="Drive to Utrecht, coffee halfway", current_location=w.LatLng(lat=52.3702, lng=4.8952)))
Waylingo also checks names in the output against the request text and fixes small
copy slips (for example one wrong letter in a street name), validates the plan, and
asks the model to repair invalid output. Use it through Waylingo where you can.
Use it directly
The prompt is exactly this: a one-line system message and a user message with the
locale, the saved-place names and the request.
from transformers import AutoModelForCausalLM, AutoTokenizer repo = "rangaraju963/waylingo-parser-qwen3-0.6b"tok = AutoTokenizer.from_pretrained(repo)model = AutoModelForCausalLM.from_pretrained(repo) messages = [ {"role": "system", "content": "Convert the trip request to Waylingo JSON."}, {"role": "user", "content": "Locale: en-GB\nSaved places: saved:home\nRequest: take me home, fuel on the way"},]inputs = tok.apply_chat_template( messages, add_generation_prompt=True, return_dict=True, return_tensors="pt")out = model.generate(**inputs, max_new_tokens=200, do_sample=False)text = tok.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True)plan_json = text[text.find("{"): text.rfind("}") + 1]
The reply starts with an empty <think></think> block, because the base model's chat
template puts one in every training target; take the outermost {...} as above.
Decode greedily. Without Waylingo there is no name check, so expect the "Model alone"
numbers.
Training
- Base:
Qwen/Qwen3-0.6B.
- Method: LoRA (rank 8, scale 20, on all 28 layers) with MLX, prompt tokens masked
from the loss, learning rate 1e-4, batch size 2, sequences up to 512 tokens,
1,000 steps (about 2,000 of the 44,000 training rows; the 2,000- and 3,000-step
checkpoints scored lower).
- Data: 36,000 template-generated requests mixing real and invented place names
and brands, plus 4,000 rewritten into natural wording by Claude (included twice).
Every label compiles with Waylingo's plan compiler. The
published dataset
is the same data with every row that names a street or street address removed.
- Checkpoint choice: by accuracy on natural-wording dev, 300 unseen-place
requests, addresses and destination-only requests, not by validation loss, which
is measured on generated text and did not track natural wording.
Limitations
- English only; trained on places in Europe, the US and India.
- The plan cannot express everything people ask for (multi-day trips, "the cheapest
fuel", "open now"); such parts of a request may be dropped from the output.
- A large hosted model is more accurate on unusual wording. This model is for when
cost, latency or privacy matter more.
- Waylingo cannot yet run the model inside a phone app; it needs a server, which can
run on the same machine.
License
Apache 2.0, the same as the base model.