Skip to content

vllm.model_executor.models.transformers.fusers.merged_column

Fuser for parallel linear projections.

Classes:

MergedColumnParallelFuser dataclass

Bases: StackedFuser

Fuser for merging column-parallel linear projections.

Methods:

  • match –

    Fuse the module's sibling linears when there is only one such group.

  • update_attrs –

    Replace the module's parallel linears with one merged projection.

  • update_forward –

    Replace the parallel calls with one merged call and split.

  • validate –

    Check that the parallel linears are compatible for merging.

Attributes:

  • merged_name (str) –

    Programmatic name for the merged projection, based on the original names.

merged_name property

Programmatic name for the merged projection, based on the original names.

match(graph, module) classmethod

Fuse the module's sibling linears when there is only one such group.

update_attrs(module, prefix, vllm_config)

Replace the module's parallel linears with one merged projection.

update_forward(module)

Replace the parallel calls with one merged call and split.

validate(module, vllm_config)

Check that the parallel linears are compatible for merging.