[Mypy Fix] Mypy fix for "vllm/model_executor/models/[aA][bB]" (#48977)
Signed-off-by: yewentao256 <zhyanwentao@126.com>
This commit is contained in:
@@ -182,7 +182,7 @@ class BailingMLP(nn.Module):
|
||||
intermediate_size: int,
|
||||
config: PretrainedConfig,
|
||||
quant_config: QuantizationConfig | None = None,
|
||||
reduce_results: bool | None = True,
|
||||
reduce_results: bool = True,
|
||||
prefix: str = "",
|
||||
) -> None:
|
||||
super().__init__()
|
||||
@@ -279,7 +279,7 @@ class BailingMoE(nn.Module):
|
||||
else:
|
||||
intermediate_size = config.moe_intermediate_size
|
||||
intermediate_size *= config.num_shared_experts
|
||||
self.shared_experts = BailingMLP(
|
||||
self.shared_experts: BailingMLP | None = BailingMLP(
|
||||
intermediate_size=intermediate_size,
|
||||
config=config,
|
||||
quant_config=quant_config,
|
||||
|
||||
Reference in New Issue
Block a user