Skip to content

Commit 1bb76a1

Browse files
authored
Upgrade version (#211)
* Upgrade version * 4.56 * fix ut
1 parent ae50ac9 commit 1bb76a1

File tree

8 files changed

+21
-11
lines changed

8 files changed

+21
-11
lines changed

CHANGELOGS.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
Change Logs
22
===========
33

4+
0.7.9
5+
+++++
6+
47
0.7.8
58
+++++
69

_doc/index.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,8 @@ The function replaces dynamic dimensions defined as strings by
239239
Older versions
240240
==============
241241

242+
* `0.7.9 <../v0.7.9/index.html>`_
242243
* `0.7.8 <../v0.7.8/index.html>`_
243-
* `0.7.7 <../v0.7.7/index.html>`_
244-
* `0.7.6 <../v0.7.6/index.html>`_
245244
* `0.6.3 <../v0.6.3/index.html>`_
246245
* `0.5.0 <../v0.5.0/index.html>`_
247246
* `0.4.4 <../v0.4.4/index.html>`_

_unittests/ut_tasks/test_tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ def test_falcon_mamba_dev(self):
293293
model(**inputs)
294294
model(**data["inputs2"])
295295
self.assertIn((data["size"], data["n_weights"]), [(274958336, 68739584)])
296-
if not has_transformers("4.56"):
296+
if not has_transformers("4.57"):
297297
raise unittest.SkipTest("The model has control flow.")
298298
with torch_export_patches(patch_transformers=True, verbose=10, stop_if_static=1):
299299
torch.export.export(

_unittests/ut_tasks/test_tasks_image_text_to_text.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def test_image_text_to_text_idefics(self):
2929
)
3030

3131
@hide_stdout()
32-
@requires_transformers("4.56.99")
32+
@requires_transformers("4.57.99")
3333
@requires_torch("2.7.99")
3434
def test_image_text_to_text_gemma3(self):
3535
"""
@@ -53,7 +53,7 @@ def test_image_text_to_text_gemma3(self):
5353
)
5454

5555
@hide_stdout()
56-
@requires_transformers("4.56.99")
56+
@requires_transformers("4.57.99")
5757
@requires_torch("2.7.99")
5858
def test_image_text_to_text_zai_glm(self):
5959
"""

onnx_diagnostic/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
Functions, classes to dig into a model when this one is right, slow, wrong...
44
"""
55

6-
__version__ = "0.7.8"
6+
__version__ = "0.7.9"
77
__author__ = "Xavier Dupré"

onnx_diagnostic/_command_lines_parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -850,13 +850,13 @@ def get_parser_agg() -> ArgumentParser:
850850
"--filter-in",
851851
default="",
852852
help="adds a filter to filter in data, syntax is\n"
853-
'``"<column1>:<value1>;<value2>/<column2>:<value3>"`` ...',
853+
'``"<column1>:<value1>;<value2>//<column2>:<value3>"`` ...',
854854
)
855855
parser.add_argument(
856856
"--filter-out",
857857
default="",
858858
help="adds a filter to filter out data, syntax is\n"
859-
'``"<column1>:<value1>;<value2>/<column2>:<value3>"`` ...',
859+
'``"<column1>:<value1>;<value2>//<column2>:<value3>"`` ...',
860860
)
861861
parser.add_argument(
862862
"--sbs",

onnx_diagnostic/helpers/_log_helper.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,11 @@ def _f(fmt):
118118
if isinstance(fmt, str):
119119
cols = fmt.split("//")
120120
for c in cols:
121-
assert ":" in c, f"Unexpected value {c!r} in fmt={fmt!r}"
121+
assert ":" in c, f"Unexpected value {c!r} in fmt={fmt!r}, cols={cols!r}"
122122
spl = c.split(":")
123-
assert len(spl) == 2, f"Unexpected value {c!r} in fmt={fmt!r}"
123+
assert (
124+
len(spl) == 2
125+
), f"Unexpected value {c!r} in fmt={fmt!r}, spl={spl}, cols={cols}"
124126
name, fil = spl
125127
cond[name] = set(fil.split(";"))
126128
return cond

onnx_diagnostic/helpers/log_helper.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import enum
22
import io
3+
import os
34
import pprint
45
import re
56
import warnings
@@ -270,6 +271,10 @@ def _make_loop(cls, ensemble, verbose):
270271
def _to_images_bar(
271272
self, verbose: int = 0, merge: bool = True, title_suffix: Optional[str] = None
272273
) -> List[bytes]:
274+
"""
275+
Environment variable ``FIGSIZEH`` can be set to increase the
276+
graph height. Default is 1.0.
277+
"""
273278
assert merge, f"merge={merge} not implemented yet"
274279
import matplotlib.pyplot as plt
275280

@@ -279,7 +284,8 @@ def _to_images_bar(
279284
n_cols = 3
280285
nn = df.shape[1] // n_cols
281286
nn += int(df.shape[1] % n_cols != 0)
282-
fig, axs = plt.subplots(nn, n_cols, figsize=(6 * n_cols, nn * df.shape[0] / 5))
287+
ratio = float(os.environ.get("FIGSIZEH", "1"))
288+
fig, axs = plt.subplots(nn, n_cols, figsize=(6 * n_cols, nn * df.shape[0] / 3 * ratio))
283289
pos = 0
284290
imgs = []
285291
for c in self._make_loop(df.columns, verbose):

0 commit comments

Comments
 (0)