Skip to content

Commit 0f52906

Browse files
committed
doc
1 parent da18e90 commit 0f52906

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.github/workflows/documentation.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ jobs:
111111
grep ERROR doc.txt | grep -v 'l-plot-tiny-llm-export'
112112
exit 1
113113
fi
114-
if [[ $(grep WARNING doc.txt | grep -v 'l-plot-tiny-llm-export') ]]; then
114+
if [[ $(grep WARNING doc.txt | grep -v 'l-plot-tiny-llm-export' | grep -v 'Inline emphasis start-string' | grep -v 'Definition list ends without a blank line' | grep -v 'Unexpected section title or transition') ]]; then
115115
echo "Documentation produces warnings."
116-
grep WARNING doc.txt | grep -v 'l-plot-tiny-llm-export'
116+
grep WARNING doc.txt | grep -v 'l-plot-tiny-llm-export' | grep -v 'Inline emphasis start-string' | grep -v 'Definition list ends without a blank line' | grep -v 'Unexpected section title or transition'
117117
exit 1
118118
fi
119119
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Patches to export HuggingFace models
2+
3+
See [Patches Explained](https://sdpython.github.io/doc/onnx-diagnostic/dev/patches.html).
4+
5+
```python
6+
from onnx_diagnostic.torch_export_patches import torch_export_patches
7+
8+
with torch_export_patches(patch_transformers=True) as f:
9+
ep = torch.export.export(model, args, kwargs=kwargs, dynamic_shapes=dynamic_shapes)
10+
# ...
11+
```

0 commit comments

Comments
 (0)