Skip to content

Commit

Permalink
ruff fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Yantom1 committed Sep 16, 2024
1 parent 363de3c commit e4fc78b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,8 @@ def _get_scheme_from_parts(
if is_activation_quantization_format(self.quant_format):
if self._is_fp8_w8a8(weight_quant, input_quant):
is_fp8_w8a8_supported = self._check_scheme_supported(
CompressedTensorsW8A8Fp8.get_min_capability(), error=False) \
CompressedTensorsW8A8Fp8.get_min_capability(),
error=False) \
if torch.cuda.is_available() else True
if is_fp8_w8a8_supported:
return CompressedTensorsW8A8Fp8(
Expand Down

0 comments on commit e4fc78b

Please sign in to comment.