Commit 75fec39
committed
fix(global_ptq): make MDBF detection tolerate a missing MDBF quantizer
detect_quantization_method() imported MultipathMDBFLinear
unconditionally, so on an installation without onecomp.quantizer.mdbf
*every* call raised ModuleNotFoundError -- including for plain GPTQ and
DBF models. On this PR's base branch that broke the existing
TestDetectQuantizationMethod tests (3 failures).
Guard the import and treat MDBF as absent when it cannot be imported,
so GPTQ/DBF detection keeps working without the MDBF quantizer.
Verified both ways: without MDBF the global_ptq unit tests pass
(69 passed, integration tests deselected), and with MDBF present
(merged with feature/mdbf) detection still resolves MultipathMDBFLinear.1 parent 311e102 commit 75fec39
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
85 | 90 | | |
86 | 91 | | |
87 | 92 | | |
88 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
89 | 96 | | |
90 | 97 | | |
91 | 98 | | |
| |||
0 commit comments