Skip to content

Commit

Permalink
fix marlin flag set on hpu
Browse files Browse the repository at this point in the history
  • Loading branch information
nirda7 committed Nov 25, 2024
1 parent dbde4b8 commit a3ba662
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions vllm/model_executor/layers/quantization/fp8.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,13 @@ def __init__(self, quant_config: Fp8Config):
if current_platform.is_cuda_alike():
self.cutlass_fp8_supported = cutlass_fp8_supported()

# For GPUs that lack FP8 hardware support, we can leverage the Marlin
# kernel for fast weight-only FP8 quantization
self.use_marlin = (not current_platform.has_device_capability(89)
or envs.VLLM_TEST_FORCE_FP8_MARLIN)
# Disable marlin for rocm
if current_platform.is_rocm():
self.use_marlin = False
# For GPUs that lack FP8 hardware support, we can leverage the Marlin

Check failure on line 123 in vllm/model_executor/layers/quantization/fp8.py

View workflow job for this annotation

GitHub Actions / ruff (3.12)

Ruff (E501)

vllm/model_executor/layers/quantization/fp8.py:123:81: E501 Line too long (81 > 80)
# kernel for fast weight-only FP8 quantization
self.use_marlin = (not current_platform.has_device_capability(89)
or envs.VLLM_TEST_FORCE_FP8_MARLIN)
# Disable marlin for rocm
if current_platform.is_rocm():
self.use_marlin = False

def create_weights(
self,
Expand Down

0 comments on commit a3ba662

Please sign in to comment.