Skip to content

[Feature]: Support out-of-tree register of customize quantization method #11926

@ice-tong

Description

@ice-tong

🚀 The feature, motivation and pitch

Thanks for such excellent work!

We hope to leverage the fast inference capabilities of vllm to evaluate the accuracy of the quantized models. However, vllm currently does not support custom quantization schemes, and we would appreciate it if the functionality to register custom quantization schemes could be provided.

The usage would be as follows:

from vllm.model_executor.layers.quantization import QuantizationConfig
from vllm.model_executor.layers.quantization import register_quantization_config


@register_quantization_config("customize")
class CustomizeQuantizationConfig(QuantizationConfig):
    """Customize quantization config."""

Alternatives

No response

Additional context

No response

Before submitting a new issue...

  • Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions