[CI] Ignore ruff D209, rejoin the docstrings it split, and silence incompatible-rule warnings (#57212)
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
1085b64425
commit
651a88c09a
@@ -96,8 +96,7 @@ class RMSNorm(nn.Module):
|
||||
|
||||
def select_norm_impl(config: CohereConfig) -> tuple[type[nn.Module], float]:
|
||||
"""Returns (norm_class, eps). Uses RMSNorm when config.rms_norm_eps is set,
|
||||
otherwise falls back to LayerNorm with config.layer_norm_eps.
|
||||
"""
|
||||
otherwise falls back to LayerNorm with config.layer_norm_eps."""
|
||||
rms_eps = getattr(config, "rms_norm_eps", None)
|
||||
if rms_eps is not None:
|
||||
return RMSNorm, rms_eps
|
||||
|
||||
Reference in New Issue
Block a user