Skip to content

[CI/Build] Add is_quant_method_supported to control quantization test configurations - #5253

Merged
robertgshaw2-redhat merged 9 commits into
vllm-project:mainfrom
neuralmagic:refactor-checking-supported-quant-method
Jun 12, 2024
Merged

robertgshaw2-redhat merged 9 commits into
vllm-project:mainfrom
neuralmagic:refactor-checking-supported-quant-method

Conversation

@mgoin

@mgoin mgoin commented Jun 4, 2024 •

Copy link
Copy Markdown
Member

There were many separate uses of checking CUDA compute capability in order to run quantization tests, so it is best practice to have one function to be the source-of-truth to check support.

Instead of each quantization test having duplicated code such as:

from vllm.model_executor.layers.quantization import QUANTIZATION_METHODS

aqlm_not_supported = True

if torch.cuda.is_available():
    capability = torch.cuda.get_device_capability()
    capability = capability[0] * 10 + capability[1]
    aqlm_not_supported = (capability <
                          QUANTIZATION_METHODS["aqlm"].get_min_capability())

It can be replaced with:

from tests.quantization.utils import is_quant_method_supported

aqlm_not_supported = not is_quant_method_supported("aqlm")

@bnellnm bnellnm left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@robertgshaw2-redhat robertgshaw2-redhat left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

much nicer

@robertgshaw2-redhat
robertgshaw2-redhat enabled auto-merge (squash) June 11, 2024 16:48
@robertgshaw2-redhat
robertgshaw2-redhat merged commit 3dd6853 into vllm-project:main Jun 12, 2024
@robertgshaw2-redhat
robertgshaw2-redhat deleted the refactor-checking-supported-quant-method branch June 12, 2024 16:58
@simon-mo

Copy link
Copy Markdown
Collaborator

sorry i was flipping a flag for CI and this PR got auto-merged. but it actually fail here: https://buildkite.com/vllm/ci/builds/9852#0190082b-69b0-4c9d-9103-6ae6f0cbecfd

@simon-mo

Copy link
Copy Markdown
Collaborator

Please open a new PR!

@mgoin

mgoin commented Jun 12, 2024

Copy link
Copy Markdown
Member Author

The failure actually seems unrelated to this PR (just the compressed-tensors failure happening atm), but will do!

robertgshaw2-redhat pushed a commit to neuralmagic/nm-vllm that referenced this pull request Jun 16, 2024
joerunde pushed a commit to joerunde/vllm that referenced this pull request Jun 17, 2024
xjpang pushed a commit to xjpang/vllm that referenced this pull request Jun 27, 2024
xjpang pushed a commit to xjpang/vllm that referenced this pull request Jul 8, 2024
xjpang pushed a commit to xjpang/vllm that referenced this pull request Jul 24, 2024
wenhow pushed a commit to wenhow/vllm that referenced this pull request Aug 5, 2026
Currently, the vllm pull request
(vllm-project#24252) is causing operator
fusion to fail. This issue was previously fixed by patching the backend.
The root cause has been identified, and the problem can be resolved with
this pull request.

- vLLM version: release/v0.13.0
- vLLM main:
vllm-project@ad32e3e

---------

Signed-off-by: wxsIcey <1790571317@qq.com>
wenhow pushed a commit to wenhow/vllm that referenced this pull request Aug 5, 2026
…ct#5253)" (vllm-project#5667)

### What this PR does / why we need it?

Revert PR 5253 to fix the smoking problem

### Does this PR introduce _any_ user-facing change?

Does not.

### How was this patch tested?

It was tested in the failure case.

Signed-off-by: Rifa <865071616@qq.com>
michael-gpu pushed a commit to practical-inference/vllm-ampere-extended that referenced this pull request Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants