[Model Runner v2] Migration from v1 to v2, with Qwen and DSv2 MOE models [3/N] (#42667)

Signed-off-by: yewentao256 <zhyanwentao@126.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
Wentao Ye
2026-06-12 20:44:52 +00:00
committed by GitHub
co-authored by mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
parent cf567cbc71
commit 78739c1946
2 changed files with 63 additions and 8 deletions
+52 -2
View File
@@ -122,8 +122,58 @@ def test_v2_model_runner_env_tri_state(monkeypatch, env_value, expected):
),
(
SimpleNamespace(
model="Qwen/Qwen3-30B-A3B",
architectures=["Qwen3MoeForCausalLM"],
model="deepseek-ai/DeepSeek-V2-Lite-Chat",
architectures=["DeepseekV2ForCausalLM"],
runner_type="generate",
is_moe=True,
is_quantized=False,
),
True,
),
(
SimpleNamespace(
model="deepseek-ai/DeepSeek-V2-Chat",
architectures=["DeepseekV2ForCausalLM"],
runner_type="generate",
is_moe=True,
is_quantized=False,
),
True,
),
(
SimpleNamespace(
model="Qwen/Qwen1.5-MoE-A2.7B",
architectures=["Qwen2MoeForCausalLM"],
runner_type="generate",
is_moe=True,
is_quantized=False,
),
True,
),
(
SimpleNamespace(
model="Qwen/Qwen1.5-MoE-A2.7B-Chat",
architectures=["Qwen2MoeForCausalLM"],
runner_type="generate",
is_moe=True,
is_quantized=False,
),
True,
),
(
SimpleNamespace(
model="ibm-research/PowerMoE-3b",
architectures=["GraniteMoeForCausalLM"],
runner_type="generate",
is_moe=True,
is_quantized=False,
),
False,
),
(
SimpleNamespace(
model="mistralai/Mixtral-8x7B-Instruct-v0.1",
architectures=["MixtralForCausalLM"],
runner_type="generate",
is_moe=True,
is_quantized=False,