How We Built AgentRQ's Own Task-Title Model
AgentRQ suggests a title for every task you create, and quietly names untitled tasks in the background. That has always run inside your browser: the task text never leaves your device. What changed is the model doing the work. Auto-title now runs a model we fine-tuned ourselves for this one job, and we released it for anyone to use: agentrq/task-title-350m-ONNX, under Apache-2.0.
On 1,000 tasks it never saw in training, it wrote a good title 98% of the time. Google's FLAN-T5-base, a widely used open model of about the same download size, managed 75%.
This post covers the results, the legal checks, and every step of the build: the machine, the Docker images, the commands, the code and how long each step took. It took about 4½ hours, one evening, on one machine.
That title is real output from the shipped model, generated inside the browser tab.
Why Build Our Own
A task title is short, but it does a lot of work. It is what you scan on the task board, what an agent sees first, and what shows up in a notification on your phone. A bad one ("Can you tweak the hero image on v2.3 before Friday?", copied back word for word) is worse than none.
General-purpose models are not trained for this. They echo the request, drop the important noun, or trip on a pasted error. And because we run the model in the browser, we can't simply reach for a bigger one: whatever we ship has to download once, fit in a browser tab and answer in a moment.
So we trained a small model to do exactly one thing well, and we wanted to be able to hand it to everyone else without legal fine print.
Results
We scored the exact 4-bit file that ships, on 1,000 held-out tasks the model never saw in training.
| FLAN-T5-base | AgentRQ task-title v1 | |
|---|---|---|
| Titles rated good (4 or 5 out of 5) by the judge | 75% | 98% |
| Average judge rating | 3.62 | 4.08 |
| Overlap with reference titles (ROUGE-L) | 0.47 | 0.74 |
| Head-to-head wins (ties left out) | 20 | 216 |
| Browser download | 275 MB | 280 MB |
| Licence | Apache-2.0 | Apache-2.0 |
The gap grows with the length of the task. Share of titles rated good, FLAN-T5-base first, then ours:
- → English, under 12 words: 85% → 98%
- → English, 12 to 30 words: 70% → 99%
- → English, 30 to 70 words: 69% → 100%
- → Spanish 25% → 100%, German 31% → 94%, French 12% → 100%, Portuguese 25% → 88%
The non-English groups are small (8 to 24 tasks each), so read them as a direction, not a final number. v2 brings a 1,000-task test set for each language.
Some real examples from the test set:
| Task as typed | FLAN-T5-base | AgentRQ task-title v1 |
|---|---|---|
| can you tweak the hero image on v2.3 before Friday? | Can you tweak the hero image on v2.3 before Friday? | Tweak hero image on v2.3 |
| We need to clean up the legacy code in billing.py because… | billing.py | Clean up billing.py legacy code |
| 404 Not Found: gym invoice #294, resend receipt | gym invoice #39;s not found | Resend gym invoice #294 |
| Refactor the calculateTotalPrice function in frontend/checkout/cart.ts… | Refactor calculateTotalPrice function | Refactor calculateTotalPrice in frontend/checkout/cart.ts |
Ours keeps the verb, the object and the identifier that tells two similar tasks apart. FLAN-T5-base tends to repeat the request, cut it down to a file name, or garble it.
The Legal Steps
We wanted a model anyone can use, ship and change, commercially, without asking us. That only works if every input allows it, so we checked each one at its source.
1. The base model is IBM Granite 4.0 350M, Apache-2.0 and not gated. Granite 4.0 350M allows modification, redistribution and commercial use. In return we must ship the licence text, keep IBM's attribution and state that we modified the model. The model card and the LICENSE file in our repository do all three.
2. The teacher is Qwen3.8-27B, also Apache-2.0. A larger model wrote our training examples. We ran Qwen3.8-27B locally as the RadixArk NVFP4 build, which is Apache-2.0 too. We read the upstream LICENSE file itself, not just the licence tag: it is the standard Apache-2.0 text. Apache-2.0 puts no restriction on using a model's outputs, including to train another model. We deliberately avoided models whose terms restrict that, such as custom "acceptable use" or "no training other models" licences, even where they would have been convenient.
3. The data is synthetic only. Every task description and title was generated for this purpose, with invented names, products and numbers. No customer tasks, no user data, nothing scraped. A model can still echo strings that look real, so before we publish the dataset we scan it for personal data such as emails, phone numbers and keys.
4. Hand-written guidance is labelled as such. The title style guide, 50 example titles and the corrected reference titles were written by hand to steer the teacher and check the results. They are published and labelled as hand-written, so the dataset's provenance is clear.
5. The runtime is unchanged. The browser runs the model with transformers.js (Apache-2.0) and onnxruntime-web (MIT), which AgentRQ already used.
6. The release is Apache-2.0. The model card names the base model, the teacher, the data and the evaluation, including its caveats.
The Machine and the Software
Everything ran on one desk-side machine. No cloud GPUs and no third-party APIs.
| Machine | NVIDIA DGX Spark: GB10 Grace Blackwell superchip, 20 Arm cores (10× Cortex-X925, 10× Cortex-A725), 128 GB of memory shared by CPU and GPU |
| OS | Ubuntu (DGX OS), Linux 6.17 (NVIDIA kernel), aarch64 |
| Teacher server | Docker image vllm/vllm-openai:v0.27.1 (vLLM 0.27.1, PyTorch 2.13, CUDA 13.0) |
| Training and export | Our image title-train, built on the same vLLM image (one CUDA stack for everything) |
| Browser check | transformers.js 4.3.1, onnxruntime-web, Chromium driven by Playwright, on WebGPU and WebAssembly |
The title-train image is only a few extra packages on top of vLLM:
That installed transformers 5.15.0, onnxruntime 1.32.0 and onnxruntime-genai 0.20.0. Every training, evaluation and export step ran through a small wrapper. It gives the container the GPU, shares the Hugging Face cache, and hands the files back to the normal user:
Step by Step
1. Serve the teacher (about 10 minutes, mostly the download)
The teacher is a 27B model in NVIDIA's 4-bit NVFP4 format, so it fits in about 60% of the Spark's memory and leaves the rest for training:
Every request turns the model's "thinking" mode off, because a title needs none:
2. Write the style guide (by hand)
The style guide is one short set of rules. The teacher reads it when labelling, and the judge reads it when scoring:
It comes with 50 example pairs, mostly short because real tasks are. For example, "pls bump go to 1.26 and update the dockerfile too" becomes Bump Go to 1.26, and "the CI is red on main again" becomes Fix failing CI on main.
3. Generate task descriptions (about 1 hour)
The teacher wrote descriptions in batches of 8, with 96 requests in flight. Each batch got a random combination of:
- → 30 areas: code, DevOps, docs, sales, finance, legal, HR, design, errands, travel, study and more
- → 11 writing styles: terse to-dos, chatty messages, questions, pasted errors, rambling requests and others
- → a length, mostly short: 45% under 12 words, 30% 12 to 30 words, 17% 30 to 70 words, 8% longer
- → a language, mostly English for v1
4. Title them (about 15 to 40 minutes per batch of files)
Each description is titled with the style guide plus all 50 examples, always in the same order. Every request then starts with the same prompt prefix, so vLLM's prefix cache computes it once, and only the description itself is new work. An empty answer is retried at a higher temperature rather than dropped:
Steps 3 and 4 together took about 2¼ hours of wall-clock time and produced the two data sets:
- → Training set: after removing empty answers, duplicates and anything overlapping the test set, 9,503 pairs.
- → Test set: 1,000 held-out tasks. 55 reference titles where the teacher was empty or wrong were corrected by hand and marked as hand-written.
5. Fine-tune (27 minutes, three runs at once)
This is a full fine-tune of all 350M parameters, not LoRA, in bf16 with AdamW, a cosine schedule and 3% warm-up. Each run did 2 epochs at batch size 32, which is 594 steps.
The prompt is deliberately tiny: a fixed one-line instruction, then exactly what the person typed. It has no examples, so in the browser the model reads less and answers faster:
A Spark-specific detail: the vocabulary has 100,352 tokens, so a full logits tensor (batch × length × vocabulary) does not fit beside the running teacher in shared memory. We only compute logits where a title token is predicted:
We trained three learning rates side by side on the one GPU and scored every checkpoint on the held-out set. Each run took about 27 minutes:
| Learning rate | ROUGE-L at the end |
|---|---|
| 3e-5 | 0.779 (shipped) |
| 7e-5 | 0.768 |
| 1.5e-4 | 0.746 |
We also averaged the weights of the best checkpoints (a "model soup"). The soup did not beat the single best run, so we shipped the single run.
6. Export for the browser (about 3 minutes)
Two problems had to be solved here. The standard ONNX Runtime GenAI export of this model stores the vocabulary table with a quantized-embedding operator (GatherBlockQuantized), and the browser's WebAssembly runtime does not have that operator. And transformers.js needs the attention-cache head size as a fixed number.
The export script runs the standard builder and then our patch:
The patch replaces that one operator with ordinary ones that every backend has. It reads a 4-bit table packed two values per byte, and unpacks it with arithmetic rather than bit operators. The block scales stay fp32, because an fp16 lookup needs an optional WebGPU feature (shader-f16) that not every GPU has.
We checked an 8-bit version of the swap against the original operator, and the outputs were bit-for-bit identical. The result is one 280 MB file that runs on WebGPU where the browser has a GPU, and on WebAssembly everywhere else. That is about the same download as FLAN-T5-base, with no fallback model to maintain.
7. Evaluate (about 1 hour)
A judge. The teacher model rated every title from 1 to 5 against the style guide.
A head-to-head. For each task, the judge saw two titles twice, with the order swapped. A title counted as a win only if it won both times. Absolute ratings proved lenient, so the head-to-head was our ship gate.
The shipped file, not the training checkpoint. Every score in this post comes from running the 4-bit ONNX file through ONNX Runtime, not from the PyTorch model.
8. Verify in a real browser and publish (about 30 minutes)
Playwright drove Chromium to load the model straight from Hugging Face, on both WebGPU and WebAssembly. A test task, "Users report that uploading a 40MB attachment silently fails; the API returns 413…", got the title Fix 413 error on 40MB attachment. A title takes about 4 to 5 seconds on WebAssembly, and less on WebGPU. Then we uploaded the model with its licence and model card, and merged the app change in pull request #1384.
How It Runs in the Browser
There is no AI server behind this feature. The browser downloads the model once and runs it locally, in the web app and in the AgentRQ desktop app, which renders the same UI.
What is on Hugging Face. The model repository is laid out the way transformers.js expects:
The weights sit in a separate data file because browsers and ONNX's protobuf format both handle a small graph plus one large binary better than a single large file. The config entry tells transformers.js to fetch it.
A Web Worker, so typing never stutters. The model runs in a dedicated worker, off the page's main thread. This is the whole worker:
One file, two engines. If the browser offers a WebGPU adapter, the model runs on the GPU. Otherwise it runs on WebAssembly, on the CPU. Both use the same 280 MB file, which only works because the export in step 6 uses no operator that either engine lacks.
Deterministic output. Greedy decoding (do_sample: false) gives the same text the same title every time. A title is at most 20 new tokens.
Downloaded once. transformers.js keeps the model files in the browser's Cache Storage. Only the first title on a device pays for the download, and a progress bar shows it.
Only what the person typed. The prompt is the fixed instruction plus the description, nothing else from the workspace. The clean-up step takes the first line and strips any quotes, a trailing period or a "Title:" prefix:
Two ways it is used
A title while you write. The new-task form asks the worker for a title from the description, once there are at least 5 characters of text. Each request carries an id, so a reply to an older request is ignored. If you type your own title meanwhile, the model's answer never overwrites it.
Naming untitled tasks in the background. A task created without a title is saved as "Untitled". The browser that created it then names it through a small queue, unless someone renames it first. The queue loads one model, handles tasks one at a time, survives leaving the page, and releases the worker and its memory as soon as it is empty. Each workspace can turn this off on the device.
Where it doesn't run
Phones are skipped: a phone browser gives a tab less memory than the model needs, and the tab would crash. The check needs a desktop browser with Web Workers and WebAssembly:
Privacy by construction
The model file comes from Hugging Face like any other static download. The task text goes only to the worker in the same tab. AgentRQ's server records only that a title was generated (a usage counter), never the text or the title.
8-bit or 4-bit?
We exported 8-bit first, then went down to 4-bit. These are the measured trade-offs:
| Export | Size | Titles rated good | ROUGE-L | Same title as the full-precision model |
|---|---|---|---|---|
| 8-bit, everything | 737 MB | not run on the 1,000 set | — | — |
| 4-bit layers, 8-bit vocabulary table | 329 MB | 98.1% | 0.749 | 568 / 1,000 |
| 4-bit layers, 4-bit vocabulary table (shipped) | 280 MB | 98.4% | 0.740 | 564 / 1,000 |
What we gained: a download 2.6× smaller than all-8-bit, and 49 MB smaller than the 8-bit vocabulary table. That brings it to about FLAN-T5-base's size.
What we lost: about 0.01 ROUGE-L against the reference titles. The judge's ratings did not drop.
The real cost: with plain 4-bit rounding, 4 of 1,000 titles repeated a word ("Update Q3 roadmap roadmap"). A calibrated quantizer (k_quant) removes that: 0 repeats and a closer match to the full-precision model (61% vs 56% identical titles), for 6 MB more. It is the default from v2 on.
Why we didn't ship all-8-bit: at 2.6× the download for the same task, we didn't run the full 1,000-task evaluation on it, so we have no quality figure for that row. Its 8-bit vocabulary table matched the original bit for bit.
How Long It Took
| Step | Wall-clock time |
|---|---|
| Choosing the base model and making the export run in the browser | most of an afternoon (one-off, reused for every version) |
| Generating and titling the data (steps 3 and 4) | about 2¼ hours |
| Training three runs in parallel (step 5) | about 27 minutes |
| Export (step 6) | about 3 minutes |
| Evaluation, judging and head-to-head (step 7) | about 1 hour |
| Quantizer comparison (4-bit variants) | about 20 minutes |
| Browser check and publishing (step 8) | about 30 minutes |
| From the first generated task to a shipped model | about 4½ hours, one evening, one machine |
What This Unlocks
Titles you don't have to fix. A 75% hit rate means one task in four gets a title you rewrite by hand. At 98%, the suggestion becomes something you accept without reading twice, which is the only way a suggestion actually saves time. Long, rambling requests and pasted errors, where FLAN-T5-base did worst, are where ours does best.
Private by design, not by policy. The task text never leaves the device to get its title. There is no server to trust, no log to audit and no data processing agreement to sign for this feature. Teams that put customer names, internal hosts or incident details into their tasks can use it as is.
A model you can take with you. Apache-2.0 all the way down (base, teacher and release) means you can drop the same model into your own product, ship it to customers and modify it, without asking us or anyone upstream. Synthetic data means no customer's work is baked into the weights.
A recipe, not just a model. One desk-side machine and one evening were enough to go from nothing to a shipped, legally clean model that beats a well-known baseline by 23 points. The same steps work for any narrow text job that has to run on-device.
Better task lists for agents too. Agents get a clear subject line before they read the body, and the background naming of untitled tasks keeps a board filled by events or the scheduler readable.
What's Next: v2
- → Thirteen languages: English, German, Spanish, French, Japanese, Portuguese, Arabic, Czech, Italian, Korean, Dutch, Chinese and Turkish, each with its own test set of about 1,000 tasks.
- → About 6× more training data, weighted towards the task styles v1 found hardest.
- → The calibrated k_quant 4-bit quantizer described above.
- → A ship gate: v2 ships only if it beats v1 head to head.
Try It
Open a new task in AgentRQ on a desktop browser, type what you need done and press the sparkle next to the title. The model downloads once, then stays in your browser's cache. The model is on Hugging Face at agentrq/task-title-350m-ONNX, and the change that switched AgentRQ to it is pull request #1384. For how auto-title behaves day to day, see Local AI Task Titles.
FAQ
Is it free for commercial use?
Yes. The model is Apache-2.0, and so are the base model (IBM Granite 4.0 350M) and the teacher (Qwen3.8-27B). Ship the licence text and keep the attribution, as Apache-2.0 asks.
Does my task text leave the browser?
No. The model runs locally in a Web Worker in your tab, on WebGPU or WebAssembly. AgentRQ's server only counts that a title was generated, never the text or the title.
What did you compare it against?
Google's FLAN-T5-base, on 1,000 held-out tasks: 98% good titles against 75%, ROUGE-L 0.74 against 0.47, and 216 head-to-head wins against 20.
Was it trained on customer tasks?
No. All training data is synthetic, written by the teacher model with invented names and numbers. The hand-written style guide, examples and corrected reference titles are labelled as hand-written.
What hardware did you use?
One NVIDIA DGX Spark, for data generation, training, evaluation and export. No cloud GPUs and no third-party APIs. From the first generated task to a shipped model took about 4½ hours.
Does it work on my phone?
Not yet. The model needs more memory than phone browsers give a tab, so AgentRQ only offers local titles on desktop browsers and the desktop app.
How big is the download, and how fast is it?
One 280 MB file, about the same as FLAN-T5-base. Your browser caches it after the first use. A title takes about 4 to 5 seconds on WebAssembly, and less on WebGPU.
Where can I read more?
The model card on Hugging Face names the base model, the teacher, the data and the evaluation, caveats included.