[Quant] Consolidate GPTQ: rename gptq_marlin.py to auto_gptq.py (#38288)

Signed-off-by: Chengyi Nie <cnie@roblox.com>
Co-authored-by: Chengyi Nie <cnie@roblox.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Chengyi Nie
2026-05-15 08:25:52 +08:00
committed by GitHub
co-authored by Chengyi Nie Cursor
parent 3b6a204789
commit fa2a33b893
21 changed files with 170 additions and 601 deletions
@@ -409,7 +409,7 @@ class FusedMoE(PluggableLayer):
}
# need full intermediate size pre-sharding for WNA16 act order
if self.quant_method.__class__.__name__ in (
"GPTQMarlinMoEMethod",
"AutoGPTQMoEMethod",
"CompressedTensorsWNA16MarlinMoEMethod",
"CompressedTensorsWNA16MoEMethod",
):
@@ -27,7 +27,7 @@ from vllm.model_executor.layers.quantization.utils.quant_utils import (
)
if TYPE_CHECKING:
from vllm.model_executor.layers.quantization.gptq_marlin import GPTQMarlinConfig
from vllm.model_executor.layers.quantization.auto_gptq import AutoGPTQConfig
logger = init_logger(__name__)
@@ -212,7 +212,7 @@ def make_wna16_moe_kernel(
def _process_weights_marlin(
layer: torch.nn.Module,
quant_config: "GPTQMarlinConfig",
quant_config: "AutoGPTQConfig",
input_dtype: torch.dtype | None,
w13_qweight: torch.Tensor,
w2_qweight: torch.Tensor,
@@ -417,13 +417,13 @@ def convert_to_wna16_moe_kernel_format(
WNA16MoEBackend.MARLIN,
WNA16MoEBackend.BATCHED_MARLIN,
):
from vllm.model_executor.layers.quantization.gptq_marlin import (
GPTQMarlinConfig,
from vllm.model_executor.layers.quantization.auto_gptq import (
AutoGPTQConfig,
)
if not isinstance(quant_config, GPTQMarlinConfig):
if not isinstance(quant_config, AutoGPTQConfig):
raise TypeError(
"Marlin WNA16 MoE backend requires GPTQMarlinConfig, got "
"Marlin WNA16 MoE backend requires AutoGPTQConfig, got "
f"{type(quant_config).__name__}."
)
return _process_weights_marlin(