feat: patch linear base (#2915)

This commit is contained in:
Yineng Zhang
2025-01-16 18:00:03 +08:00
committed by GitHub
parent ab31793661
commit bf8d07a6f9
6 changed files with 68 additions and 13 deletions
@@ -5,14 +5,13 @@ from typing import Any, Dict, List, Optional
import torch
from torch.nn.parameter import Parameter
from vllm.model_executor.layers.linear import LinearBase
from vllm.model_executor.layers.quantization.utils.w8a8_utils import (
apply_fp8_linear,
cutlass_fp8_supported,
requantize_with_max_scale,
)
from sglang.srt.layers.linear import LinearMethodBase
from sglang.srt.layers.linear import LinearBase, LinearMethodBase
from sglang.srt.layers.parameter import ModelWeightParameter, PerTensorScaleParameter
from sglang.srt.layers.quantization.base_config import (
QuantizationConfig,