Views
No views yet
Qwen/Qwen3-30B-A3B-Instruct-2507.Qwen/Qwen3-30B-A3B-Instruct-2507. To wrap those into the runtime mixture, the
base model must expose its experts as separate nn.Linear modules
rather than the fused Qwen3MoeExperts block introduced in
transformers >= 5.x. Use:pip install "transformers>=4.51,<5"['tarsur909/precondition-v1-40-ckpt', 'tarsur909/structured_data_reasoning_grpo_iter40', 'tarsur909/tau_tool_calling_grpo_iter40', 'tarsur909/multistep-v4-10-ckpt']True['q_proj', 'k_proj', 'v_proj', 'o_proj']tokenl:y = W·x + Σ_i g_i(x_l) · scaling_i · B_i(A_i x)g(x_l) = softmax(Linear(x_l.detach())) is the per-block
capability gate. The base model and all LoRA capability adapters are
frozen; only the gates were trained.1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model = AutoModelForCausalLM.from_pretrained(
4 "<this-repo-id>", trust_remote_code=True, torch_dtype="bfloat16",
5)
6tok = AutoTokenizer.from_pretrained("Qwen/Qwen3-30B-A3B-Instruct-2507")
7
8out = model.generate(
9 **tok("Hello", return_tensors="pt").to(model.device),
10 max_new_tokens=64,
11)
12print(tok.decode(out[0], skip_special_tokens=True))