[ Misc ] fbgemm checkpoints (#6559)
This commit is contained in:
@@ -69,9 +69,8 @@ class DeepSpeedFPConfig(QuantizationConfig):
|
||||
"quantize_config.json",
|
||||
]
|
||||
|
||||
def get_quant_method(
|
||||
self,
|
||||
layer: torch.nn.Module) -> Optional["DeepSpeedFPLinearMethod"]:
|
||||
def get_quant_method(self, layer: torch.nn.Module,
|
||||
prefix: str) -> Optional["DeepSpeedFPLinearMethod"]:
|
||||
if isinstance(layer, LinearBase):
|
||||
return DeepSpeedFPLinearMethod(self)
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user