|
48 | 48 | "IPEXModelForMaskedLM",
|
49 | 49 | "IPEXModelForTokenClassification",
|
50 | 50 | "IPEXModelForQuestionAnswering",
|
| 51 | + "IPEXModelForImageClassification", |
| 52 | + "IPEXModelForAudioClassification", |
| 53 | + "IPEXModel", |
51 | 54 | ]
|
52 | 55 |
|
53 |
| - |
54 | 56 | try:
|
55 | 57 | if not (is_openvino_available() and is_nncf_available()):
|
56 | 58 | raise OptionalDependencyNotAvailable()
|
|
60 | 62 | "OVQuantizer",
|
61 | 63 | "OVTrainer",
|
62 | 64 | "OVTrainingArguments",
|
| 65 | + "OVWeightQuantizationConfig", |
63 | 66 | ]
|
64 | 67 | else:
|
65 |
| - _import_structure["openvino"].extend(["OVConfig", "OVQuantizer", "OVTrainer", "OVTrainingArguments"]) |
| 68 | + _import_structure["openvino"].extend( |
| 69 | + ["OVConfig", "OVQuantizer", "OVTrainer", "OVTrainingArguments", "OVWeightQuantizationConfig"] |
| 70 | + ) |
66 | 71 |
|
67 | 72 | try:
|
68 | 73 | if not (is_openvino_available() and is_diffusers_available()):
|
|
159 | 164 | from .utils.dummy_ipex_objects import *
|
160 | 165 | else:
|
161 | 166 | from .ipex import (
|
| 167 | + IPEXModel, |
| 168 | + IPEXModelForAudioClassification, |
162 | 169 | IPEXModelForCausalLM,
|
| 170 | + IPEXModelForImageClassification, |
163 | 171 | IPEXModelForMaskedLM,
|
164 | 172 | IPEXModelForQuestionAnswering,
|
165 | 173 | IPEXModelForSequenceClassification,
|
|
171 | 179 | if not (is_openvino_available() and is_nncf_available()):
|
172 | 180 | raise OptionalDependencyNotAvailable()
|
173 | 181 | except OptionalDependencyNotAvailable:
|
174 |
| - from .utils.dummy_openvino_and_nncf_objects import OVConfig, OVQuantizer, OVTrainer, OVTrainingArguments |
| 182 | + from .utils.dummy_openvino_and_nncf_objects import ( |
| 183 | + OVConfig, |
| 184 | + OVQuantizer, |
| 185 | + OVTrainer, |
| 186 | + OVTrainingArguments, |
| 187 | + OVWeightQuantizationConfig, |
| 188 | + ) |
175 | 189 | else:
|
176 |
| - from .openvino import OVConfig, OVQuantizer, OVTrainer, OVTrainingArguments |
| 190 | + from .openvino import OVConfig, OVQuantizer, OVTrainer, OVTrainingArguments, OVWeightQuantizationConfig |
177 | 191 |
|
178 | 192 | try:
|
179 | 193 | if not (is_openvino_available() and is_diffusers_available()):
|
|
0 commit comments