Qwen3-0.6B LoRA (GRPO)
Intent and Slot Parsing Adapter
2 min readupdated
This LoRA (a small fine-tuning add-on for a base model) adapter for Qwen/Qwen3-0.6B turns the compact language model into a tool for parsing voice assistant queries into a structured JSON frame (supporting 60 intents and 55 slot types). The model was first trained via SFT (supervised fine-tuning) on responses from a larger teacher model, then further refined using the GRPO (group relative policy optimization method without a separate critic model) algorithm. In tests on the MASSIVE dataset, the small model matches the accuracy of the Qwen3-30B-A3B-Instruct teacher, making it an excellent choice for fast local speech recognition and command systems.
Key features
- Exact frame match accuracy is 64.8%, which is even slightly higher than the 30B teacher model level (64.4%) in English-language tests.
- The share of valid generated frames is 99.6%.
- The model was trained on the compact
Qwen/Qwen3-0.6Bbase using Unsloth and TRL libraries on a single Tesla T4 GPU. - It passed a non-inferiority check (non-inferiority margin 3 points) with a strict requirement for matching intents and all slots.
What you can do
- Integrate it into a local voice assistant or chatbot for fast entity and command extraction from text.
- Run query parsing locally on low-end GPUs or CPUs thanks to the tiny size of the base model (0.6B).
- Use it in automation pipelines where strict adherence to a JSON output schema is required.
Example
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("mikan-research/massive-qwen3-0.6b-grpo-lora")
model = PeftModel.from_pretrained(AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-0.6B", torch_dtype="auto"), "mikan-research/massive-qwen3-0.6b-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))Read more
DetailsBenchmark: MASSIVE en-US test split (2,974 items)
Result: Exact match 64.8% vs 64.4% for the teacher
Training: SFT on 11,255 examples + 250 GRPO steps
Hardware requirements: Single Tesla T4 GPU










Comments