Skip to content

Commit 05b06e9

Browse files
committed
patches
1 parent 126e585 commit 05b06e9

File tree

7 files changed

+19
-14
lines changed

7 files changed

+19
-14
lines changed

.github/workflows/check-urls.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ jobs:
4242
print_all: false
4343
timeout: 2
4444
retry_count# : 2
45-
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/,https://codecov.io/,https://huggingface.co/
45+
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,https://www.linux.org/
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/,https://codecov.io/,https://huggingface.co/,https://www.linux.org/
4747
# force_pass : true

.github/workflows/ci.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
matrix:
1818
os: [ubuntu-latest]
1919
python: ['3.10', '3.11', '3.12', '3.13']
20-
transformers: ['4.48.3', '4.51.3', '4.52.4', '4.53.3', '4.55.4', '4.56.1', 'main']
20+
transformers: ['4.48.3', '4.51.3', '4.52.4', '4.55.4', '4.56.2', 'main']
2121
torch: ['2.8', 'main']
2222
exclude:
2323
- python: '3.10'
@@ -26,30 +26,28 @@ jobs:
2626
transformers: 'main'
2727
- python: '3.10'
2828
transformers: '4.52.4'
29-
- python: '3.10'
30-
transformers: '4.53.3'
3129
- python: '3.10'
3230
transformers: '4.55.4'
3331
- python: '3.10'
34-
transformers: '4.56.1'
32+
transformers: '4.56.2'
3533
- python: '3.11'
3634
torch: 'main'
37-
- python: '3.11'
38-
transformers: '4.53.3'
3935
- python: '3.11'
4036
transformers: 'main'
4137
- python: '3.11'
4238
transformers: '4.55.4'
4339
- python: '3.11'
44-
transformers: '4.56.1'
40+
transformers: '4.56.2'
4541
- python: '3.13'
4642
torch: '2.8'
4743
- python: '3.13'
4844
transformers: '4.48.3'
4945
- python: '3.13'
5046
transformers: '4.51.3'
5147
- python: '3.13'
52-
transformers: '4.52.4'
48+
transformers: '4.55.4'
49+
- python: '3.13'
50+
transformers: '4.56.2'
5351
steps:
5452
- uses: actions/checkout@v3
5553

CHANGELOGS.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Change Logs
44
0.7.13
55
++++++
66

7+
* :pr:`256`: add a set of inputs checking models works for an empty cache on task text-generation
78
* :pr:`244`: add a patch to bypass the exception raised when the dynamic dimension is in {0,1}
89

910
0.7.12

_doc/patches.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,10 @@ Here is the list of available patches:
9191

9292
for name, cls in p.__dict__.items():
9393
if name.startswith("patched_") and hasattr(cls, "_PATCHES_"):
94-
print(f"{cls._PATCHED_CLASS_.__name__}: {', '.join(cls._PATCHES_)}")
94+
print(
95+
f"{cls._PATCHED_CLASS_.__name__}: "
96+
f"{', '.join([_ for _ in cls._PATCHES_ if _ is not None])}"
97+
)
9598

9699
Cache serialization
97100
===================

_doc/status/patches_coverage.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ for transformers.
3232

3333
for name, cls in p.__dict__.items():
3434
if name.startswith("patched_") and hasattr(cls, "_PATCHES_"):
35-
print(f"{cls._PATCHED_CLASS_.__name__}: {', '.join(cls._PATCHES_)}")
35+
print(
36+
f"{cls._PATCHED_CLASS_.__name__}: "
37+
f"{', '.join([_ for _ in cls._PATCHES_ if _ is not None])}"
38+
)
3639

3740
Half Automated Rewrites for Control Flows
3841
=========================================

onnx_diagnostic/torch_export_patches/onnx_export_errors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def patch_module_or_classes(mod, verbose: int = 0) -> Dict[type, Dict[type, Call
8383
continue
8484

8585
original = cls._PATCHED_CLASS_
86-
methods = cls._PATCHES_
86+
methods = [_ for _ in cls._PATCHES_ if _ is not None]
8787
if verbose:
8888
print(f"[patch_module_or_classes] {name}.{cls.__name__}: {', '.join(methods)}")
8989

onnx_diagnostic/torch_models/validate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ def validate_model(
865865
runtime=runtime,
866866
repeat=repeat,
867867
warmup=warmup,
868-
inputs2=inputs2,
868+
second_input_keys=second_input_keys,
869869
)
870870
summary.update(summary_valid)
871871

0 commit comments

Comments
 (0)