/ Модель

Характеристики

Контекст
262 144 токена
Параметры
1,4 млрд
Размер весов
3,3 ГБ
Лицензия
Apache 2.0
Архитектура
qwen3_5_text · dense
Базовая модель
Qwen3.5-2B
Библиотека
transformers
Опубликована
28 ноя 2026

mallard-2b

Генерация текстаТекст → текст
1 490скачиваний за 30 дней0лайковвеса обновлены29 ноя 2026

Описание модели

Составлено на русском по карточке модели и метаданным Hugging Face

Mallard 2B — англоязычная текстовая модель для кратких ответов и вызова инструментов в роли голосового собеседника.

Mallard 2B — текстовая языковая модель Duckwork AI, созданная дообучением Qwen3.5-2B для голосового приложения Duckwork. Она рассчитана на роль собеседника, который помогает проговаривать проблему: отвечает короткими фразами, выбирает подходящий инструмент и задаёт уточняющий вопрос, если услышанная реплика оборвана. Поддерживает диалог и интерфейс вызова инструментов; в репозитории есть веса safetensors BF16 и варианты GGUF для llama.cpp и Ollama. Размер модели в метаданных — 1,4 млрд параметров, длина контекста — 262 144 токена.

Модель предназначена прежде всего для английской речи и текста. В сравнении с базовой Qwen3.5-2B она лучше справляется с заданными сценариями Duckwork, включая краткие ответы и уместный выбор инструментов; вне этих сценариев ведёт себя близко к базовой модели. Лицензия — Apache-2.0. Модель принимает и выдаёт текст; аудиовход и аудиовыход в самой модели не предусмотрены.

Сценарии применения

  • голосовые ответы для приложения-помощника
  • обсуждение проблемы в формате диалога
  • краткие ответы, удобные для озвучивания
  • выбор момента для вызова инструмента
  • уточнение оборванной или неполной реплики

Ограничения

Модель рассчитана на английский: другие языки обрабатывает медленно и с низким качеством. Она иногда не уточняет оборванную реплику, может без достаточных оснований обращаться к прошлым сессиям и уверенно сообщать неверные факты; оценивалась только в режиме без рассуждений.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Бенчмарки пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь рядом с другими моделями теста

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы по шкале 0–100.

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Mallard 2B

Mallard 2B is the model behind Duckwork, a macOS app you think out loud to, like explaining a problem to a rubber duck. It is Qwen3.5-2B, fine-tuned to be a good listener in a voice app: short spoken answers, the right tool at the right moment, and a question back when what it heard was cut off.

Outside Duckwork it behaves like Qwen3.5-2B: on open benchmarks it stays within 2 points of its base everywhere except on prompts that require another language (see English only below).

BaseQwen3.5-2B, text model only
Parameters1.63B (Qwen3.5-2B text model: 2.27B)
Vocabulary95,232 tokens, English and code (Qwen3.5: 248,320)
Thinkingoff; every number here is measured with thinking off
LicenceApache-2.0, as its base

Files in this repo: bf16 safetensors (3.26 GB) for transformers and vLLM, and GGUF files for llama.cpp and Ollama. The MLX build Duckwork runs is in duckwork-ai/mallard-2b-mlx-6bit.

Choices made on purpose

  • English only. The vocabulary keeps the 95,232 tokens English, code and Duckwork need, with every merge they use and all 256 byte tokens, so any text still encodes and every English prompt splits exactly as in Qwen3.5. Other languages still work byte by byte, but slowly and weakly. Mallard answers in English and says once that it only speaks English. This removes 28% of the parameters and makes generation about 17% faster.
  • Text only. Qwen3.5's vision encoder (about 300M parameters) is removed. Training never touched it, so the original can be attached again.
  • Little formatting inside Duckwork. Duckwork speaks its answers, so with Duckwork's instructions Mallard answers in short plain sentences: no bold, headings or tables, and plain numbered lines only when asked for steps. Without those instructions it formats like Qwen3.5.
  • Thinking off. Duckwork runs without thinking, so the model was trained and measured that way. The numbers are not comparable with Qwen's own card, which mostly reports thinking mode.

Benchmarks

All measured by us on the trimmed release model and on Qwen3.5-2B in the same setup, thinking off, greedy.

Open benchmarks

Qwen3.5-2BMallard 2B
IFEval (prompt level, loose)70.666.7−3.9
IFEval without the 31 prompts that require another language69.267.8−1.4
IFBench29.027.3−1.7
MMLU-Pro51.350.8−0.6
GPQA Diamond39.438.4−1.0
BFCL non-live (AST)61.160.3−0.7
BFCL live71.072.2+1.2
BFCL multi-turn13.814.0+0.3
BFCL relevance87.587.50
BFCL irrelevance73.375.6+2.3

IFEval, MMLU-Pro and GPQA Diamond with lm-evaluation-harness, IFBench with its own scorer, BFCL with bfcl-eval in function-calling mode.

Two checks that these measurements are sound:

  • BFCL depends a lot on the setup (prompt format, how tool calls are read). We ran Qwen3-4B-Instruct-2507, a model Berkeley publishes official BFCL results for, through the same setup: our numbers are within 0.7 points of Berkeley's in four of five categories.
  • IFEval measured a second time with an independent tool (Inspect): without the language prompts, Mallard is 0.8 points behind Qwen3.5-2B there (lm-evaluation-harness: 1.4).

Duckwork's tasks

324 held-out moments from Duckwork sessions, each checked automatically: the right tool or none, no formatting in spoken answers, a word limit, no pretending to see a screen, and so on.

