[Docs] Fix warnings in mkdocs build (continued) (#24092)

Signed-off-by: Zerohertz <ohg3417@gmail.com>
Co-authored-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Co-authored-by: Wentao Ye <44945378+yewentao256@users.noreply.github.com>
This commit is contained in:
Hyogeun Oh (오효근)
2025-09-10 06:23:28 -07:00
committed by GitHub
co-authored by Harry Mellor Wentao Ye
parent c0bd6a684a
commit ccee371e86
10 changed files with 337 additions and 342 deletions
@@ -755,7 +755,7 @@ class FusedMoE(CustomOp):
intermediate_size: Intermediate size of the experts
params_dtype: Data type for the parameters.
reduce_results: Whether to all all_reduce on the output of the layer
renomalize: Whether to renormalize the logits in the fused_moe kernel
renormalize: Whether to renormalize the logits in the fused_moe kernel
quant_config: Quantization configure.
enable_eplb: Whether to enable expert parallelism load balancer.
"""
@@ -420,9 +420,8 @@ def shuffle_weights(
Args:
*tensors: Variable number of torch.Tensor objects.
layout: A pair of integers specifying the
block sizes used to divide the tensors during shuffling.
Default is (16, 16).
layout: A pair of integers specifying the block sizes used to divide
the tensors during shuffling. Default is (16, 16).
Returns:
A Tuple of shuffled tensors.
@@ -10,7 +10,7 @@ like uniform random routing.
"""
from abc import ABC, abstractmethod
from typing import Optional
from typing import Any, Optional
import torch
@@ -50,7 +50,9 @@ class DistributionBasedRouting(RoutingStrategy):
distributions for testing different routing patterns.
"""
def __init__(self, distribution: str = "uniform", **distribution_params):
def __init__(self,
distribution: str = "uniform",
**distribution_params: Any):
"""
Initialize distribution-based routing.
@@ -244,7 +246,7 @@ class RoutingSimulator:
cls._routing_strategies[name] = strategy
@classmethod
def get_available_strategies(cls):
def get_available_strategies(cls) -> list[str]:
"""
Get list of available routing strategy names.