Skip to content

Commit

Permalink
Update Inference supported models list (#501)
Browse files Browse the repository at this point in the history
* update supported models

* models in independant page

* add to catalogue
  • Loading branch information
JingyaHuang authored Mar 4, 2024
1 parent 0916761 commit f684d3e
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 36 deletions.
2 changes: 2 additions & 0 deletions docs/source/_toctree.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@
title: Neuron Trainer
- local: package_reference/distributed
title: Neuron Distributed
- local: package_reference/supported_models
title: Supported Architectures
- local: package_reference/export
title: Neuron Exporter
- local: package_reference/modeling
Expand Down
36 changes: 0 additions & 36 deletions docs/source/package_reference/export.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,40 +28,4 @@ exporting function according to the environment.
Besides, you can check if the exported model is valid via [`~optimum.exporters.neuron.convert.validate_model_outputs`], which compares
the compiled model's output on Neuron devices to the PyTorch model's output on CPU.

## Supported architectures


| Architecture | Task |
|------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------|
| ALBERT | feature-extraction, fill-mask, multiple-choice, question-answering, text-classification, token-classification |
| BERT | feature-extraction, fill-mask, multiple-choice, question-answering, text-classification, token-classification |
| BLOOM | text-generation |
| CamemBERT | feature-extraction, fill-mask, multiple-choice, question-answering, text-classification, token-classification |
| ConvBERT | feature-extraction, fill-mask, multiple-choice, question-answering, text-classification, token-classification |
| DeBERTa (INF2 only) | feature-extraction, fill-mask, multiple-choice, question-answering, text-classification, token-classification |
| DeBERTa-v2 (INF2 only) | feature-extraction, fill-mask, multiple-choice, question-answering, text-classification, token-classification |
| DistilBERT | feature-extraction, fill-mask, multiple-choice, question-answering, text-classification, token-classification |
| ELECTRA | feature-extraction, fill-mask, multiple-choice, question-answering, text-classification, token-classification |
| FlauBERT | feature-extraction, fill-mask, multiple-choice, question-answering, text-classification, token-classification |
| GPT2 | text-generation |
| Llama, Llama 2 | text-generation |
| Mistral | text-generation |
| MobileBERT | feature-extraction, fill-mask, multiple-choice, question-answering, text-classification, token-classification |
| MPNet | feature-extraction, fill-mask, multiple-choice, question-answering, text-classification, token-classification |
| OPT | text-generation |
| RoBERTa | feature-extraction, fill-mask, multiple-choice, question-answering, text-classification, token-classification |
| RoFormer | feature-extraction, fill-mask, multiple-choice, question-answering, text-classification, token-classification |
| XLM | feature-extraction, fill-mask, multiple-choice, question-answering, text-classification, token-classification |
| XLM-RoBERTa | feature-extraction, fill-mask, multiple-choice, question-answering, text-classification, token-classification |
| Stable Diffusion | text-to-image, image-to-image, inpaint |
| Stable Diffusion XL Base | text-to-image, image-to-image, inpaint |
| Stable Diffusion XL Refiner | image-to-image, inpaint |


<Tip>

More details for checking supported tasks [here](https://huggingface.co/docs/optimum-neuron/guides/export_model#selecting-a-task).

</Tip>

More architectures coming soon, stay tuned! 🚀
71 changes: 71 additions & 0 deletions docs/source/package_reference/supported_models.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
<!---
Copyright 2024 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.
-->

# Supported architectures

## Transformers

| Architecture | Task |
|------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------|
| ALBERT | feature-extraction, fill-mask, multiple-choice, question-answering, text-classification, token-classification |
| BERT | feature-extraction, fill-mask, multiple-choice, question-answering, text-classification, token-classification |
| BLOOM | text-generation |
| CamemBERT | feature-extraction, fill-mask, multiple-choice, question-answering, text-classification, token-classification |
| ConvBERT | feature-extraction, fill-mask, multiple-choice, question-answering, text-classification, token-classification |
| DeBERTa (INF2 only) | feature-extraction, fill-mask, multiple-choice, question-answering, text-classification, token-classification |
| DeBERTa-v2 (INF2 only) | feature-extraction, fill-mask, multiple-choice, question-answering, text-classification, token-classification |
| DistilBERT | feature-extraction, fill-mask, multiple-choice, question-answering, text-classification, token-classification |
| ELECTRA | feature-extraction, fill-mask, multiple-choice, question-answering, text-classification, token-classification |
| ESM | feature-extraction, fill-mask, text-classification, token-classification |
| FlauBERT | feature-extraction, fill-mask, multiple-choice, question-answering, text-classification, token-classification |
| GPT2 | text-generation |
| Llama, Llama 2 | text-generation |
| Mistral | text-generation |
| MobileBERT | feature-extraction, fill-mask, multiple-choice, question-answering, text-classification, token-classification |
| MPNet | feature-extraction, fill-mask, multiple-choice, question-answering, text-classification, token-classification |
| OPT | text-generation |
| RoBERTa | feature-extraction, fill-mask, multiple-choice, question-answering, text-classification, token-classification |
| RoFormer | feature-extraction, fill-mask, multiple-choice, question-answering, text-classification, token-classification |
| T5 | text2text-generation |
| XLM | feature-extraction, fill-mask, multiple-choice, question-answering, text-classification, token-classification |
| XLM-RoBERTa | feature-extraction, fill-mask, multiple-choice, question-answering, text-classification, token-classification |


## Diffusers

| Architecture | Task |
|-------------------------------|----------------------------------------------------------------------------------------------------------------------------------------|
| Stable Diffusion | text-to-image, image-to-image, inpaint |
| Stable Diffusion XL Base | text-to-image, image-to-image, inpaint |
| Stable Diffusion XL Refiner | image-to-image, inpaint |
| SDXL Turbo | text-to-image, image-to-image, inpaint |
| LCM | text-to-image |

## Sentence Transformers

| Architecture | Task |
|-------------------------------|----------------------------------------------------------------------------------------------------------------------------------------|
| Transformer | feature-extraction, sentence-similarity |
| CLIP | feature-extraction, zero-shot-image-classification |


<Tip>

More details for checking supported tasks [here](https://huggingface.co/docs/optimum-neuron/guides/export_model#selecting-a-task).

</Tip>

More architectures coming soon, stay tuned! 🚀

0 comments on commit f684d3e

Please sign in to comment.