[Misc] Improve error messages for unsupported types and parameters (#30593)

Signed-off-by: BlankR <hjyblanche@gmail.com>
Co-authored-by: Wentao Ye <44945378+yewentao256@users.noreply.github.com>
This commit is contained in:
BlankR
2026-01-07 01:00:16 -08:00
committed by GitHub
parent 1f33e38e81
commit 0790f07695
11 changed files with 40 additions and 16 deletions

View File

@@ -332,7 +332,8 @@ class MiniMaxText01DecoderLayer(nn.Module):
)
else:
raise ValueError(
f"Unsupported attention type: {self.config.attention_type}"
f"Unsupported attention_type {self.config.attention_type}: "
f"should be 0 (linear) or 1 (full)."
)
if expert_num == 1: