Skip to content

Commit 89a50b0

Browse files
authored
Refactoring, add task fill-mask (#54)
* refactoring * complete * fix import * doc * complete * disable * oserror' * balck * fdoc
1 parent 32e5d55 commit 89a50b0

35 files changed

+1304
-991
lines changed

.github/workflows/check-urls.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
timeout: 2
3232
retry_count# : 2
3333
exclude_urls: https://github.com/pytorch/pytorch/pull/117009,https://github.com/huggingface/transformers/pull/29285,https://github.com/pytorch/pytorch/blob/a44f8894fa6d973693aab44a3dda079a168b05c1/torch/_decomp/decompositions.py#L1475
34-
exclude_patterns: https://dumps.wikimedia.org/,https://github.com/pytorch/pytorch/pull/,https://github.com/pytorch/pytorch/blob/a44f8894fa6d973693aab44a3dda079a168b05c1/torch/_decomp/decompositions.py#L1475,https://huggingface.co/
34+
exclude_patterns: https://dumps.wikimedia.org/,https://github.com/pytorch/pytorch/pull/,https://github.com/pytorch/pytorch/blob/a44f8894fa6d973693aab44a3dda079a168b05c1/torch/_decomp/decompositions.py#L1475,https://huggingface.co/,https://huggingface.co/
3535
# force_pass : true
3636

3737
- name: urls-checker-docs
@@ -43,5 +43,5 @@ jobs:
4343
timeout: 2
4444
retry_count# : 2
4545
exclude_urls: https://hal.archives-,ouvertes.fr/hal-00990252/document,http://badge.fury.io/py/onnx-diagnostic,https://azure.microsoft.com/en-us/products/devops/pipelines,https://github.com/pytorch/pytorch/pull/83137#issuecomment-1211320670,https://github.com/NVIDIA/TransformerEngine.git@6a9edc38bf9b941b7d369af5103fa8fe0b121d61,https://medium.com/@msouza.os/llm-from-scratch-with-pytorch-9f21808c6319,https://github.com/pytorch/pytorch/blob/main/torch/fx/experimental/symbolic_shapes.py#L5965,https://docs.nvidia.com/deeplearning/frameworks/pytorch-release-notes/rel-24-04.html,https://badge.fury.io/py/onnx-diagnostic.svg,https://github.com/huggingface/transformers/pull/36311
46-
exclude_patterns: https://www.data.gouv.fr/fr/datasets/r/e3d83ab3-dc52-4c99-abaf-8a38050cc68c,https://dev.azure.com/,https://azure.microsoft.com/en-us/products/devops/pipelines,https://github.com/pytorch/pytorch/pull/83137#issuecomment-1211320670,https://github.com/NVIDIA/TransformerEngine.git@6a9edc38bf9b941b7d369af5103fa8fe0b121d61,https://github.com/pytorch/pytorch/blob/main/torch/,https://docs.nvidia.com/deeplearning/frameworks/pytorch-release-notes/rel-24-04.html,https://badge.fury.io/py/onnx-diagnostic.svg,https://github.com/huggingface/transformers/pull/36311,https://codecov.io/
46+
exclude_patterns: https://www.data.gouv.fr/fr/datasets/r/e3d83ab3-dc52-4c99-abaf-8a38050cc68c,https://dev.azure.com/,https://azure.microsoft.com/en-us/products/devops/pipelines,https://github.com/pytorch/pytorch/pull/83137#issuecomment-1211320670,https://github.com/NVIDIA/TransformerEngine.git@6a9edc38bf9b941b7d369af5103fa8fe0b121d61,https://github.com/pytorch/pytorch/blob/main/torch/,https://docs.nvidia.com/deeplearning/frameworks/pytorch-release-notes/rel-24-04.html,https://badge.fury.io/py/onnx-diagnostic.svg,https://github.com/huggingface/transformers/pull/36311,https://codecov.io/,https://huggingface.co/
4747
# force_pass : true

.github/workflows/documentation.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,11 @@ jobs:
6262

6363
- name: tiny-llm example
6464
run: PYTHONPATH=. python _doc/examples/plot_export_tiny_llm.py
65+
continue-on-error: true # connectivity issues
6566

6667
- name: tiny-llm bypass
6768
run: PYTHONPATH=. python _doc/examples/plot_export_tiny_llm_patched.py
69+
continue-on-error: true # connectivity issues
6870

6971
- name: run tests bypassed
7072
run: PYTHONPATH=. python _unittests/ut_torch_models/test_tiny_llms_bypassed.py

_doc/api/helpers/config_helper.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
onnx_diagnostic.helpers.config_helper
3+
=====================================
4+
5+
.. automodule:: onnx_diagnostic.helpers.config_helper
6+
:members:
7+
:no-undoc-members:

_doc/api/helpers/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ onnx_diagnostic.helpers
99
args_helper
1010
bench_run
1111
cache_helper
12+
config_helper
1213
helper
1314
memory_peak
1415
onnx_helper

_doc/api/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ API of onnx_diagnostic
1010
export/index
1111
helpers/index
1212
reference/index
13+
tasks/index
1314
torch_export_patches/index
1415
torch_models/index
1516
torch_onnx/index
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
onnx_diagnostic.export.automatic_speech_recognition
3+
===================================================
4+
5+
.. automodule:: onnx_diagnostic.tasks.automatic_speech_recognition
6+
:members:
7+
:no-undoc-members:

_doc/api/tasks/fill_mask.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
onnx_diagnostic.export.fill_mask
3+
================================
4+
5+
.. automodule:: onnx_diagnostic.tasks.fill_mask
6+
:members:
7+
:no-undoc-members:
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
onnx_diagnostic.export.image_classification
3+
===========================================
4+
5+
.. automodule:: onnx_diagnostic.tasks.image_classification
6+
:members:
7+
:no-undoc-members:
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
onnx_diagnostic.export.image_text_to_text
3+
=========================================
4+
5+
.. automodule:: onnx_diagnostic.tasks.image_text_to_text
6+
:members:
7+
:no-undoc-members:

_doc/api/tasks/index.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
onnx_diagnostic.tasks
2+
=====================
3+
4+
.. toctree::
5+
:maxdepth: 1
6+
:caption: modules
7+
8+
automatic_speech_recognition
9+
fill_mask
10+
image_classification
11+
image_text_to_text
12+
text_generation
13+
text2text_generation
14+
zero_shot_image_classification
15+
16+
.. automodule:: onnx_diagnostic.tasks
17+
:members:
18+
:no-undoc-members:

0 commit comments

Comments
 (0)