MASSIVE voice-command parser · Qwen3-0.6B · 4-bit file for CPUs (GGUF)
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 64 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 50 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. This version is a single 397 MB file and answers in about 1.7 seconds on an ordinary 2-core CPU, with no GPU.
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-0.6B, 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 1.19 GB to 397 MB, at a cost of 0.7 points of 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: 64.1% 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 (this model) | 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 | 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
Install llama-cpp-python (pip install llama-cpp-python huggingface_hub); the script below downloads the file and answers one request. The prompt is a short system
message with no intent or slot lists, in Qwen3's chat format with thinking off.
Decoding is constrained with a llama.cpp grammar, as in the evaluation.
import json
from huggingface_hub import hf_hub_download
from llama_cpp import Llama, LlamaGrammar
llm = Llama(hf_hub_download("mikan-research/massive-qwen3-0.6b-grpo-gguf", "massive-qwen3-0.6b-grpo-gguf-Q4_K_M.gguf"), n_ctx=1024, verbose=False)
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}}}
grammar = LlamaGrammar.from_json_schema(json.dumps(schema))
def prompt(text): # Qwen3 chat format, thinking off, exactly as in training
return ("<|im_start|>system\nParse the voice-assistant request into a JSON frame with its intent and slots. Reply with the JSON only.<|im_end|>\n"
f"<|im_start|>user\n{text}<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n")
out = llm.create_completion(prompt("wake me up at nine am on friday"), max_tokens=96, temperature=0, grammar=grammar)
print(out["choices"][0]["text"])
Technical details
The LoRA adapter mikan-research/massive-qwen3-0.6b-grpo-lora merged into Qwen/Qwen3-0.6B, converted to GGUF and quantized
to Q4_K_M with llama.cpp, for CPU inference. 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.
A W4A16 version for vLLM on GPU is mikan-research/massive-qwen3-0.6b-grpo-w4a16.
Try it in the demo Space, which runs this file in your browser with wllama (llama.cpp in WebAssembly; its llama.cpp build is newer than the evaluation's, so a few outputs differ: 93% (frames) and 98% (banking) identical on 300 validation items, same accuracy).
Results (MASSIVE en-US test split, 2,974 items, ground-truth frames)
| Exact frame match | |
|---|---|
| This model (Q4_K_M, llama.cpp, grammar-constrained) | 64.1% |
| W4A16 version (vLLM) | 63.4% |
| Unquantized adapter | 64.8% |
| Teacher (Qwen3-30B-A3B-Instruct-2507, 4-bit GPTQ, 8 retrieved examples) | 64.4% |
Gap (teacher - this model): 0.3 points, 95% paired bootstrap CI [-1.3, 2.0].
Non-inferiority margin 3 points: PASS. Cost of quantization (unquantized adapter - this model):
0.7 points [-0.3, 1.8], McNemar p = 0.18. Valid outputs
100.00%. The quantization recipe and the decision rule were fixed before the test split was predicted,
once; see configs/phase4.json in the repository.
Speed: 1.70 s per request (median; p95 3.31 s) on 2 vCPUs with 2 threads, one request at a time, measured on Modal CPU containers during the test-split run.
Conversion
The merged bf16 model was converted with convert_hf_to_gguf.py (--outtype bf16) at llama.cpp commit
f5e6915c2 and quantized to Q4_K_M with default parameters (no importance matrix) through
llama-cpp-python 0.3.38, which bundles that commit. File: massive-qwen3-0.6b-grpo-gguf-Q4_K_M.gguf, 0.40 GB,
SHA-256 89c56389e8be61a8e340b1df17638d253bde154d1819394970cc6435bedcf8e6.
MASSIVE (Amazon, CC-BY-4.0): FitzGerald et al., 2022, "MASSIVE: A 1M-Example Multilingual Natural Language Understanding Dataset with 51 Typologically-Diverse Languages".