[mypy][5/N] Support all typing on model executor (#4427)
This commit is contained in:
@@ -52,11 +52,10 @@ class SqueezeLLMConfig(QuantizationConfig):
|
||||
return cls(weight_bits)
|
||||
|
||||
def get_quant_method(
|
||||
self,
|
||||
layer: torch.nn.Module) -> Optional["SqueezeLLMLinearMethod"]:
|
||||
self, layer: torch.nn.Module) -> Optional[QuantizeMethodBase]:
|
||||
if isinstance(layer, LinearBase):
|
||||
return SqueezeLLMLinearMethod(self)
|
||||
return
|
||||
return None
|
||||
|
||||
def get_scaled_act_names(self) -> List[str]:
|
||||
return []
|
||||
|
||||
Reference in New Issue
Block a user