What the moment needsQwen3.5-2BMallard 2B
A spoken thinking-partner reply122
A follow-up in a back-and-forth122
No tool, although it sounds like one220
Steps or a list, explicitly asked for422
A written summary of a session1022
Non-English input822
Who are you?1119
Something from an earlier session2020
A cut-off sentence pointing to an earlier session (search it)620
A cut-off sentence with nothing to look up (ask back)513
Look something up in connected docs821
Use a connected app's tool1719
An action only mentioned (ask first)1319
Time, dates, sums, units (use the tools)1321
Hand-written checks1115
Total130 / 324297 / 324

Each kind has 22 moments (hand-written: 16). The median spoken answer is 44 words, against Qwen3.5-2B's 92. Qwen3.5-2B searched past sessions needlessly 72 times, Mallard 10 times; each acted without asking 3–4 times.

Which file to use

FileSizeDuckwork's tasks
bf16 safetensors3.26 GB297transformers, vLLM
mallard-2b-Q8_0.gguf1.74 GB297
mallard-2b-Q6_K.gguf1.34 GB298recommended for llama.cpp and Ollama
mallard-2b-Q4_K_M.gguf1.06 GB286little memory; calls a tool a little too eagerly
mallard-2b-bf16.gguf3.26 GBfor your own quantizations
MLX 6-bit1.2 GB294Apple silicon; what Duckwork runs

GGUF scores through llama.cpp's server, MLX scores with mlx-lm on an M4. Avoid 4-bit MLX: it halves the tool calls (259 of 324). Group size 32 and mixed 4/6-bit did not help; 6-bit keeps them.

The GGUF files split every test prompt exactly as Qwen3.5-2B's own GGUF does. Like every Qwen3.5 GGUF, they split escaped quotes slightly differently from the Hugging Face tokenizer; this comes from llama.cpp, not from the trimming.

Speed on a Mac

Measured on a MacBook Air with an M4 (10 cores, 24 GB) with mlx-lm, nothing else running. 72 moments from Duckwork's tasks, asked one at a time as the app asks them: 4 of each of the 14 kinds above and 16 hand-written ones. Each prompt is what Duckwork sends (its instructions, the tool descriptions and what was said), typically 1,561 tokens, from 255 to 2,472. Greedy, thinking off.

Mallard 2B (MLX 6-bit)Qwen3.5-2B (MLX 4-bit)
Until the first word (median / slowest 10%)2.3 s / 3.1 s2.6 s / 3.1 s
Reading the prompt726 tokens/s632 tokens/s
Writing the answer65 tokens/s81 tokens/s
Whole answer (median / slowest 10%)3.0 s / 4.5 s3.7 s / 5.7 s
Answer length (median)40 tokens90 tokens
Peak memory2.5 GB2.3 GB
Loading the model0.6 s1.3 s
Duckwork's tasks passed63 of 7226 of 72

Mallard starts sooner, because its smaller vocabulary makes reading the prompt faster, and finishes sooner, because its answers are shorter. It writes about 20% slower than Qwen's 4-bit build, the price of 6 bits, which is still some 20 times faster than speech. Duckwork reads its instructions while you are still talking, so in the app the first word comes sooner than measured here.

Use

transformers (a version with Qwen3.5 support):

from transformers import AutoModelForCausalLM, AutoTokenizer

tokenizer = AutoTokenizer.from_pretrained("duckwork-ai/mallard-2b")
model = AutoModelForCausalLM.from_pretrained("duckwork-ai/mallard-2b", dtype="bfloat16")
messages = [{"role": "user", "content": "um so I keep going back and forth on whether to rewrite the parser"}]
inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True, enable_thinking=False,
                                       return_tensors="pt", return_dict=True)
output = model.generate(**inputs, max_new_tokens=200)
print(tokenizer.decode(output[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))

llama.cpp:

llama-server -hf duckwork-ai/mallard-2b:Q6_K --jinja

MLX:

mlx_lm.generate --model duckwork-ai/mallard-2b-mlx-6bit --prompt "um so what do you think"

Tools are passed the usual way through the chat template (tools=), as for Qwen3.5.

How it was made

  1. Duckwork data. 31,021 conversations generated by Qwen3.6-35B-A3B (Apache-2.0) playing both sides: the person as speech recognition would transcribe them, and the duck under a style guide the examples leave out. Tool results come back in the format the app produces. Every example was checked before it was kept.
  2. General data. 20,681 general requests (format instructions, knowledge, maths, writing, code, tool use) written by the same teacher and answered by Qwen3.5-2B itself, thinking off. Outside Duckwork, Mallard learns what Qwen3.5-2B already does, which leaves little to forget. A first version without this data lost 10 to 36 points on open benchmarks.
  3. Training. LoRA, rank 32, on the attention, linear-attention and MLP projections of every layer, in bf16; one epoch over 55,124 samples of up to 4,096 tokens, learning rate 1e-4, effective batch 16; about an hour on two H100s.
  4. Export. The vision encoder is removed and the vocabulary trimmed after training. The trimmed model was checked to predict exactly what the untrimmed one does (largest logit difference 0.0).

The training data and the 2,736 held-out test tasks, with the checks that score them, are published as duckwork-ai/mallard-data.

Limitations

  • English only, by design; other languages are slow and weak.
  • Tuned for Duckwork's prompts and tools. With other prompts it behaves like Qwen3.5-2B, with Duckwork's habits showing in places (short answers).
  • Measured with thinking off only.
  • Cut-off sentences remain hard: it sometimes searches past sessions where asking back would do (13 of 22).
  • A 2B model: it can state facts confidently that are wrong.

Credit

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Можно запустить

Подбираем GPU…

Класс архитектуры
Qwen3_5ForCausalLM
Ревизия весов
418b513

0 моделей