Commit 626648a
authored
Put import of ModifierFactory to a try block (#24)
Users who install with the train extra (which excludes llmcompressor) will hit an ImportError. This change wraps the llmcompressor import in try and logs that skipping FMCHISEL modifier registration is expected when using the train extra. When llmcompressor is available, registration proceeds as before.1 parent 4f29551 commit 626648a
1 file changed
+9
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | 3 | | |
| 4 | + | |
6 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
7 | 13 | | |
| 14 | + | |
8 | 15 | | |
9 | 16 | | |
10 | 17 | | |
11 | | - | |
12 | | - | |
13 | | - | |
| |||
0 commit comments