[Bugfix] Fix typo in Qwen3 Next model executor (#28960)

Signed-off-by: Gleb Kurchanov <nepherpitou@gmail.com>
This commit is contained in:
Gleb Kurchanov 2025-11-19 08:21:02 +03:00 committed by GitHub
parent 468a8d72ba
commit 73ff872db0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1154,8 +1154,8 @@ class QwenNextMixtureOfExperts(MixtureOfExperts):
example_moe = layer.mlp
self.moe_layers.append(layer.mlp.experts)
if example_moe is None:
raise RuntimeError("No Qwen3Next layer found in the model.layers.")
if example_moe is None:
raise RuntimeError("No Qwen3Next layer found in the model.layers.")
# Set MoE hyperparameters
self.num_moe_layers = len(self.moe_layers)