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.
Table with columns: Message, Answer (JSON)| 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 66 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. This version is a small 70 MB add-on for the free, open Qwen/Qwen3-1.7B 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.
- 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.7% 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%).
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
Needs Python with transformers and peft (pip install transformers peft torch). The script loads the open base
model, adds this adapter and parses one request. The prompt is a short system message with no intent or slot lists;
thinking is off.
from peft import PeftModelfrom transformers import AutoModelForCausalLM, AutoTokenizer tok = AutoTokenizer.from_pretrained("mikan-research/massive-qwen3-1.7b-grpo-lora")model = PeftModel.from_pretrained(AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-1.7B", torch_dtype="auto"), "mikan-research/massive-qwen3-1.7b-grpo-lora")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"}]ids = tok.apply_chat_template(messages, add_generation_prompt=True, enable_thinking=False, return_tensors="pt")print(tok.decode(model.generate(ids, max_new_tokens=96, do_sample=False)[0, ids.shape[1]:], skip_special_tokens=True))
Technical details
LoRA adapter for Qwen/Qwen3-1.7B that parses a voice-assistant request into a JSON frame
{"intent": ..., "slots": [{"type": ..., "value": ...}]} (60 intents, 55 slot types), trained on teacher frames (SFT), then GRPO with the teacher frame as reward reference.
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.
Training data and predictions: mikan-research/massive-distill.
A merged 4-bit version, evaluated on the same test split: mikan-research/massive-qwen3-1.7b-grpo-w4a16 for vLLM.
Results (MASSIVE en-US test split, 2,974 items, ground-truth frames)
Table with columns: Exact frame match | Exact frame match |
|---|
| This adapter | 65.7% |
| Teacher (Qwen3-30B-A3B-Instruct-2507, 4-bit GPTQ, 8 retrieved examples) | 64.4% |
Gap (teacher - student): -1.3 points, 95% paired bootstrap CI [-2.9, 0.3].
Non-inferiority margin 3 points: PASS. Valid frames 99.7% (nearly all of the rest use an intent
or slot type outside the schema; constrained decoding removes almost all of them). Exact match requires the intent and every
(slot type, value) pair to equal gold.
Training
LoRA SFT on 11,255 teacher frames (3 epochs, lr 0.0002), then GRPO continuing the same adapter: 250 steps, 8 samples per prompt, 4 prompts per step, 3,000 prompts, lr 5e-06, temperature 1.0, beta 0 (no KL). Reward against the teacher's frame: 0 if invalid, else 0.1 + 0.3 x intent match + 0.6 x slot F1 x groundedness. Checkpoint chosen on val exact match (step 0 = the SFT adapter was a candidate): step 200. Unsloth 2026.11.12 + TRL 1.19.0 on one Tesla T4. meta.json has the per-checkpoint validation scores and the reward log.
MASSIVE (Amazon, CC-BY-4.0): FitzGerald et al., 2022, "MASSIVE: A 1M-Example Multilingual Natural Language
Understanding Dataset with 51 Typologically-Diverse Languages".