Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOGS.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
Change Logs
===========

0.7.9
+++++

0.7.8
+++++

Expand Down
3 changes: 1 addition & 2 deletions _doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,8 @@ The function replaces dynamic dimensions defined as strings by
Older versions
==============

* `0.7.9 <../v0.7.9/index.html>`_
* `0.7.8 <../v0.7.8/index.html>`_
* `0.7.7 <../v0.7.7/index.html>`_
* `0.7.6 <../v0.7.6/index.html>`_
* `0.6.3 <../v0.6.3/index.html>`_
* `0.5.0 <../v0.5.0/index.html>`_
* `0.4.4 <../v0.4.4/index.html>`_
Expand Down
2 changes: 1 addition & 1 deletion _unittests/ut_tasks/test_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def test_falcon_mamba_dev(self):
model(**inputs)
model(**data["inputs2"])
self.assertIn((data["size"], data["n_weights"]), [(274958336, 68739584)])
if not has_transformers("4.56"):
if not has_transformers("4.57"):
raise unittest.SkipTest("The model has control flow.")
with torch_export_patches(patch_transformers=True, verbose=10, stop_if_static=1):
torch.export.export(
Expand Down
4 changes: 2 additions & 2 deletions _unittests/ut_tasks/test_tasks_image_text_to_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def test_image_text_to_text_idefics(self):
)

@hide_stdout()
@requires_transformers("4.56.99")
@requires_transformers("4.57.99")
@requires_torch("2.7.99")
def test_image_text_to_text_gemma3(self):
"""
Expand All @@ -53,7 +53,7 @@ def test_image_text_to_text_gemma3(self):
)

@hide_stdout()
@requires_transformers("4.56.99")
@requires_transformers("4.57.99")
@requires_torch("2.7.99")
def test_image_text_to_text_zai_glm(self):
"""
Expand Down
2 changes: 1 addition & 1 deletion onnx_diagnostic/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
Functions, classes to dig into a model when this one is right, slow, wrong...
"""

__version__ = "0.7.8"
__version__ = "0.7.9"
__author__ = "Xavier Dupré"
4 changes: 2 additions & 2 deletions onnx_diagnostic/_command_lines_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -850,13 +850,13 @@ def get_parser_agg() -> ArgumentParser:
"--filter-in",
default="",
help="adds a filter to filter in data, syntax is\n"
'``"<column1>:<value1>;<value2>/<column2>:<value3>"`` ...',
'``"<column1>:<value1>;<value2>//<column2>:<value3>"`` ...',
)
parser.add_argument(
"--filter-out",
default="",
help="adds a filter to filter out data, syntax is\n"
'``"<column1>:<value1>;<value2>/<column2>:<value3>"`` ...',
'``"<column1>:<value1>;<value2>//<column2>:<value3>"`` ...',
)
parser.add_argument(
"--sbs",
Expand Down
6 changes: 4 additions & 2 deletions onnx_diagnostic/helpers/_log_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@ def _f(fmt):
if isinstance(fmt, str):
cols = fmt.split("//")
for c in cols:
assert ":" in c, f"Unexpected value {c!r} in fmt={fmt!r}"
assert ":" in c, f"Unexpected value {c!r} in fmt={fmt!r}, cols={cols!r}"
spl = c.split(":")
assert len(spl) == 2, f"Unexpected value {c!r} in fmt={fmt!r}"
assert (
len(spl) == 2
), f"Unexpected value {c!r} in fmt={fmt!r}, spl={spl}, cols={cols}"
name, fil = spl
cond[name] = set(fil.split(";"))
return cond
Expand Down
8 changes: 7 additions & 1 deletion onnx_diagnostic/helpers/log_helper.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import enum
import io
import os
import pprint
import re
import warnings
Expand Down Expand Up @@ -270,6 +271,10 @@ def _make_loop(cls, ensemble, verbose):
def _to_images_bar(
self, verbose: int = 0, merge: bool = True, title_suffix: Optional[str] = None
) -> List[bytes]:
"""
Environment variable ``FIGSIZEH`` can be set to increase the
graph height. Default is 1.0.
"""
assert merge, f"merge={merge} not implemented yet"
import matplotlib.pyplot as plt

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