| <!--Copyright 2020 The HuggingFace Team. All rights reserved. | |
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with | |
| the License. You may obtain a copy of the License at | |
| http://www.apache.org/licenses/LICENSE-2.0 | |
| Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on | |
| an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the | |
| specific language governing permissions and limitations under the License. | |
| โ ๏ธ Note that this file is in Markdown but contain specific syntax for our doc-builder (similar to MDX) that may not be | |
| rendered properly in your Markdown viewer. | |
| --> | |
| # ๐ค Transformers ๋ชจ๋ธ์ ONNX๋ก ๋ด๋ณด๋ด๊ธฐ[[exporting--transformers-models-to-onnx]] | |
| ๐ค ํธ๋์คํฌ๋จธ๋ `transformers.onnx` ํจํค์ง๋ฅผ ์ ๊ณตํ๋ฉฐ, ์ด ํจํค์ง๋ ์ค์ ๊ฐ์ฒด๋ฅผ ํ์ฉํ์ฌ ๋ชจ๋ธ ์ฒดํฌํฌ์ธํธ๋ฅผ ONNX ๊ทธ๋ํ๋ก ๋ณํํ ์ ์๊ฒ ํฉ๋๋ค. | |
| ๐ค Transformers์ ๋ํ ์์ธํ ๋ด์ฉ์ [์ด ๊ฐ์ด๋](../serialization)๋ฅผ ์ฐธ์กฐํ์ธ์. | |
| ## ONNX ์ค์ [[onnx-configurations]] | |
| ๋ด๋ณด๋ด๋ ค๋(export) ๋ชจ๋ธ ์ํคํ ์ฒ์ ์ ํ์ ๋ฐ๋ผ ์์๋ฐ์์ผ ํ ์ธ ๊ฐ์ง ์ถ์ ํด๋์ค๋ฅผ ์ ๊ณตํฉ๋๋ค: | |
| * ์ธ์ฝ๋ ๊ธฐ๋ฐ ๋ชจ๋ธ์ [`~onnx.config.OnnxConfig`]์ ์์๋ฐ์ต๋๋ค. | |
| * ๋์ฝ๋ ๊ธฐ๋ฐ ๋ชจ๋ธ์ [`~onnx.config.OnnxConfigWithPast`]์ ์์๋ฐ์ต๋๋ค. | |
| * ์ธ์ฝ๋-๋์ฝ๋ ๊ธฐ๋ฐ ๋ชจ๋ธ์ [`~onnx.config.OnnxSeq2SeqConfigWithPast`]์ ์์๋ฐ์ต๋๋ค. | |
| ### OnnxConfig[[transformers.onnx.OnnxConfig]] | |
| [[autodoc]] onnx.config.OnnxConfig | |
| ### OnnxConfigWithPast[[transformers.onnx.OnnxConfigWithPast]] | |
| [[autodoc]] onnx.config.OnnxConfigWithPast | |
| ### OnnxSeq2SeqConfigWithPast[[OnnxSeq2SeqConfigWithPast]] | |
| [[autodoc]] onnx.config.OnnxSeq2SeqConfigWithPast | |
| ## ONNX ํน์ง[[onnx-features]] | |
| ๊ฐ ONNX ์ค์ ์ ๋ค์ํ ์ ํ์ ํ ํด๋ก์ง๋ ์์ ์ ๋ํด ๋ชจ๋ธ์ ๋ด๋ณด๋ผ ์ ์๊ฒ(exporting) ํด์ฃผ๋ _features_ ์ธํธ์ ์ฐ๊ด๋์ด ์์ต๋๋ค. | |
| ### FeaturesManager[[transformers.onnx.FeaturesManager]] | |
| [[autodoc]] onnx.features.FeaturesManager | |