Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/maxtext/kernels/megablox/ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@ def gmm(
# 2. for batchsplit, explicitly pass the rule
quantization_rule = qwix_rule if qwix_rule else qpl.get_current_rule("gmm")
if not quantization_rule or not isinstance(quantization_rule, qwix.QtRule):
raise ValueError("Expect a QtRule for quantized training. " f"But get quantization_rule={quantization_rule}")
raise ValueError(
"Expect a QtRule for quantized training. "
f"But get quantization_rule={quantization_rule}"
)
else:
# Handcraft a rule that matches the AQT's behavior.
if lhs_quantize_dtype or rhs_quantize_dtype:
Expand Down
Loading