mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-01 02:31:11 +06:00
Remove permalinks
This commit is contained in:
parent
405b59a91a
commit
099701daf0
@ -228,9 +228,9 @@ Let's start with the ONNX configuration object. We provide three abstract
|
|||||||
classes that you should inherit from, depending on the type of model
|
classes that you should inherit from, depending on the type of model
|
||||||
architecture you wish to export:
|
architecture you wish to export:
|
||||||
|
|
||||||
* Encoder-based models inherit from [`OnnxConfig`](https://github.com/huggingface/transformers/blob/c4fa908fa98c3d538462c537d29b7613dd71306e/src/transformers/onnx/config.py#L52)
|
* Encoder-based models inherit from [`OnnxConfig`]
|
||||||
* Decoder-based models inherit from [`OnnxConfigWithPast`](https://github.com/huggingface/transformers/blob/c4fa908fa98c3d538462c537d29b7613dd71306e/src/transformers/onnx/config.py#L264)
|
* Decoder-based models inherit from [`OnnxConfigWithPast`]
|
||||||
* Encoder-decoder models inherit from [`OnnxSeq2SeqConfigWithPast`](https://github.com/huggingface/transformers/blob/c4fa908fa98c3d538462c537d29b7613dd71306e/src/transformers/onnx/config.py#L399)
|
* Encoder-decoder models inherit from [`OnnxSeq2SeqConfigWithPast`]
|
||||||
|
|
||||||
<Tip>
|
<Tip>
|
||||||
|
|
||||||
@ -401,7 +401,7 @@ to the library, you will need to:
|
|||||||
* Implement the ONNX configuration in the corresponding `configuration_<model_name>.py`
|
* Implement the ONNX configuration in the corresponding `configuration_<model_name>.py`
|
||||||
file
|
file
|
||||||
* Include the model architecture and corresponding features in
|
* Include the model architecture and corresponding features in
|
||||||
[`onnx.features.FeatureManager`](https://github.com/huggingface/transformers/blob/c4fa908fa98c3d538462c537d29b7613dd71306e/src/transformers/onnx/features.py#L71)
|
[`~onnx.features.FeatureManager`]
|
||||||
* Add your model architecture to the tests in
|
* Add your model architecture to the tests in
|
||||||
`test_onnx_v2.py`
|
`test_onnx_v2.py`
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user