Commit bbb634a
[GPTQ] Move modifier to top-level for consistent folder structure (vllm-project#2368)
## SUMMARY:
Move GPTQModifier from `modifiers/quantization/gptq/` to
`modifiers/gptq/`
for consistent folder structure with AWQ and AutoRound (related: vllm-project#2306).
- Add deprecation wrapper at old import path for backward compatibility
- Exclude old GPTQ paths from ModifierFactory to prevent duplicate
registration
- Update test and example imports to new canonical path
## TEST PLAN:
Import verification (all passed):
- from llmcompressor.modifiers.gptq import GPTQModifier (new path, no
warning)
- from llmcompressor.modifiers.quantization import GPTQModifier (BC, no
warning)
- from llmcompressor.modifiers.quantization.gptq import GPTQModifier
(BC, DeprecationWarning)
- ModifierFactory.refresh() registers GPTQModifier from new location
pytest (11 passed, 3 skipped for GPU):
- tests/llmcompressor/transformers/gptq/test_gptq_oneshot.py
-
tests/llmcompressor/pytorch/modifiers/pruning/sparsegpt/test_pytorch.py
- tests/llmcompressor/transformers/compression/test_recipe_parsing.py
(requires GPU)
ruff check + ruff format passed
---------
Signed-off-by: 김대익 <33992354+dik654@users.noreply.github.com>
Co-authored-by: Brian Dellabetta <brian-dellabetta@users.noreply.github.com>
Signed-off-by: yiliu30 <yi4.liu@intel.com>1 parent 87252fd commit bbb634a
File tree
41 files changed
+55
-39
lines changed- docs/guides
- examples
- big_models_with_sequential_onloading
- multimodal_audio
- multimodal_vision
- quantization_non_uniform
- quantization_w4a16_fp4/mxfp4
- quantization_w4a16
- quantization_w4a4_fp4
- quantization_w4a8_fp8
- quantization_w8a8_int8
- quantizing_moe
- src/llmcompressor
- modifiers
- gptq
- quantization
- gptq
- pipelines/sequential
- tests
- e2e
- llmcompressor
- modifiers/quantization
- pytorch/modifiers/pruning/sparsegpt
- transformers
- compression
- gptq
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
41 files changed
+55
-39
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
0 commit comments