Skip to content

Commit 8a363d3

Browse files
committed
Slight improvement for E2E fusion
Signed-off-by: Luka Govedič <lgovedic@redhat.com>
1 parent f6429e4 commit 8a363d3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/compile/test_fusions_e2e.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,13 @@ def test_attn_quant(
160160
with caplog_mp_spawn(logging.DEBUG) as log_holder:
161161
run_model(compilation_config, model_name, **model_kwargs)
162162

163-
assert f"Fused quant onto {attention_fusions} attention nodes" in log_holder.text, (
164-
log_holder.text
163+
matches = re.findall(
164+
r"\[compilation/fusion_attn.py:\d+] "
165+
r"Fused quant onto (\d+) attention nodes",
166+
log_holder.text,
165167
)
168+
assert len(matches) == 1, log_holder.text
169+
assert int(matches[0]) == attention_fusions
166170

167171

168172
# TODO(luka) test both in nightly

0 commit comments

Comments
 (0)