Skip to content

Commit 6a08078

Browse files
Deprecate modeling_ort (#78)
1 parent 0ad63df commit 6a08078

File tree

19 files changed

+2088
-2180
lines changed

19 files changed

+2088
-2180
lines changed

docs/source/_toctree.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
title: Conceptual guides
3232
isExpanded: false
3333
- sections:
34-
- local: onnxruntime/package_reference/modeling_ort
34+
- local: onnxruntime/package_reference/modeling
3535
title: ONNX Runtime Models
3636
- local: onnxruntime/package_reference/pipelines
3737
title: ONNX Runtime Pipelines

docs/source/onnxruntime/overview.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
><div class="w-full text-center bg-gradient-to-br from-pink-400 to-pink-500 rounded-lg py-1.5 font-semibold mb-5 text-white text-lg leading-relaxed">Conceptual guides</div>
1313
<p class="text-gray-700">High-level explanations for building a better understanding about important topics such as quantization and graph optimization.</p>
1414
</a>
15-
<a class="!no-underline border dark:border-gray-700 p-5 rounded-lg shadow hover:shadow-lg" href="./package_reference/modeling_ort"
15+
<a class="!no-underline border dark:border-gray-700 p-5 rounded-lg shadow hover:shadow-lg" href="./package_reference/modeling"
1616
><div class="w-full text-center bg-gradient-to-br from-purple-400 to-purple-500 rounded-lg py-1.5 font-semibold mb-5 text-white text-lg leading-relaxed">Reference</div>
1717
<p class="text-gray-700">Technical descriptions of how the ONNX Runtime classes and methods of 🤗 Optimum work.</p>
1818
</a>
File renamed without changes.

docs/source/onnxruntime/usage_guides/models.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Once your model was [exported to the ONNX format](https://huggingface.co/docs/op
2424
result = pipe("He never went out without a book under his arm")
2525
```
2626

27-
More information for all the supported `ORTModelForXxx` in our [documentation](https://huggingface.co/docs/optimum/onnxruntime/package_reference/modeling_ort)
27+
More information for all the supported `ORTModelForXxx` in our [documentation](https://huggingface.co/docs/optimum/onnxruntime/package_reference/modeling)
2828

2929
### Transformers pipelines
3030

examples/onnxruntime/quantization/image-classification/run_image_classification.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
from optimum.onnxruntime import ORTQuantizer
4040
from optimum.onnxruntime.configuration import AutoCalibrationConfig, QuantizationConfig
41-
from optimum.onnxruntime.modeling_ort import ORTModelForImageClassification
41+
from optimum.onnxruntime.modeling import ORTModelForImageClassification
4242
from optimum.onnxruntime.preprocessors import QuantizationPreprocessor
4343
from optimum.onnxruntime.preprocessors.passes import (
4444
ExcludeGeLUNodes,

examples/onnxruntime/quantization/question-answering/run_qa.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
from optimum.onnxruntime import ORTQuantizer
3838
from optimum.onnxruntime.configuration import AutoCalibrationConfig, QuantizationConfig
39-
from optimum.onnxruntime.modeling_ort import ORTModelForQuestionAnswering
39+
from optimum.onnxruntime.modeling import ORTModelForQuestionAnswering
4040
from optimum.onnxruntime.preprocessors import QuantizationPreprocessor
4141
from optimum.onnxruntime.preprocessors.passes import (
4242
ExcludeGeLUNodes,

examples/onnxruntime/quantization/text-classification/run_glue.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
from optimum.onnxruntime import ORTQuantizer
4545
from optimum.onnxruntime.configuration import AutoCalibrationConfig, QuantizationConfig
46-
from optimum.onnxruntime.modeling_ort import ORTModelForSequenceClassification
46+
from optimum.onnxruntime.modeling import ORTModelForSequenceClassification
4747
from optimum.onnxruntime.preprocessors import QuantizationPreprocessor
4848
from optimum.onnxruntime.preprocessors.passes import (
4949
ExcludeGeLUNodes,

examples/onnxruntime/quantization/token-classification/run_ner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
from optimum.onnxruntime import ORTQuantizer
3939
from optimum.onnxruntime.configuration import AutoCalibrationConfig, QuantizationConfig
40-
from optimum.onnxruntime.modeling_ort import ORTModelForTokenClassification
40+
from optimum.onnxruntime.modeling import ORTModelForTokenClassification
4141
from optimum.onnxruntime.preprocessors import QuantizationPreprocessor
4242
from optimum.onnxruntime.preprocessors.passes import (
4343
ExcludeGeLUNodes,

optimum/onnxruntime/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"ONNX_FILE_PATTERN",
4545
"ONNX_WEIGHTS_NAME",
4646
],
47-
"modeling_ort": [
47+
"modeling": [
4848
"ORTModel",
4949
"ORTModelForAudioClassification",
5050
"ORTModelForAudioFrameClassification",
@@ -143,8 +143,7 @@
143143
ONNX_FILE_PATTERN,
144144
ONNX_WEIGHTS_NAME,
145145
)
146-
from optimum.onnxruntime.modeling_decoder import ORTModelForCausalLM
147-
from optimum.onnxruntime.modeling_ort import (
146+
from optimum.onnxruntime.modeling import (
148147
ORTModel,
149148
ORTModelForAudioClassification,
150149
ORTModelForAudioFrameClassification,
@@ -162,6 +161,7 @@
162161
ORTModelForTokenClassification,
163162
ORTModelForZeroShotImageClassification,
164163
)
164+
from optimum.onnxruntime.modeling_decoder import ORTModelForCausalLM
165165
from optimum.onnxruntime.modeling_seq2seq import (
166166
ORTModelForPix2Struct,
167167
ORTModelForSeq2SeqLM,

0 commit comments

Comments
 (0)