mallard-data / README.md
azettl's picture
Park Mallard 4B: drop the general-4b config
d725a85 verified
|
Raw History Blame Contribute Delete
7.85 kB
---
license: apache-2.0
language:
- en
pretty_name: Mallard training data
task_categories:
- text-generation
tags:
- synthetic
- tool-calling
- voice-assistant
- duckwork
size_categories:
- 10K<n<100K
dataset_info:
- config_name: duckwork
features:
- name: id
dtype: string
- name: kind
dtype: string
- name: tools
dtype: string
- name: messages
list:
- name: role
dtype: string
- name: content
dtype: string
- name: tool_calls
list:
- name: id
dtype: string
- name: type
dtype: string
- name: function
struct:
- name: name
dtype: string
- name: arguments
dtype: string
- name: tool_call_id
dtype: string
- config_name: duckwork-test
features:
- name: id
dtype: string
- name: kind
dtype: string
- name: in_benchmark_sample
dtype: bool
- name: system
dtype: string
- name: tools
dtype: string
- name: messages
list:
- name: role
dtype: string
- name: content
dtype: string
- name: tool_calls
list:
- name: id
dtype: string
- name: type
dtype: string
- name: function
struct:
- name: name
dtype: string
- name: arguments
dtype: string
- name: tool_call_id
dtype: string
- name: expect
dtype: string
- name: reference
dtype: string
- config_name: general-2b
features:
- name: id
dtype: string
- name: kind
dtype: string
- name: tools
dtype: string
- name: messages
list:
- name: role
dtype: string
- name: content
dtype: string
- name: tool_calls
list:
- name: id
dtype: string
- name: type
dtype: string
- name: function
struct:
- name: name
dtype: string
- name: arguments
dtype: string
- name: tool_call_id
dtype: string
configs:
- config_name: duckwork
data_files:
- split: train
path: duckwork/train.jsonl
- config_name: duckwork-test
data_files:
- split: test
path: duckwork-test/test.jsonl
- config_name: general-2b
data_files:
- split: train
path: general-2b/train.jsonl
---
# Mallard training data
Everything [Mallard 2B](https://huggingface.co/duckwork-ai/mallard-2b) was
fine-tuned on, and the held-out tasks it was tested on.
Mallard is the model behind [Duckwork](https://duckwork.ai), a macOS app you
think out loud to; it answers by voice, looks things up with tools, and asks
back when what it heard was cut off.
All of it is synthetic: no real conversations and no personal data.
| Config | Rows | What it is |
|---|---|---|
| `duckwork` | 31,021 | Duckwork conversations |
| `duckwork-test` | 2,736 | held-out Duckwork tasks, each with what it is checked for |
| `general-2b` | 25,669 | general requests answered by Qwen3.5-2B |
Training mixed `duckwork` with the general answers of its base model, capped
at 40% of the mix (20,681 of the 25,669).
**Everything here uses Duckwork's real system prompts, tool descriptions and
tool-result format**, as the app sends them.
## Fields
`duckwork`, `general-2b`:
- `id`, `kind`
- `tools`: the tool definitions offered, as a JSON string (OpenAI format)
- `messages`: `role`, `content`, `tool_calls` (with `function.arguments` as
a JSON string) and `tool_call_id`; the last two are empty when unused
`duckwork-test` adds:
- `system`: the system prompt (not repeated in `messages`)
- `expect`: what the answer is checked for, as a JSON string, e.g.
`{"no_tool": true, "spoken": true, "max_words": 120}` or
`{"tool_any": ["search_sessions"]}`
- `reference`: the teacher's answer, for reading, not for scoring
- `in_benchmark_sample`: the 308 tasks behind the numbers on the model cards
(with 16 hand-written tasks that are not part of this release)
Chat templates usually expect tool definitions and arguments as objects:
```python
import json
from datasets import load_dataset
rows = load_dataset("duckwork-ai/mallard-data", "duckwork", split="train")
row = rows[0]
tools = json.loads(row["tools"])
messages = [
{**m, "tool_calls": [{**c, "function": {**c["function"], "arguments": json.loads(c["function"]["arguments"])}}
for c in m["tool_calls"]]} if m.get("tool_calls") else m
for m in row["messages"]
]
```
## Kinds
`duckwork` (training) and `duckwork-test` cover the same moments:
| Kind | Train | The moment |
|---|---|---|
| `plain` | 7,306 | a spoken thinking-partner reply |
| `history` | 2,918 | something from the person's earlier sessions |
| `summary` | 2,856 | a written summary of a session transcript |
| `mcp` | 2,820 | use a connected app's tool |
| `multi_turn` | 2,735 | a follow-up in a back-and-forth |
| `utility` | 2,674 | time, dates, sums, units, through the built-in tools |
| `docs` | 2,468 | look something up in connected documentation |
| `no_tool_trap` | 1,823 | sounds like it needs a tool, but does not |
| `unclear_reference` | 1,288 | a cut-off sentence pointing to an earlier session: search it |
| `format_request` | 1,093 | steps or a list, explicitly asked for |
| `unclear` | 1,073 | a cut-off sentence with nothing to look up: ask back |
| `mcp_confirm` | 1,065 | an action only mentioned: look things up, but ask before acting |
| `foreign` | 513 | not English: answer in English, say once it only speaks English |
| `identity` | 389 | who are you? |
General requests (`general-2b`): format instructions, knowledge and
reasoning, tool use with prepared results, writing, code, maths, advice and
two-turn chats.
## How it was made
- **The teacher**,
[Qwen3.6-35B-A3B](https://huggingface.co/Qwen/Qwen3.6-35B-A3B) (Apache-2.0),
played both sides of each Duckwork conversation: the person thinking out
loud, written the way speech recognition transcribes it (filler words,
restarts, cut-off sentences), and the duck, answering under a style guide
that the examples leave out. Connected apps and documentation are invented;
tool results come back in exactly the format Duckwork produces.
- **Every example was checked before it was kept**, with checks like the
test set's (right tool or none, no formatting in spoken answers, word
limits, nothing asked to be pasted or shown, no invented actions).
Rejected examples are not part of the release.
- **Fixes in this version.** An earlier run asked for "spoken English" in the
non-English conversations; those and the examples that asked for an ID or a
link nobody can say out loud were removed and generated again.
- **General requests** were written by the same teacher; the answers come
from the base model itself (Qwen3.5-2B, thinking off).
Fine-tuning on them teaches Mallard what its base already does, so it keeps
its general ability. No benchmark items were used.
## Scoring
`checks.py` and `score.py` reproduce the model cards' Duckwork numbers:
```sh
python score.py outputs.jsonl --sample
```
`outputs.jsonl` holds one line per task, `{"id": ..., "output": "<raw model
text>"}`: render each task with your model's chat template (`system`,
`tools`, `messages`; thinking off), generate greedily, and keep the raw text
including the tool-call markup. The checks read Qwen3.5's tool-call format,
plain JSON tool calls and Gemma 4's.
## Known gaps
- English only, apart from the `foreign` kind.
- Invented apps and documents: realistic in shape, not real products.
- `unclear` and `unclear_reference` look alike from the transcript alone;
Mallard 2B still searches past sessions on 9 of 22 cut-off sentences where
asking back would do.
## Licence and credit
Apache-2.0. Written by Qwen3.6-35B-A3B and answered by Qwen3.5-2B (both
Apache-2.0, by the Qwen team), generated with
[vLLM](https://github.com/vllm-project/vllm).