[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
@@ -174,8 +174,7 @@ def get_moe_expert_mapping(
|
||||
|
||||
It will be retrieved from the first module that has a `get_expert_mapping` method.
|
||||
If the model manually implements `get_expert_mapping`, it will be used.
|
||||
Otherwise, it will use the first RoutedExperts layer.
|
||||
"""
|
||||
Otherwise, it will use the first RoutedExperts layer."""
|
||||
for _, module in model.named_modules():
|
||||
get_mapping = getattr(module, "get_expert_mapping", None)
|
||||
if get_mapping is not None:
|
||||
|
||||
Reference in New Issue
Block a user