MASSIVE voice-command parser · Qwen3-1.7B · 4-bit for GPU servers (vLLM)
Turns a spoken request to a voice assistant into a structured form a program can act on. Made with Mikan, an open-source project that teaches a small model one narrow job from a large model, then checks fairly that it does the job about as well.
What it does
It reads one request, such as you might say to a smart speaker, and writes down what the person wants (the intent, one of 60, such as setting a reminder or booking a taxi) and the details needed to do it (the slots, such as a date, a time or a place). The answer is JSON, so an app can act on it directly.
| Message | Answer (JSON) |
|---|---|
| remind me about the party tomorrow | {"intent": "calendar_set", "slots": [{"type": "event_name", "value": "party"}, {"type": "date", "value": "tomorrow"}]} |
| book me a taxi to leith in half an hour | {"intent": "transport_taxi", "slots": [{"type": "transport_type", "value": "taxi"}, {"type": "place_name", "value": "leith"}, {"type": "time", "value": "half an hour"}]} |
On a test it had never seen, its answer is exactly right, intent and every detail, for about 65 of every 100 requests.
Why it exists
Large AI models can already do this well, but they are expensive to run, slow, and usually mean sending your users' text to someone else's server. This model is about 18 times smaller than the large model it learned from, so it is cheap enough to run on your own hardware, and the test below shows it is about as accurate. On a GPU server this version costs about 7 times less per request than the large model.
How it was made
- A large model, Qwen3-30B-A3B (an open model with 30 billion parameters), answered 11,255 example voice requests. Its answers became the lessons, so no one had to label the examples by hand.
- The small model,
Qwen/Qwen3-1.7B, studied those answers until it gave the same ones. Only a small add-on was trained (LoRA), not the whole model, so this fits on one free GPU. - Then it practised: for each request it tried several answers and was rewarded for the ones closest to the large model's, which made it a little more accurate.
- Its numbers were stored with 4 bits instead of 16, shrinking it from 3.44 GB to 1.97 GB, at a cost of no measurable accuracy.
- A fair test, with the rule fixed in advance. Before any training, we wrote down a pass rule: the small model passes if, with 95% confidence, it is at most 3 points less accurate than the large model. Both were then tested once on 2,974 voice requests with answers checked by people, which neither had seen. Result: 65.4% against the large model's 64.4%, so it passed. This is a strict test: one wrong or missing detail makes the whole answer count as wrong, which is why the scores are lower than for simpler tasks, the large model's included.
Which version to pick
All versions below do the same job. The score is the exact match on the same 2,974-item test (the large model: 64.4%).
| Version | Base model | What it is | Pick it if | Score |
|---|---|---|---|---|
mikan-research/massive-qwen3-0.6b-grpo-gguf | Qwen3-0.6B | Single 4-bit file (397 MB) for llama.cpp on a CPU | you want to run it on a laptop or any computer without a GPU | 64.1% |
mikan-research/massive-qwen3-0.6b-grpo-w4a16 | Qwen3-0.6B | 4-bit model (850 MB) for vLLM on a GPU | you answer many requests from a GPU server | 63.4% |
mikan-research/massive-qwen3-1.7b-grpo-w4a16 (this model) | Qwen3-1.7B | 4-bit model (1.97 GB) for vLLM on a GPU | you answer many requests from a GPU server | 65.4% |
mikan-research/massive-qwen3-1.7b-grpo-lora | Qwen3-1.7B | Add-on (LoRA adapter, 70 MB) for the open Qwen/Qwen3-1.7B model | you want to train it further or work in Python with transformers | 65.7% |
mikan-research/massive-qwen3-0.6b-grpo-lora | Qwen3-0.6B | Add-on (LoRA adapter, 40 MB) for the open Qwen/Qwen3-0.6B model | you want to train it further or work in Python with transformers | 64.8% |
Not sure? Start with mikan-research/massive-qwen3-0.6b-grpo-gguf: it runs on a laptop and you can try it in the demo Space first. On a GPU server, mikan-research/massive-qwen3-1.7b-grpo-w4a16 is the most accurate ready-to-serve version (65.4%); compressing the 0.6B model to that format cost it more.
How to use it
Serve it with vLLM and call it like any OpenAI-compatible API. The prompt is a short system message with no intent or slot lists; thinking is off. Decoding is constrained to the frame JSON schema, as in the evaluation.
vllm serve mikan-research/massive-qwen3-1.7b-grpo-w4a16 --max-model-len 1024
from huggingface_hub import hf_hub_download
from openai import OpenAI
def read(name):
return open(hf_hub_download("mikan-research/massive-distill", f"massive/{name}", repo_type="dataset")).read().split()
slot = {"type": "object", "required": ["type", "value"], "additionalProperties": False,
"properties": {"type": {"type": "string", "enum": read("slot_types.txt")},
"value": {"type": "string", "minLength": 1}}}
schema = {"type": "object", "required": ["intent", "slots"], "additionalProperties": False,
"properties": {"intent": {"type": "string", "enum": read("intents.txt")},
"slots": {"type": "array", "items": slot}}}
client = OpenAI(base_url="http://localhost:8000/v1", api_key="none")
r = client.chat.completions.create(
model="mikan-research/massive-qwen3-1.7b-grpo-w4a16", temperature=0, max_tokens=96,
messages=[{"role": "system", "content": "Parse the voice-assistant request into a JSON frame with its intent and slots. Reply with the JSON only."},
{"role": "user", "content": "wake me up at nine am on friday"}],
extra_body={"structured_outputs": {"json": schema}, "chat_template_kwargs": {"enable_thinking": False}})
print(r.choices[0].message.content)
Technical details
The LoRA adapter mikan-research/massive-qwen3-1.7b-grpo-lora merged into Qwen/Qwen3-1.7B and quantized to 4-bit weights
(GPTQ, W4A16, group size 128) in compressed-tensors format, for serving with vLLM. Part of Mikan, a
pipeline that distils a large model's behaviour on one narrow task into a small model and tests non-inferiority with
a pre-registered margin. How to reproduce or train: contributing guide. Data and predictions:
mikan-research/massive-distill.
For CPU use, mikan-research/massive-qwen3-0.6b-grpo-gguf is the recommended GGUF file (more accurate at that format).
Results (MASSIVE en-US test split, 2,974 items, ground-truth frames)
| Exact frame match | |
|---|---|
| This model (4-bit, vLLM, constrained decoding) | 65.4% |
| Unquantized adapter | 65.7% |
| Teacher (Qwen3-30B-A3B-Instruct-2507, 4-bit GPTQ, 8 retrieved examples) | 64.4% |
Gap (teacher - this model): -1.0 points, 95% paired bootstrap CI [-2.7, 0.6].
Non-inferiority margin 3 points: PASS. Cost of quantization (unquantized adapter - this model):
0.3 points [-0.5, 1.0], McNemar p = 0.49. Valid frames 99.97%: decoding was constrained to the frame JSON schema, but 1 output still used an intent or slot type outside it, because the xgrammar version in vLLM 0.13 (vLLM's default grammar backend) also accepts crossed values for some string enums (for example takeaway_addcontact from email_addcontact and takeaway_query). Such outputs count as wrong. This is xgrammar issue #618, fixed in xgrammar 0.2.1, which vLLM requires from 0.24; on older versions, validate outputs before use.
The quantization recipe and the decision rule were fixed before the test split was predicted, once; see
configs/phase4.json in the repository.
Serving
Measured with vllm serve (vLLM 0.13) on one GPU on Modal, with validation inputs. Cost is Modal's hourly rate for
the container (GPU, CPU and memory) times the time to answer 768 requests at 64 concurrent, excluding start-up.
| GPU | Latency p50 / p95, one request at a time | Requests per second, 64 concurrent | $ per 1,000 calls | |
|---|---|---|---|---|
| This model | L4 | 203 / 382 ms | 120 | 0.0026 |
Teacher (JunHowie/Qwen3-30B-A3B-Instruct-2507-GPTQ-Int4) | L40S | 202 / 351 ms | 39 | 0.0182 |
The teacher's prompt is 802 tokens on average (retrieved examples per request); this model's is 46.
Quantization
LoRA merged into the bf16 base with PEFT merge_and_unload, then GPTQ W4A16 (group size 128, lm_head kept in
bf16) with llm-compressor 0.8.1 (compressed-tensors 0.12.2). Calibration: 512 training
items in the training format (the student prompt plus the teacher's frame), never validation or test
items. Weights: 3.44 GB in bf16, 1.97 GB quantized (the embedding matrix stays bf16).
recipe.yaml is the llm-compressor recipe.
MASSIVE (Amazon, CC-BY-4.0): FitzGerald et al., 2022, "MASSIVE: A 1M-Example Multilingual Natural Language Understanding Dataset with 51 Typologically-Diverse Languages".