Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
fxmarty committed Dec 12, 2023
1 parent 304a4ac commit c767d3e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
11 changes: 8 additions & 3 deletions docs/source/exporters/onnx/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ specific language governing permissions and limitations under the License.

🤗 Optimum handles the export of PyTorch or TensorFlow models to ONNX in the `exporters.onnx` module. It provides classes, functions, and a command line interface to perform the export easily.

Supported architectures:
Supported architectures from [🤗 Transformers](https://huggingface.co/docs/transformers/index):

- AST
- Audio Spectrogram Transformer
Expand Down Expand Up @@ -87,7 +87,6 @@ Supported architectures:
- SpeechT5
- Splinter
- SqueezeBert
- Stable Diffusion
- Swin
- T5
- TROCR
Expand All @@ -103,9 +102,15 @@ Supported architectures:
- XLM-Roberta
- Yolos

Supported architectures (Timm):
Supported architectures from [🤗 Diffusers](https://huggingface.co/docs/diffusers/index):
- Stable Diffusion

Supported architectures from [🤗 Timm](https://huggingface.co/docs/timm/index):
- Resnext50-32x4d
- Resnext50d-32x4d
- Resnext101-32x4d
- Resnext101-32x8d
- Resnext101-64x4d

Supported architectures from [Sentence Transformers](https://github.com/UKPLab/sentence-transformers):
- All Transformer and CLIP-based models.
6 changes: 3 additions & 3 deletions optimum/exporters/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1564,9 +1564,9 @@ def infer_library_from_model(
if not full_model_path.is_dir():
model_info = huggingface_hub.model_info(model_name_or_path, revision=revision)
library_name = getattr(model_info, "library_name", None)
library_name = library_name.replace(
"-", "_"
) # sentence-transformers name on python side is sentence_transformers

# sentence-transformers package name is sentence_transformers
library_name = library_name.replace("-", "_")

if library_name is None:
all_files, _ = TasksManager.get_model_files(model_name_or_path, subfolder, cache_dir)
Expand Down

0 comments on commit c767d3e

Please sign in to comment.