Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions fastdeploy/model_executor/layers/linear.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ class QKVParallelLinear(ColumnParallelLinear):
QKVParallelLinear Layer.
"""

def __init__(self, fd_config, prefix, with_bias=False, add_bias=True):
def __init__(self, fd_config, prefix, with_bias=False, add_bias=True, skip_quant=False):
"""
Initialize the QKV Linear layer with given parameters.

Expand Down Expand Up @@ -542,6 +542,7 @@ def __init__(self, fd_config, prefix, with_bias=False, add_bias=True):
output_size=output_size,
with_bias=with_bias,
add_bias=add_bias,
skip_quant=skip_quant,
)

def _get_shard_size_mapping(self, loaded_shard_id: str):
Expand Down Expand Up @@ -720,7 +721,6 @@ def __init__(
skip_quant (bool): Whether to skip quantization. Defaults to False.
"""
self.fd_config = fd_config
self.skip_quant = False
self.nranks = fd_config.parallel_config.tensor_parallel_size
self.tp_group = fd_config.parallel_config.tp_group
self.hidden_size = fd_config.model_config.hidden_size
Expand Down