Update Optional[x] -> x | None and Union[x, y] to x | y (#26633)
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
@@ -45,7 +45,7 @@ class HQQMarlinConfig(QuantizationConfig):
|
||||
self,
|
||||
weight_bits: int,
|
||||
group_size: int,
|
||||
skip_modules: Optional[list[str]] = None,
|
||||
skip_modules: list[str] | None = None,
|
||||
) -> None:
|
||||
super().__init__()
|
||||
assert group_size == 64, "The only supported HQQ group size is currently 64."
|
||||
@@ -327,7 +327,7 @@ class HQQMarlinMethod(LinearMethodBase):
|
||||
self,
|
||||
layer: torch.nn.Module,
|
||||
x: torch.Tensor,
|
||||
bias: Optional[torch.Tensor] = None,
|
||||
bias: torch.Tensor | None = None,
|
||||
) -> torch.Tensor:
|
||||
workspace = MarlinWorkspace(
|
||||
self.output_size_per_partition,
|
||||
|
||||
Reference in New Issue
Block a user