[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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user