Plan a LoRA fine-tune for Mixtral that leaves the router undisturbed.
You must adapt Mixtral 8x7B to a customer-support domain on limited GPUs. A previous full fine-tune attempt destabilized routing and tanked quality. Plan a LoRA-based setup: where do you attach adapters, what do you freeze, and why does this protect the router?
Freeze the gate, put LoRA on attention projections (and optionally one adapter per expert), so a narrow domain dataset cannot rewrite the routing that took pretraining to learn.
A Mixture of Experts model is like a restaurant with a host at the door and eight specialist chefs in the kitchen. The host has spent years learning which chef should cook which dish. If you take the restaurant and try to teach it a new cuisine using only a hundred sample meals, the host could easily get confused and start sending every order to one chef. The fix is to lock the host in place during retraining. The chefs can pick up a few new techniques, and you can tweak the recipes a little, but the door policy stays exactly as it was. That way the careful matching of dish to chef survives.
Detailed answer & concept explanation~6 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
7 minutes: explain LoRA basics, anchor on the router as the load-bearing component, lay out adapter placement, freezing rules, and per-expert vs. shared adapter math, then close with verification.
Real products, models, and research that use this idea.
- Mistral AI's official Mixtral fine-tuning guidance for PEFT recommends targeting attention projections and freezing gate weights
- PEFT library in HuggingFace supports per-expert LoRA on Mixtral via target_modules filters that exclude router parameters
- DBRX fine-tuning workflows from Databricks Mosaic ship templates that lock router weights by default
- DeepSeek-V3 community fine-tunes apply LoRA only to attention and shared experts, never to the routing gate
What an interviewer would ask next. Try answering before peeking at the approach.
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Letting router weights receive gradient updates during fine-tuning, which rewrites learned token-expert assignments and destroys specialization.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.